Changeset 39993 in webkit for trunk/JavaScriptCore/jit/JIT.cpp


Ignore:
Timestamp:
Jan 16, 2009, 3:34:46 PM (16 years ago)
Author:
[email protected]
Message:

2009-01-16 Gavin Barraclough <[email protected]>

Reviewed by Geoff Garen.

Fixes for SamplingTool.

https://bugs.webkit.org/show_bug.cgi?id=23390

  • assembler/MacroAssembler.h: (JSC::MacroAssembler::storePtr):
  • bytecode/SamplingTool.cpp: (JSC::SamplingTool::run): (JSC::SamplingTool::dump):
  • bytecode/SamplingTool.h: (JSC::SamplingTool::encodeSample):
  • jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompile):
  • jit/JIT.h: (JSC::JIT::samplingToolTrackCodeBlock):
  • jit/JITCall.cpp: (JSC::JIT::compileOpCall): (JSC::JIT::compileOpCallSlowCase):
  • jit/JITInlineMethods.h: (JSC::JIT::emitCTICall_internal):
File:
1 edited

Legend:

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

    r39960 r39993  
    315315#if ENABLE(OPCODE_SAMPLING)
    316316        if (m_bytecodeIndex > 0) // Avoid the overhead of sampling op_enter twice.
    317             store32(m_interpreter->sampler()->encodeSample(currentInstruction), m_interpreter->sampler()->sampleSlot());
     317            sampleInstruction(currentInstruction);
    318318#endif
    319319
     
    16091609void JIT::privateCompile()
    16101610{
    1611 #if ENABLE(CODEBLOCK_SAMPLING)
    1612         storePtr(ImmPtr(m_codeBlock), m_interpreter->sampler()->codeBlockSlot());
    1613 #endif
     1611    sampleCodeBlock(m_codeBlock);
    16141612#if ENABLE(OPCODE_SAMPLING)
    1615         store32(Imm32(m_interpreter->sampler()->encodeSample(m_codeBlock->instructions().begin())), m_interpreter->sampler()->sampleSlot());
     1613    sampleInstruction(m_codeBlock->instructions().begin());
    16161614#endif
    16171615
Note: See TracChangeset for help on using the changeset viewer.