Ignore:
Timestamp:
Mar 9, 2017, 1:05:41 PM (8 years ago)
Author:
[email protected]
Message:

Use const AbstractLocker& (instead of const LockHolder&) in more places.
https://bugs.webkit.org/show_bug.cgi?id=169424

Reviewed by Filip Pizlo.

Source/JavaScriptCore:

  • heap/CodeBlockSet.cpp:

(JSC::CodeBlockSet::promoteYoungCodeBlocks):

  • heap/CodeBlockSet.h:
  • heap/CodeBlockSetInlines.h:

(JSC::CodeBlockSet::mark):

  • heap/ConservativeRoots.cpp:

(JSC::CompositeMarkHook::CompositeMarkHook):

  • heap/MachineStackMarker.cpp:

(JSC::MachineThreads::tryCopyOtherThreadStacks):

  • heap/MachineStackMarker.h:
  • profiler/ProfilerDatabase.cpp:

(JSC::Profiler::Database::ensureBytecodesFor):

  • profiler/ProfilerDatabase.h:
  • runtime/SamplingProfiler.cpp:

(JSC::FrameWalker::FrameWalker):
(JSC::CFrameWalker::CFrameWalker):
(JSC::SamplingProfiler::createThreadIfNecessary):
(JSC::SamplingProfiler::takeSample):
(JSC::SamplingProfiler::start):
(JSC::SamplingProfiler::pause):
(JSC::SamplingProfiler::noticeCurrentThreadAsJSCExecutionThread):
(JSC::SamplingProfiler::clearData):
(JSC::SamplingProfiler::releaseStackTraces):

  • runtime/SamplingProfiler.h:

(JSC::SamplingProfiler::setStopWatch):

  • wasm/WasmMemory.cpp:

(JSC::Wasm::availableFastMemories):
(JSC::Wasm::activeFastMemories):
(JSC::Wasm::viewActiveFastMemories):

  • wasm/WasmMemory.h:

Source/WTF:

  • wtf/RunLoop.h:
  • wtf/generic/RunLoopGeneric.cpp:

(WTF::RunLoop::wakeUp):
(WTF::RunLoop::schedule):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/SamplingProfiler.h

    r211542 r213657  
    167167    void setTimingInterval(std::chrono::microseconds interval) { m_timingInterval = interval; }
    168168    JS_EXPORT_PRIVATE void start();
    169     void start(const LockHolder&);
    170     Vector<StackTrace> releaseStackTraces(const LockHolder&);
     169    void start(const AbstractLocker&);
     170    Vector<StackTrace> releaseStackTraces(const AbstractLocker&);
    171171    JS_EXPORT_PRIVATE String stackTracesAsJSON();
    172172    JS_EXPORT_PRIVATE void noticeCurrentThreadAsJSCExecutionThread();
    173     void noticeCurrentThreadAsJSCExecutionThread(const LockHolder&);
     173    void noticeCurrentThreadAsJSCExecutionThread(const AbstractLocker&);
    174174    void processUnverifiedStackTraces(); // You should call this only after acquiring the lock.
    175     void setStopWatch(const LockHolder&, Ref<Stopwatch>&& stopwatch) { m_stopwatch = WTFMove(stopwatch); }
    176     void pause(const LockHolder&);
    177     void clearData(const LockHolder&);
     175    void setStopWatch(const AbstractLocker&, Ref<Stopwatch>&& stopwatch) { m_stopwatch = WTFMove(stopwatch); }
     176    void pause(const AbstractLocker&);
     177    void clearData(const AbstractLocker&);
    178178
    179179    // Used for debugging in the JSC shell/DRT.
     
    186186
    187187private:
    188     void createThreadIfNecessary(const LockHolder&);
     188    void createThreadIfNecessary(const AbstractLocker&);
    189189    void timerLoop();
    190     void takeSample(const LockHolder&, std::chrono::microseconds& stackTraceProcessingTime);
     190    void takeSample(const AbstractLocker&, std::chrono::microseconds& stackTraceProcessingTime);
    191191
    192192    VM& m_vm;
Note: See TracChangeset for help on using the changeset viewer.