Changeset 198975 in webkit
- Timestamp:
- Apr 2, 2016 2:14:08 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r198972 r198975 1 2016-04-02 Benjamin Poulain <bpoulain@apple.com> 2 3 [JSC] Add an option to avoid disassembling baseline code for the JSC Profiler 4 https://bugs.webkit.org/show_bug.cgi?id=156127 5 6 Reviewed by Mark Lam. 7 8 The profiler run out of memory on big programs if you dump 9 the baseline disassembly. 10 11 * jit/JIT.cpp: 12 (JSC::JIT::privateCompile): 13 * runtime/Options.h: 14 1 15 2016-04-02 Dan Bernstein <mitz@apple.com> 2 16 -
trunk/Source/JavaScriptCore/jit/JIT.cpp
r198364 r198975 516 516 m_vm->typeProfilerLog()->processLogEntries(ASCIILiteral("Preparing for JIT compilation.")); 517 517 518 if (Options::dumpDisassembly() || m_vm->m_perBytecodeProfiler)518 if (Options::dumpDisassembly() || (m_vm->m_perBytecodeProfiler && Options::disassembleBaselineForProfiler())) 519 519 m_disassembler = std::make_unique<JITDisassembler>(m_codeBlock); 520 520 if (m_vm->m_perBytecodeProfiler) { … … 717 717 } 718 718 if (m_compilation) { 719 m_disassembler->reportToProfiler(m_compilation.get(), patchBuffer); 719 if (Options::disassembleBaselineForProfiler()) 720 m_disassembler->reportToProfiler(m_compilation.get(), patchBuffer); 720 721 m_vm->m_perBytecodeProfiler->addCompilation(m_compilation); 721 722 } -
trunk/Source/JavaScriptCore/runtime/Options.h
r198364 r198975 209 209 \ 210 210 v(bool, useProfiler, false, nullptr) \ 211 v(bool, disassembleBaselineForProfiler, true, nullptr) \ 211 212 \ 212 213 v(bool, useArchitectureSpecificOptimizations, true, nullptr) \
Note: See TracChangeset
for help on using the changeset viewer.