Changeset 89973 in webkit


Ignore:
Timestamp:
Jun 28, 2011 4:26:54 PM (13 years ago)
Author:
oliver@apple.com
Message:

2011-06-28 Oliver Hunt <oliver@apple.com>

Reviewed by Gavin Barraclough.

Fix sampling build
https://bugs.webkit.org/show_bug.cgi?id=63579

Gets opcode sampling building again, doesn't seem to work alas

  • bytecode/SamplingTool.cpp: (JSC::SamplingTool::notifyOfScope):
  • bytecode/SamplingTool.h: (JSC::SamplingTool::SamplingTool):
  • interpreter/Interpreter.cpp: (JSC::Interpreter::enableSampler):
  • runtime/Executable.h: (JSC::ScriptExecutable::ScriptExecutable):
Location:
trunk/Source/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r89968 r89973  
     12011-06-28  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        Fix sampling build
     6        https://bugs.webkit.org/show_bug.cgi?id=63579
     7
     8        Gets opcode sampling building again, doesn't seem to work alas
     9
     10        * bytecode/SamplingTool.cpp:
     11        (JSC::SamplingTool::notifyOfScope):
     12        * bytecode/SamplingTool.h:
     13        (JSC::SamplingTool::SamplingTool):
     14        * interpreter/Interpreter.cpp:
     15        (JSC::Interpreter::enableSampler):
     16        * runtime/Executable.h:
     17        (JSC::ScriptExecutable::ScriptExecutable):
     18
    1192011-06-28  Cary Clark  <caryclark@google.com>
    220
  • trunk/Source/JavaScriptCore/bytecode/SamplingTool.cpp

    r72360 r89973  
    210210}
    211211
    212 void SamplingTool::notifyOfScope(ScriptExecutable* script)
     212void SamplingTool::notifyOfScope(JSGlobalData& globalData, ScriptExecutable* script)
    213213{
    214214#if ENABLE(CODEBLOCK_SAMPLING)
    215215    MutexLocker locker(m_scriptSampleMapMutex);
    216     m_scopeSampleMap->set(script, new ScriptSampleRecord(script));
     216    m_scopeSampleMap->set(script, new ScriptSampleRecord(globalData, script));
    217217#else
     218    UNUSED_PARAM(globalData);
    218219    UNUSED_PARAM(script);
    219220#endif
  • trunk/Source/JavaScriptCore/bytecode/SamplingTool.h

    r84445 r89973  
    202202            , m_opcodeSampleCount(0)
    203203#if ENABLE(CODEBLOCK_SAMPLING)
    204             , m_scopeSampleMap(new ScriptSampleRecordMap())
     204            , m_scopeSampleMap(adoptPtr(new ScriptSampleRecordMap()))
    205205#endif
    206206        {
     
    219219        void dump(ExecState*);
    220220
    221         void notifyOfScope(ScriptExecutable* scope);
     221        void notifyOfScope(JSGlobalData&, ScriptExecutable* scope);
    222222
    223223        void sample(CodeBlock* codeBlock, Instruction* vPC)
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r89959 r89973  
    49614961#if ENABLE(OPCODE_SAMPLING)
    49624962    if (!m_sampler) {
    4963         m_sampler.set(new SamplingTool(this));
     4963        m_sampler = adoptPtr(new SamplingTool(this));
    49644964        m_sampler->setup();
    49654965    }
  • trunk/Source/JavaScriptCore/runtime/Executable.h

    r89885 r89973  
    170170        {
    171171#if ENABLE(CODEBLOCK_SAMPLING)
    172             relaxAdoptionRequirement();
    173172            if (SamplingTool* sampler = globalData->interpreter->sampler())
    174                 sampler->notifyOfScope(this);
     173                sampler->notifyOfScope(*globalData, this);
    175174#else
    176175            UNUSED_PARAM(globalData);
     
    184183        {
    185184#if ENABLE(CODEBLOCK_SAMPLING)
    186             relaxAdoptionRequirement();
    187185            if (SamplingTool* sampler = exec->globalData().interpreter->sampler())
    188                 sampler->notifyOfScope(this);
     186                sampler->notifyOfScope(exec->globalData(), this);
    189187#else
    190188            UNUSED_PARAM(exec);
Note: See TracChangeset for help on using the changeset viewer.