Changeset 86960 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- May 20, 2011, 9:19:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r86300 r86960 579 579 580 580 codeBlock = callerFrame->codeBlock(); 581 582 // Because of how the JIT records call site->bytecode offset 583 // information the JIT reports the bytecodeOffset for the returnPC 584 // to be at the beginning of the opcode that has caused the call. 585 // In the interpreter we have an actual return address, which is 586 // the beginning of next instruction to execute. To get an offset 587 // inside the call instruction that triggered the exception we 588 // have to subtract 1. 581 589 #if ENABLE(JIT) && ENABLE(INTERPRETER) 582 590 if (callerFrame->globalData().canUseJIT()) 583 591 bytecodeOffset = codeBlock->bytecodeOffset(callFrame->returnPC()); 584 592 else 585 bytecodeOffset = codeBlock->bytecodeOffset(callFrame->returnVPC()) ;593 bytecodeOffset = codeBlock->bytecodeOffset(callFrame->returnVPC()) - 1; 586 594 #elif ENABLE(JIT) 587 595 bytecodeOffset = codeBlock->bytecodeOffset(callFrame->returnPC()); 588 596 #else 589 bytecodeOffset = codeBlock->bytecodeOffset(callFrame->returnVPC()) ;597 bytecodeOffset = codeBlock->bytecodeOffset(callFrame->returnVPC()) - 1; 590 598 #endif 591 599
Note:
See TracChangeset
for help on using the changeset viewer.