Changeset 61745 in webkit for trunk/JavaScriptCore/assembler


Ignore:
Timestamp:
Jun 24, 2010, 12:48:37 AM (15 years ago)
Author:
[email protected]
Message:

Fix the length of instruction stream controlled by constant pool
https://bugs.webkit.org/show_bug.cgi?id=40293

Reviewed by Gavin Barraclough.

The initial/maximum length of instruction stream (m_maxDistance) should
be set when the first constant arrives to the constant pool. Otherwise
the constant pool could be placed into an uninterrupted sequence.

  • assembler/AssemblerBufferWithConstantPool.h:

(JSC::):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h

    r55633 r61745  
    191191    void putIntWithConstantInt(uint32_t insn, uint32_t constant, bool isReusable = false)
    192192    {
     193        if (!m_numConsts)
     194            m_maxDistance = maxPoolSize;
    193195        flushIfNoSpaceFor(4, 4);
    194196
     
    280282        m_loadOffsets.clear();
    281283        m_numConsts = 0;
    282         m_maxDistance = maxPoolSize;
    283284    }
    284285
Note: See TracChangeset for help on using the changeset viewer.