Ignore:
Timestamp:
Jun 19, 2012, 2:06:08 PM (13 years ago)
Author:
[email protected]
Message:

CodeBlock::needsCallReturnIndices() is no longer needed.
https://bugs.webkit.org/show_bug.cgi?id=89490

Patch by Mark Lam <[email protected]> on 2012-06-19
Reviewed by Geoffrey Garen.

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::needsCallReturnIndices): removed.

  • dfg/DFGJITCompiler.cpp:

(JSC::DFG::JITCompiler::link):

  • jit/JIT.cpp:

(JSC::JIT::privateCompile):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/JIT.cpp

    r120244 r120751  
    719719    }
    720720
    721     if (m_codeBlock->needsCallReturnIndices()) {
    722         m_codeBlock->callReturnIndexVector().reserveCapacity(m_calls.size());
    723         for (Vector<CallRecord>::iterator iter = m_calls.begin(); iter != m_calls.end(); ++iter)
    724             m_codeBlock->callReturnIndexVector().append(CallReturnOffsetToBytecodeOffset(patchBuffer.returnAddressOffset(iter->from), iter->bytecodeOffset));
    725     }
     721    m_codeBlock->callReturnIndexVector().reserveCapacity(m_calls.size());
     722    for (Vector<CallRecord>::iterator iter = m_calls.begin(); iter != m_calls.end(); ++iter)
     723        m_codeBlock->callReturnIndexVector().append(CallReturnOffsetToBytecodeOffset(patchBuffer.returnAddressOffset(iter->from), iter->bytecodeOffset));
    726724
    727725    m_codeBlock->setNumberOfStructureStubInfos(m_propertyAccessCompilationInfo.size());
Note: See TracChangeset for help on using the changeset viewer.