OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 | 1772 |
1773 LeaveExitFrame(false, x1, !restore_context); | 1773 LeaveExitFrame(false, x1, !restore_context); |
1774 Drop(stack_space); | 1774 Drop(stack_space); |
1775 Ret(); | 1775 Ret(); |
1776 | 1776 |
1777 Bind(&promote_scheduled_exception); | 1777 Bind(&promote_scheduled_exception); |
1778 { | 1778 { |
1779 FrameScope frame(this, StackFrame::INTERNAL); | 1779 FrameScope frame(this, StackFrame::INTERNAL); |
1780 CallExternalReference( | 1780 CallExternalReference( |
1781 ExternalReference( | 1781 ExternalReference( |
1782 Runtime::kHiddenPromoteScheduledException, isolate()), 0); | 1782 Runtime::kPromoteScheduledException, isolate()), 0); |
1783 } | 1783 } |
1784 B(&exception_handled); | 1784 B(&exception_handled); |
1785 | 1785 |
1786 // HandleScope limit has changed. Delete allocated extensions. | 1786 // HandleScope limit has changed. Delete allocated extensions. |
1787 Bind(&delete_allocated_handles); | 1787 Bind(&delete_allocated_handles); |
1788 Str(limit_reg, MemOperand(handle_scope_base, kLimitOffset)); | 1788 Str(limit_reg, MemOperand(handle_scope_base, kLimitOffset)); |
1789 // Save the return value in a callee-save register. | 1789 // Save the return value in a callee-save register. |
1790 Register saved_result = x19; | 1790 Register saved_result = x19; |
1791 Mov(saved_result, x0); | 1791 Mov(saved_result, x0); |
1792 Mov(x0, ExternalReference::isolate_address(isolate())); | 1792 Mov(x0, ExternalReference::isolate_address(isolate())); |
(...skipping 3501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5294 } | 5294 } |
5295 } | 5295 } |
5296 | 5296 |
5297 | 5297 |
5298 #undef __ | 5298 #undef __ |
5299 | 5299 |
5300 | 5300 |
5301 } } // namespace v8::internal | 5301 } } // namespace v8::internal |
5302 | 5302 |
5303 #endif // V8_TARGET_ARCH_ARM64 | 5303 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |