Changeset 162711 in webkit for trunk/Source/JavaScriptCore/jit/JITOpcodes.cpp
- Timestamp:
- Jan 24, 2014, 11:07:31 AM (11 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.