| 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 bool restore_context = context_restore_operand != NULL; | 836 bool restore_context = context_restore_operand != NULL; |
| 837 if (restore_context) { | 837 if (restore_context) { |
| 838 movp(rsi, *context_restore_operand); | 838 movp(rsi, *context_restore_operand); |
| 839 } | 839 } |
| 840 LeaveApiExitFrame(!restore_context); | 840 LeaveApiExitFrame(!restore_context); |
| 841 ret(stack_space * kPointerSize); | 841 ret(stack_space * kPointerSize); |
| 842 | 842 |
| 843 bind(&promote_scheduled_exception); | 843 bind(&promote_scheduled_exception); |
| 844 { | 844 { |
| 845 FrameScope frame(this, StackFrame::INTERNAL); | 845 FrameScope frame(this, StackFrame::INTERNAL); |
| 846 CallRuntime(Runtime::kHiddenPromoteScheduledException, 0); | 846 CallRuntime(Runtime::kPromoteScheduledException, 0); |
| 847 } | 847 } |
| 848 jmp(&exception_handled); | 848 jmp(&exception_handled); |
| 849 | 849 |
| 850 // HandleScope limit has changed. Delete allocated extensions. | 850 // HandleScope limit has changed. Delete allocated extensions. |
| 851 bind(&delete_allocated_handles); | 851 bind(&delete_allocated_handles); |
| 852 movp(Operand(base_reg, kLimitOffset), prev_limit_reg); | 852 movp(Operand(base_reg, kLimitOffset), prev_limit_reg); |
| 853 movp(prev_limit_reg, rax); | 853 movp(prev_limit_reg, rax); |
| 854 LoadAddress(arg_reg_1, ExternalReference::isolate_address(isolate())); | 854 LoadAddress(arg_reg_1, ExternalReference::isolate_address(isolate())); |
| 855 LoadAddress(rax, | 855 LoadAddress(rax, |
| 856 ExternalReference::delete_handle_scope_extensions(isolate())); | 856 ExternalReference::delete_handle_scope_extensions(isolate())); |
| (...skipping 4493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5350 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); | 5350 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); |
| 5351 movl(rax, dividend); | 5351 movl(rax, dividend); |
| 5352 shrl(rax, Immediate(31)); | 5352 shrl(rax, Immediate(31)); |
| 5353 addl(rdx, rax); | 5353 addl(rdx, rax); |
| 5354 } | 5354 } |
| 5355 | 5355 |
| 5356 | 5356 |
| 5357 } } // namespace v8::internal | 5357 } } // namespace v8::internal |
| 5358 | 5358 |
| 5359 #endif // V8_TARGET_ARCH_X64 | 5359 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |