Changeset 58907 in webkit for trunk/JavaScriptCore
- Timestamp:
- May 6, 2010, 1:47:22 PM (15 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r58904 r58907 1 2010-05-06 Gavin Barraclough <[email protected]> 2 3 Reviewed by Oliver Hunt. 4 5 Add compile switch to make debugger keyword plant breakpoint instructions. 6 7 * bytecompiler/BytecodeGenerator.cpp: 8 (JSC::BytecodeGenerator::emitDebugHook): 9 * jit/JITOpcodes.cpp: 10 (JSC::JIT::emit_op_debug): 11 * wtf/Platform.h: 12 1 13 2010-05-06 Oliver Hunt <[email protected]> 2 14 -
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r58902 r58907 1632 1632 void BytecodeGenerator::emitDebugHook(DebugHookID debugHookID, int firstLine, int lastLine) 1633 1633 { 1634 #if ENABLE(DEBUG_WITH_BREAKPOINT) 1635 if (debugHookID != DidReachBreakpoint) 1636 return; 1637 #else 1634 1638 if (!m_shouldEmitDebugHooks) 1635 1639 return; 1640 #endif 1636 1641 emitOpcode(op_debug); 1637 1642 instructions().append(debugHookID); -
trunk/JavaScriptCore/jit/JITOpcodes.cpp
r58469 r58907 1431 1431 void JIT::emit_op_debug(Instruction* currentInstruction) 1432 1432 { 1433 #if ENABLE(DEBUG_WITH_BREAKPOINT) 1434 UNUSED_PARAM(currentInstruction); 1435 breakpoint(); 1436 #else 1433 1437 JITStubCall stubCall(this, cti_op_debug); 1434 1438 stubCall.addArgument(Imm32(currentInstruction[1].u.operand)); … … 1436 1440 stubCall.addArgument(Imm32(currentInstruction[3].u.operand)); 1437 1441 stubCall.call(); 1442 #endif 1438 1443 } 1439 1444 … … 2722 2727 void JIT::emit_op_debug(Instruction* currentInstruction) 2723 2728 { 2729 #if ENABLE(DEBUG_WITH_BREAKPOINT) 2730 UNUSED_PARAM(currentInstruction); 2731 breakpoint(); 2732 #else 2724 2733 JITStubCall stubCall(this, cti_op_debug); 2725 2734 stubCall.addArgument(Imm32(currentInstruction[1].u.operand)); … … 2727 2736 stubCall.addArgument(Imm32(currentInstruction[3].u.operand)); 2728 2737 stubCall.call(); 2738 #endif 2729 2739 } 2730 2740 -
trunk/JavaScriptCore/wtf/Platform.h
r58878 r58907 860 860 #endif 861 861 862 #define ENABLE_SAMPLING_COUNTERS 0 863 #define ENABLE_SAMPLING_FLAGS 0 862 #define ENABLE_DEBUG_WITH_BREAKPOINT 0 863 #define ENABLE_SAMPLING_COUNTERS 1 864 #define ENABLE_SAMPLING_FLAGS 1 864 865 #define ENABLE_OPCODE_SAMPLING 0 865 866 #define ENABLE_CODEBLOCK_SAMPLING 0
Note:
See TracChangeset
for help on using the changeset viewer.