Ignore:
Timestamp:
May 12, 2021, 8:48:26 AM (4 years ago)
Author:
[email protected]
Message:

Remove dead code around ENABLE(OPCODE_SAMPLING) and ENABLE(CODEBLOCK_SAMPLING).
https://bugs.webkit.org/show_bug.cgi?id=225699

Reviewed by Tadeu Zagallo.

This code revolves around an Interpreter::sampler() method which returns a
SamplingTool*. Neither the Interpreter method nor the SamplingTool class exists
anymore.

  • jit/JIT.cpp:

(JSC::JIT::privateCompileMainPass):
(JSC::JIT::compileWithoutLinking):

  • jit/JIT.h:
  • jit/JITCall.cpp:

(JSC::JIT::compileCallEval):
(JSC::JIT::compileCallEvalSlowCase):
(JSC::JIT::compileOpCall):
(JSC::JIT::compileOpCallSlowCase):

  • jit/JITCall32_64.cpp:

(JSC::JIT::compileCallEval):
(JSC::JIT::compileCallEvalSlowCase):
(JSC::JIT::compileOpCall):
(JSC::JIT::compileOpCallSlowCase):

  • jit/JITInlines.h:

(JSC::JIT::sampleInstruction): Deleted.
(JSC::JIT::sampleCodeBlock): Deleted.

  • jit/JITOperations.cpp:
  • jit/SlowPathCall.h:

(JSC::JITSlowPathCall::call):

  • runtime/ScriptExecutable.h:

(JSC::ScriptExecutable::finishCreation): Deleted.

File:
1 edited

Legend:

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

    r277312 r277370  
    252252
    253253        m_pcToCodeOriginMapBuilder.appendItem(label(), CodeOrigin(m_bytecodeIndex));
    254 
    255 #if ENABLE(OPCODE_SAMPLING)
    256         if (m_bytecodeIndex > 0) // Avoid the overhead of sampling op_enter twice.
    257             sampleInstruction(currentInstruction);
    258 #endif
    259254
    260255        m_labels[m_bytecodeIndex.offset()] = label();
     
    748743    Label beginLabel(this);
    749744
    750     sampleCodeBlock(m_codeBlock);
    751 #if ENABLE(OPCODE_SAMPLING)
    752     sampleInstruction(m_codeBlock->instructions().begin());
    753 #endif
    754 
    755745    int frameTopOffset = stackPointerOffsetFor(m_codeBlock) * sizeof(Register);
    756746    unsigned maxFrameSize = -frameTopOffset;
Note: See TracChangeset for help on using the changeset viewer.