Changeset 45138 in webkit for trunk/JavaScriptCore


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):
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r45130 r45138  
     12009-06-24  Sam Weinig  <[email protected]>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        Make the opcode sampler work once again.
     6
     7        * jit/JIT.h:
     8        (JSC::JIT::compileGetByIdProto):
     9        (JSC::JIT::compileGetByIdSelfList):
     10        (JSC::JIT::compileGetByIdProtoList):
     11        (JSC::JIT::compileGetByIdChainList):
     12        (JSC::JIT::compileGetByIdChain):
     13        (JSC::JIT::compilePutByIdTransition):
     14        (JSC::JIT::compileCTIMachineTrampolines):
     15        (JSC::JIT::compilePatchGetArrayLength):
     16        * jit/JITStubCall.h:
     17        (JSC::JITStubCall::call):
     18
    1192009-06-24  Zoltan Horvath  <[email protected]>
    220
  • trunk/JavaScriptCore/jit/JIT.h

    r44889 r45138  
    343343        {
    344344            JIT jit(globalData, codeBlock);
    345 #if ENABLE(OPCODE_SAMPLING)
    346             jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());
    347 #endif
    348345            jit.privateCompileGetByIdProto(stubInfo, structure, prototypeStructure, cachedOffset, returnAddress, callFrame);
    349346        }
     
    352349        {
    353350            JIT jit(globalData, codeBlock);
    354 #if ENABLE(OPCODE_SAMPLING)
    355             jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());
    356 #endif
    357351            jit.privateCompileGetByIdSelfList(stubInfo, polymorphicStructures, currentIndex, structure, cachedOffset);
    358352        }
     
    360354        {
    361355            JIT jit(globalData, codeBlock);
    362 #if ENABLE(OPCODE_SAMPLING)
    363             jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());
    364 #endif
    365356            jit.privateCompileGetByIdProtoList(stubInfo, prototypeStructureList, currentIndex, structure, prototypeStructure, cachedOffset, callFrame);
    366357        }
     
    368359        {
    369360            JIT jit(globalData, codeBlock);
    370 #if ENABLE(OPCODE_SAMPLING)
    371             jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());
    372 #endif
    373361            jit.privateCompileGetByIdChainList(stubInfo, prototypeStructureList, currentIndex, structure, chain, count, cachedOffset, callFrame);
    374362        }
     
    377365        {
    378366            JIT jit(globalData, codeBlock);
    379 #if ENABLE(OPCODE_SAMPLING)
    380             jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());
    381 #endif
    382367            jit.privateCompileGetByIdChain(stubInfo, structure, chain, count, cachedOffset, returnAddress, callFrame);
    383368        }
     
    386371        {
    387372            JIT jit(globalData, codeBlock);
    388 #if ENABLE(OPCODE_SAMPLING)
    389             jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());
    390 #endif
    391373            jit.privateCompilePutByIdTransition(stubInfo, oldStructure, newStructure, cachedOffset, chain, returnAddress);
    392374        }
     
    395377        {
    396378            JIT jit(globalData);
    397 #if ENABLE(OPCODE_SAMPLING)
    398             jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());
    399 #endif
    400379            jit.privateCompileCTIMachineTrampolines(executablePool, globalData, ctiArrayLengthTrampoline, ctiStringLengthTrampoline, ctiVirtualCallPreLink, ctiVirtualCallLink, ctiVirtualCall, ctiNativeCallThunk);
    401380        }
     
    408387        {
    409388            JIT jit(globalData, codeBlock);
    410 #if ENABLE(OPCODE_SAMPLING)
    411             jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());
    412 #endif
    413389            return jit.privateCompilePatchGetArrayLength(returnAddress);
    414390        }
  • 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.