Changeset 162711 in webkit for trunk/Source/JavaScriptCore/jit
- Timestamp:
- Jan 24, 2014, 11:07:31 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore/jit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITOpcodes.cpp
r162598 r162711 711 711 void JIT::emit_op_debug(Instruction* currentInstruction) 712 712 { 713 #if ENABLE(DEBUG_WITH_BREAKPOINT) 714 UNUSED_PARAM(currentInstruction); 715 breakpoint(); 716 #elif ENABLE(JAVASCRIPT_DEBUGGER) 717 JSGlobalObject* globalObject = codeBlock()->globalObject(); 718 char* debuggerAddress = reinterpret_cast<char*>(globalObject) + JSGlobalObject::debuggerOffset(); 719 Jump noDebugger = branchTestPtr(Zero, AbsoluteAddress(debuggerAddress)); 720 721 Debugger* debugger = globalObject->debugger(); 722 char* shouldPauseAddress = reinterpret_cast<char*>(debugger) + Debugger::shouldPauseOffset(); 723 Jump callbackNeeded = branchTest8(NonZero, AbsoluteAddress(shouldPauseAddress)); 724 725 char* numBreakpointsAddress = reinterpret_cast<char*>(codeBlock()) + CodeBlock::numBreakpointsOffset(); 726 load32(numBreakpointsAddress, regT0); 727 Jump noBreakpointSet = branchTest32(Zero, regT0); 728 729 callbackNeeded.link(this); 713 load32(codeBlock()->debuggerRequestsAddress(), regT0); 714 Jump noDebuggerRequests = branchTest32(Zero, regT0); 730 715 callOperation(operationDebug, currentInstruction[1].u.operand); 731 732 noBreakpointSet.link(this); 733 noDebugger.link(this); 734 #else 735 UNUSED_PARAM(currentInstruction); 736 #endif 716 noDebuggerRequests.link(this); 737 717 } 738 718 -
trunk/Source/JavaScriptCore/jit/JITOpcodes32_64.cpp
r162598 r162711 993 993 void JIT::emit_op_debug(Instruction* currentInstruction) 994 994 { 995 #if ENABLE(DEBUG_WITH_BREAKPOINT) 996 UNUSED_PARAM(currentInstruction); 997 breakpoint(); 998 #elif ENABLE(JAVASCRIPT_DEBUGGER) 999 JSGlobalObject* globalObject = codeBlock()->globalObject(); 1000 char* debuggerAddress = reinterpret_cast<char*>(globalObject) + JSGlobalObject::debuggerOffset(); 1001 loadPtr(debuggerAddress, regT0); 1002 Jump noDebugger = branchTestPtr(Zero, regT0); 1003 1004 Debugger* debugger = globalObject->debugger(); 1005 char* shouldPauseAddress = reinterpret_cast<char*>(debugger) + Debugger::shouldPauseOffset(); 1006 Jump callbackNeeded = branchTest8(NonZero, AbsoluteAddress(shouldPauseAddress)); 1007 1008 char* numBreakpointsAddress = reinterpret_cast<char*>(codeBlock()) + CodeBlock::numBreakpointsOffset(); 1009 load32(numBreakpointsAddress, regT0); 1010 Jump noBreakpointSet = branchTest32(Zero, regT0); 1011 1012 callbackNeeded.link(this); 995 load32(codeBlock()->debuggerRequestsAddress(), regT0); 996 Jump noDebuggerRequests = branchTest32(Zero, regT0); 1013 997 callOperation(operationDebug, currentInstruction[1].u.operand); 1014 1015 noBreakpointSet.link(this); 1016 noDebugger.link(this); 1017 #else 1018 UNUSED_PARAM(currentInstruction); 1019 #endif 998 noDebuggerRequests.link(this); 1020 999 } 1021 1000
Note:
See TracChangeset
for help on using the changeset viewer.