Ignore:
Timestamp:
Oct 5, 2008, 10:38:32 AM (17 years ago)
Author:
[email protected]
Message:

2008-10-05 Gavin Barraclough <[email protected]>

Reviewed by Cameron Zwarich.

Fix for bug #21387 - using SamplingTool with CTI.

(1) A repatch offset offset changes due to an additional instruction to update SamplingTool state.
(2) Fix an incusion order problem due to ExecState changes.
(3) Change to a MACHINE_SAMPLING macro, use of exec should now be accessing global data.

  • VM/CTI.h: (JSC::CTI::execute):
  • VM/SamplingTool.h: (JSC::SamplingTool::privateExecuteReturned):
  • kjs/Shell.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/SamplingTool.h

    r36402 r37316  
    108108            m_recordedCodeBlock = 0;
    109109            m_recordedVPC = 0;
     110#if ENABLE(SAMPLING_TOOL)
     111            currentOpcodeID = static_cast<OpcodeID>(-1);
     112#endif
    110113        }
    111114       
     
    143146#define MACHINE_SAMPLING_privateExecuteReturned() m_sampler->privateExecuteReturned()
    144147#define MACHINE_SAMPLING_callingHostFunction() m_sampler->callingHostFunction()
    145 #define CTI_MACHINE_SAMPLING_callingHostFunction() machine->m_sampler->callingHostFunction()
     148#define CTI_MACHINE_SAMPLING_callingHostFunction() ARG_globalData->machine->m_sampler->callingHostFunction()
    146149#else
    147150#define SCOPENODE_SAMPLING_notifyOfScope(sampler)
Note: See TracChangeset for help on using the changeset viewer.