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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2223 Isolate::kPendingHandlerCodeAddress, isolate()); | 2223 Isolate::kPendingHandlerCodeAddress, isolate()); |
2224 ExternalReference pending_handler_offset_address( | 2224 ExternalReference pending_handler_offset_address( |
2225 Isolate::kPendingHandlerOffsetAddress, isolate()); | 2225 Isolate::kPendingHandlerOffsetAddress, isolate()); |
2226 ExternalReference pending_handler_fp_address( | 2226 ExternalReference pending_handler_fp_address( |
2227 Isolate::kPendingHandlerFPAddress, isolate()); | 2227 Isolate::kPendingHandlerFPAddress, isolate()); |
2228 ExternalReference pending_handler_sp_address( | 2228 ExternalReference pending_handler_sp_address( |
2229 Isolate::kPendingHandlerSPAddress, isolate()); | 2229 Isolate::kPendingHandlerSPAddress, isolate()); |
2230 | 2230 |
2231 // Ask the runtime for help to determine the handler. This will set eax to | 2231 // Ask the runtime for help to determine the handler. This will set eax to |
2232 // contain the current pending exception, don't clobber it. | 2232 // contain the current pending exception, don't clobber it. |
2233 ExternalReference find_handler(Runtime::kFindExceptionHandler, isolate()); | 2233 ExternalReference find_handler(Runtime::kUnwindAndFindExceptionHandler, |
| 2234 isolate()); |
2234 { | 2235 { |
2235 FrameScope scope(masm, StackFrame::MANUAL); | 2236 FrameScope scope(masm, StackFrame::MANUAL); |
2236 __ PrepareCallCFunction(3, eax); | 2237 __ PrepareCallCFunction(3, eax); |
2237 __ mov(Operand(esp, 0 * kPointerSize), Immediate(0)); // argc. | 2238 __ mov(Operand(esp, 0 * kPointerSize), Immediate(0)); // argc. |
2238 __ mov(Operand(esp, 1 * kPointerSize), Immediate(0)); // argv. | 2239 __ mov(Operand(esp, 1 * kPointerSize), Immediate(0)); // argv. |
2239 __ mov(Operand(esp, 2 * kPointerSize), | 2240 __ mov(Operand(esp, 2 * kPointerSize), |
2240 Immediate(ExternalReference::isolate_address(isolate()))); | 2241 Immediate(ExternalReference::isolate_address(isolate()))); |
2241 __ CallCFunction(find_handler, 3); | 2242 __ CallCFunction(find_handler, 3); |
2242 } | 2243 } |
2243 | 2244 |
(...skipping 2823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5067 ApiParameterOperand(2), kStackSpace, nullptr, | 5068 ApiParameterOperand(2), kStackSpace, nullptr, |
5068 Operand(ebp, 7 * kPointerSize), NULL); | 5069 Operand(ebp, 7 * kPointerSize), NULL); |
5069 } | 5070 } |
5070 | 5071 |
5071 | 5072 |
5072 #undef __ | 5073 #undef __ |
5073 | 5074 |
5074 } } // namespace v8::internal | 5075 } } // namespace v8::internal |
5075 | 5076 |
5076 #endif // V8_TARGET_ARCH_X87 | 5077 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |