Changeset 103294 in webkit for trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp
- Timestamp:
- Dec 19, 2011, 7:16:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp
r102545 r103294 96 96 if (didLinkExceptionCheck) { 97 97 // lookupExceptionHandler is passed two arguments, exec (the CallFrame*), and 98 // an identifier for the operation that threw the exception, which we can use99 // to look up handler information. The identifier we use is the return address100 // of the call out from JIT code that threw the exception; this is still101 // available on the stack, just below the stack pointer!98 // the index into the CodeBlock's callReturnIndexVector corresponding to the 99 // call that threw the exception (this was set in nonPreservedNonReturnGPR, when 100 // the exception check was planted). 101 move(GPRInfo::nonPreservedNonReturnGPR, GPRInfo::argumentGPR1); 102 102 move(GPRInfo::callFrameRegister, GPRInfo::argumentGPR0); 103 getPCAfterCall(GPRInfo::argumentGPR1); 103 #if CPU(X86) 104 // FIXME: should use the call abstraction, but this is currently in the SpeculativeJIT layer! 105 poke(GPRInfo::argumentGPR0); 106 poke(GPRInfo::argumentGPR1, 1); 107 #endif 104 108 m_calls.append(CallLinkRecord(call(), lookupExceptionHandler)); 105 109 // lookupExceptionHandler leaves the handler CallFrame* in the returnValueGPR,
Note:
See TracChangeset
for help on using the changeset viewer.