| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2245 bool restore_context = context_restore_operand != NULL; | 2245 bool restore_context = context_restore_operand != NULL; |
| 2246 if (restore_context) { | 2246 if (restore_context) { |
| 2247 mov(esi, *context_restore_operand); | 2247 mov(esi, *context_restore_operand); |
| 2248 } | 2248 } |
| 2249 LeaveApiExitFrame(!restore_context); | 2249 LeaveApiExitFrame(!restore_context); |
| 2250 ret(stack_space * kPointerSize); | 2250 ret(stack_space * kPointerSize); |
| 2251 | 2251 |
| 2252 bind(&promote_scheduled_exception); | 2252 bind(&promote_scheduled_exception); |
| 2253 { | 2253 { |
| 2254 FrameScope frame(this, StackFrame::INTERNAL); | 2254 FrameScope frame(this, StackFrame::INTERNAL); |
| 2255 CallRuntime(Runtime::kHiddenPromoteScheduledException, 0); | 2255 CallRuntime(Runtime::kPromoteScheduledException, 0); |
| 2256 } | 2256 } |
| 2257 jmp(&exception_handled); | 2257 jmp(&exception_handled); |
| 2258 | 2258 |
| 2259 // HandleScope limit has changed. Delete allocated extensions. | 2259 // HandleScope limit has changed. Delete allocated extensions. |
| 2260 ExternalReference delete_extensions = | 2260 ExternalReference delete_extensions = |
| 2261 ExternalReference::delete_handle_scope_extensions(isolate()); | 2261 ExternalReference::delete_handle_scope_extensions(isolate()); |
| 2262 bind(&delete_allocated_handles); | 2262 bind(&delete_allocated_handles); |
| 2263 mov(Operand::StaticVariable(limit_address), edi); | 2263 mov(Operand::StaticVariable(limit_address), edi); |
| 2264 mov(edi, eax); | 2264 mov(edi, eax); |
| 2265 mov(Operand(esp, 0), | 2265 mov(Operand(esp, 0), |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3405 if (ms.shift() > 0) sar(edx, ms.shift()); | 3405 if (ms.shift() > 0) sar(edx, ms.shift()); |
| 3406 mov(eax, dividend); | 3406 mov(eax, dividend); |
| 3407 shr(eax, 31); | 3407 shr(eax, 31); |
| 3408 add(edx, eax); | 3408 add(edx, eax); |
| 3409 } | 3409 } |
| 3410 | 3410 |
| 3411 | 3411 |
| 3412 } } // namespace v8::internal | 3412 } } // namespace v8::internal |
| 3413 | 3413 |
| 3414 #endif // V8_TARGET_ARCH_IA32 | 3414 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |