| 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 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1937 // The arguments are stored in the Thread object. | 1937 // The arguments are stored in the Thread object. |
| 1938 // Does not return. | 1938 // Does not return. |
| 1939 void StubCode::GenerateRunExceptionHandlerStub(Assembler* assembler) { | 1939 void StubCode::GenerateRunExceptionHandlerStub(Assembler* assembler) { |
| 1940 __ LoadFromOffset(LR, THR, Thread::resume_pc_offset()); | 1940 __ LoadFromOffset(LR, THR, Thread::resume_pc_offset()); |
| 1941 __ LoadImmediate(R2, 0); | 1941 __ LoadImmediate(R2, 0); |
| 1942 | 1942 |
| 1943 // Exception object. | 1943 // Exception object. |
| 1944 __ LoadFromOffset(R0, THR, Thread::active_exception_offset()); | 1944 __ LoadFromOffset(R0, THR, Thread::active_exception_offset()); |
| 1945 __ StoreToOffset(R2, THR, Thread::active_exception_offset()); | 1945 __ StoreToOffset(R2, THR, Thread::active_exception_offset()); |
| 1946 | 1946 |
| 1947 // Stacktrace object. | 1947 // StackTrace object. |
| 1948 __ LoadFromOffset(R1, THR, Thread::active_stacktrace_offset()); | 1948 __ LoadFromOffset(R1, THR, Thread::active_stacktrace_offset()); |
| 1949 __ StoreToOffset(R2, THR, Thread::active_stacktrace_offset()); | 1949 __ StoreToOffset(R2, THR, Thread::active_stacktrace_offset()); |
| 1950 | 1950 |
| 1951 __ ret(); // Jump to the exception handler code. | 1951 __ ret(); // Jump to the exception handler code. |
| 1952 } | 1952 } |
| 1953 | 1953 |
| 1954 | 1954 |
| 1955 // Deoptimize a frame on the call stack before rewinding. | 1955 // Deoptimize a frame on the call stack before rewinding. |
| 1956 // The arguments are stored in the Thread object. | 1956 // The arguments are stored in the Thread object. |
| 1957 // No result. | 1957 // No result. |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2337 } | 2337 } |
| 2338 | 2338 |
| 2339 | 2339 |
| 2340 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { | 2340 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { |
| 2341 __ brk(0); | 2341 __ brk(0); |
| 2342 } | 2342 } |
| 2343 | 2343 |
| 2344 } // namespace dart | 2344 } // namespace dart |
| 2345 | 2345 |
| 2346 #endif // defined TARGET_ARCH_ARM64 | 2346 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |