Changeset 239188 in webkit
- Timestamp:
- Dec 13, 2018 4:53:11 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r239187 r239188 1 2018-12-13 Mark Lam <mark.lam@apple.com> 2 3 Add the JSC_traceBaselineJITExecution option for tracing baseline JIT execution. 4 https://bugs.webkit.org/show_bug.cgi?id=192684 5 6 Reviewed by Saam Barati. 7 8 This dataLogs the bytecode execution order of baseline JIT code when the 9 JSC_traceBaselineJITExecution option is true. 10 11 * jit/JIT.cpp: 12 (JSC::JIT::privateCompileMainPass): 13 (JSC::JIT::privateCompileSlowCases): 14 * runtime/Options.h: 15 1 16 2018-12-13 David Kilzer <ddkilzer@apple.com> 2 17 -
trunk/Source/JavaScriptCore/jit/JIT.cpp
r238543 r239188 45 45 #include "ModuleProgramCodeBlock.h" 46 46 #include "PCToCodeOriginMap.h" 47 #include "ProbeContext.h" 47 48 #include "ProfilerDatabase.h" 48 49 #include "ProgramCodeBlock.h" … … 270 271 271 272 unsigned bytecodeOffset = m_bytecodeOffset; 273 #if ENABLE(MASM_PROBE) 274 if (UNLIKELY(Options::traceBaselineJITExecution())) { 275 CodeBlock* codeBlock = m_codeBlock; 276 probe([=] (Probe::Context& ctx) { 277 dataLogLn("JIT [", bytecodeOffset, "] ", opcodeNames[opcodeID], " cfr ", RawPointer(ctx.fp()), " @ ", codeBlock); 278 }); 279 } 280 #endif 272 281 273 282 switch (opcodeID) { … … 494 503 m_disassembler->setForBytecodeSlowPath(m_bytecodeOffset, label()); 495 504 505 #if ENABLE(MASM_PROBE) 506 if (UNLIKELY(Options::traceBaselineJITExecution())) { 507 OpcodeID opcodeID = currentInstruction->opcodeID(); 508 unsigned bytecodeOffset = m_bytecodeOffset; 509 CodeBlock* codeBlock = m_codeBlock; 510 probe([=] (Probe::Context& ctx) { 511 dataLogLn("JIT [", bytecodeOffset, "] SLOW ", opcodeNames[opcodeID], " cfr ", RawPointer(ctx.fp()), " @ ", codeBlock); 512 }); 513 } 514 #endif 515 496 516 switch (currentInstruction->opcodeID()) { 497 517 DEFINE_SLOWCASE_OP(op_add) -
trunk/Source/JavaScriptCore/runtime/Options.h
r238012 r239188 508 508 v(bool, traceLLIntExecution, false, Configurable, nullptr) \ 509 509 v(bool, traceLLIntSlowPath, false, Configurable, nullptr) \ 510 v(bool, traceBaselineJITExecution, false, Normal, nullptr) \ 510 511 511 512
Note: See TracChangeset
for help on using the changeset viewer.