Ignore:
Timestamp:
Jun 24, 2009, 8:07:02 PM (16 years ago)
Author:
[email protected]
Message:

2009-06-24 Sam Weinig <[email protected]>

Reviewed by Gavin Barraclough.

Make the opcode sampler work once again.

  • jit/JIT.h: (JSC::JIT::compileGetByIdProto): (JSC::JIT::compileGetByIdSelfList): (JSC::JIT::compileGetByIdProtoList): (JSC::JIT::compileGetByIdChainList): (JSC::JIT::compileGetByIdChain): (JSC::JIT::compilePutByIdTransition): (JSC::JIT::compileCTIMachineTrampolines): (JSC::JIT::compilePatchGetArrayLength):
  • jit/JITStubCall.h: (JSC::JITStubCall::call):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITStubCall.h

    r44743 r45138  
    109109        {
    110110#if ENABLE(OPCODE_SAMPLING)
    111             ASSERT(m_jit->m_bytecodeIndex != (unsigned)-1);
    112             m_jit->sampleInstruction(m_jit->m_codeBlock->instructions().begin() + m_jit->m_bytecodeIndex, true);
     111            if (m_jit->m_bytecodeIndex != (unsigned)-1)
     112                m_jit->sampleInstruction(m_jit->m_codeBlock->instructions().begin() + m_jit->m_bytecodeIndex, true);
    113113#endif
    114114
     
    118118
    119119#if ENABLE(OPCODE_SAMPLING)
    120             m_jit->sampleInstruction(m_jit->m_codeBlock->instructions().begin() + m_jit->m_bytecodeIndex, false);
     120            if (m_jit->m_bytecodeIndex != (unsigned)-1)
     121                m_jit->sampleInstruction(m_jit->m_codeBlock->instructions().begin() + m_jit->m_bytecodeIndex, false);
    121122#endif
    122123
Note: See TracChangeset for help on using the changeset viewer.