OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 __ mov(SP, R1); // Stack pointer. | 1888 __ mov(SP, R1); // Stack pointer. |
1889 __ mov(FP, R2); // Frame_pointer. | 1889 __ mov(FP, R2); // Frame_pointer. |
1890 __ mov(R0, R3); // Exception object. | 1890 __ mov(R0, R3); // Exception object. |
1891 __ mov(R1, R4); // StackTrace object. | 1891 __ mov(R1, R4); // StackTrace object. |
1892 __ mov(THR, R5); | 1892 __ mov(THR, R5); |
1893 // Set the tag. | 1893 // Set the tag. |
1894 __ LoadImmediate(R2, VMTag::kDartTagId); | 1894 __ LoadImmediate(R2, VMTag::kDartTagId); |
1895 __ StoreToOffset(R2, THR, Thread::vm_tag_offset()); | 1895 __ StoreToOffset(R2, THR, Thread::vm_tag_offset()); |
1896 // Clear top exit frame. | 1896 // Clear top exit frame. |
1897 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); | 1897 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); |
| 1898 // Restore the pool pointer. |
| 1899 __ RestoreCodePointer(); |
| 1900 __ LoadPoolPointer(); |
1898 __ ret(); // Jump to the exception handler code. | 1901 __ ret(); // Jump to the exception handler code. |
1899 } | 1902 } |
1900 | 1903 |
1901 | 1904 |
1902 // Calls to the runtime to optimize the given function. | 1905 // Calls to the runtime to optimize the given function. |
1903 // R6: function to be re-optimized. | 1906 // R6: function to be re-optimized. |
1904 // R4: argument descriptor (preserved). | 1907 // R4: argument descriptor (preserved). |
1905 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { | 1908 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { |
1906 __ EnterStubFrame(); | 1909 __ EnterStubFrame(); |
1907 __ Push(R4); | 1910 __ Push(R4); |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2273 } | 2276 } |
2274 | 2277 |
2275 | 2278 |
2276 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { | 2279 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { |
2277 __ brk(0); | 2280 __ brk(0); |
2278 } | 2281 } |
2279 | 2282 |
2280 } // namespace dart | 2283 } // namespace dart |
2281 | 2284 |
2282 #endif // defined TARGET_ARCH_ARM64 | 2285 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |