| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 Isolate::kPendingHandlerCodeAddress, isolate()); | 1042 Isolate::kPendingHandlerCodeAddress, isolate()); |
| 1043 ExternalReference pending_handler_offset_address( | 1043 ExternalReference pending_handler_offset_address( |
| 1044 Isolate::kPendingHandlerOffsetAddress, isolate()); | 1044 Isolate::kPendingHandlerOffsetAddress, isolate()); |
| 1045 ExternalReference pending_handler_fp_address( | 1045 ExternalReference pending_handler_fp_address( |
| 1046 Isolate::kPendingHandlerFPAddress, isolate()); | 1046 Isolate::kPendingHandlerFPAddress, isolate()); |
| 1047 ExternalReference pending_handler_sp_address( | 1047 ExternalReference pending_handler_sp_address( |
| 1048 Isolate::kPendingHandlerSPAddress, isolate()); | 1048 Isolate::kPendingHandlerSPAddress, isolate()); |
| 1049 | 1049 |
| 1050 // Ask the runtime for help to determine the handler. This will set r0 to | 1050 // Ask the runtime for help to determine the handler. This will set r0 to |
| 1051 // contain the current pending exception, don't clobber it. | 1051 // contain the current pending exception, don't clobber it. |
| 1052 ExternalReference find_handler(Runtime::kFindExceptionHandler, isolate()); | 1052 ExternalReference find_handler(Runtime::kUnwindAndFindExceptionHandler, |
| 1053 isolate()); |
| 1053 { | 1054 { |
| 1054 FrameScope scope(masm, StackFrame::MANUAL); | 1055 FrameScope scope(masm, StackFrame::MANUAL); |
| 1055 __ PrepareCallCFunction(3, 0, r0); | 1056 __ PrepareCallCFunction(3, 0, r0); |
| 1056 __ mov(r0, Operand(0)); | 1057 __ mov(r0, Operand(0)); |
| 1057 __ mov(r1, Operand(0)); | 1058 __ mov(r1, Operand(0)); |
| 1058 __ mov(r2, Operand(ExternalReference::isolate_address(isolate()))); | 1059 __ mov(r2, Operand(ExternalReference::isolate_address(isolate()))); |
| 1059 __ CallCFunction(find_handler, 3); | 1060 __ CallCFunction(find_handler, 3); |
| 1060 } | 1061 } |
| 1061 | 1062 |
| 1062 // Retrieve the handler context, SP and FP. | 1063 // Retrieve the handler context, SP and FP. |
| (...skipping 4220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5283 kStackUnwindSpace, NULL, | 5284 kStackUnwindSpace, NULL, |
| 5284 MemOperand(fp, 6 * kPointerSize), NULL); | 5285 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5285 } | 5286 } |
| 5286 | 5287 |
| 5287 | 5288 |
| 5288 #undef __ | 5289 #undef __ |
| 5289 | 5290 |
| 5290 } } // namespace v8::internal | 5291 } } // namespace v8::internal |
| 5291 | 5292 |
| 5292 #endif // V8_TARGET_ARCH_ARM | 5293 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |