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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2137 bool restore_context = context_restore_operand != NULL; | 2137 bool restore_context = context_restore_operand != NULL; |
2138 if (restore_context) { | 2138 if (restore_context) { |
2139 mov(esi, *context_restore_operand); | 2139 mov(esi, *context_restore_operand); |
2140 } | 2140 } |
2141 LeaveApiExitFrame(!restore_context); | 2141 LeaveApiExitFrame(!restore_context); |
2142 ret(stack_space * kPointerSize); | 2142 ret(stack_space * kPointerSize); |
2143 | 2143 |
2144 bind(&promote_scheduled_exception); | 2144 bind(&promote_scheduled_exception); |
2145 { | 2145 { |
2146 FrameScope frame(this, StackFrame::INTERNAL); | 2146 FrameScope frame(this, StackFrame::INTERNAL); |
2147 CallRuntime(Runtime::kHiddenPromoteScheduledException, 0); | 2147 CallRuntime(Runtime::kPromoteScheduledException, 0); |
2148 } | 2148 } |
2149 jmp(&exception_handled); | 2149 jmp(&exception_handled); |
2150 | 2150 |
2151 // HandleScope limit has changed. Delete allocated extensions. | 2151 // HandleScope limit has changed. Delete allocated extensions. |
2152 ExternalReference delete_extensions = | 2152 ExternalReference delete_extensions = |
2153 ExternalReference::delete_handle_scope_extensions(isolate()); | 2153 ExternalReference::delete_handle_scope_extensions(isolate()); |
2154 bind(&delete_allocated_handles); | 2154 bind(&delete_allocated_handles); |
2155 mov(Operand::StaticVariable(limit_address), edi); | 2155 mov(Operand::StaticVariable(limit_address), edi); |
2156 mov(edi, eax); | 2156 mov(edi, eax); |
2157 mov(Operand(esp, 0), | 2157 mov(Operand(esp, 0), |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3292 if (ms.shift() > 0) sar(edx, ms.shift()); | 3292 if (ms.shift() > 0) sar(edx, ms.shift()); |
3293 mov(eax, dividend); | 3293 mov(eax, dividend); |
3294 shr(eax, 31); | 3294 shr(eax, 31); |
3295 add(edx, eax); | 3295 add(edx, eax); |
3296 } | 3296 } |
3297 | 3297 |
3298 | 3298 |
3299 } } // namespace v8::internal | 3299 } } // namespace v8::internal |
3300 | 3300 |
3301 #endif // V8_TARGET_ARCH_X87 | 3301 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |