Changeset 156242 in webkit for trunk/Source/JavaScriptCore/jit/JITExceptions.cpp
- Timestamp:
- Sep 21, 2013, 10:00:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITExceptions.cpp
r154817 r156242 39 39 namespace JSC { 40 40 41 static unsigned getExceptionLocation(VM* vm, CallFrame* callFrame)42 {43 UNUSED_PARAM(vm);44 ASSERT(!callFrame->hasHostCallFrameFlag());45 46 #if ENABLE(DFG_JIT)47 if (callFrame->hasLocationAsCodeOriginIndex())48 return callFrame->bytecodeOffsetFromCodeOriginIndex();49 #endif50 51 return callFrame->locationAsBytecodeOffset();52 }53 54 41 #if USE(JSVALUE32_64) 55 42 EncodedExceptionHandler encode(ExceptionHandler handler) … … 68 55 } 69 56 70 ExceptionHandler genericUnwind(VM* vm, ExecState* callFrame, JSValue exceptionValue , unsigned vPCIndex)57 ExceptionHandler genericUnwind(VM* vm, ExecState* callFrame, JSValue exceptionValue) 71 58 { 72 59 RELEASE_ASSERT(exceptionValue); 73 HandlerInfo* handler = vm->interpreter->unwind(callFrame, exceptionValue , vPCIndex); // This may update callFrame.60 HandlerInfo* handler = vm->interpreter->unwind(callFrame, exceptionValue); // This may update callFrame. 74 61 75 62 void* catchRoutine; … … 90 77 } 91 78 92 ExceptionHandler jitThrowNew(VM* vm, ExecState* callFrame, JSValue exceptionValue)93 {94 unsigned bytecodeOffset = getExceptionLocation(vm, callFrame);95 96 return genericUnwind(vm, callFrame, exceptionValue, bytecodeOffset);97 }98 99 ExceptionHandler jitThrow(VM* vm, ExecState* callFrame, JSValue exceptionValue, ReturnAddressPtr faultLocation)100 {101 return genericUnwind(vm, callFrame, exceptionValue, callFrame->codeBlock()->bytecodeOffset(callFrame, faultLocation));102 }103 104 79 } 105 80
Note:
See TracChangeset
for help on using the changeset viewer.