| 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) && !defined(DART_PRECOMPILED_RUNTIME) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| 11 #include "vm/flow_graph_compiler.h" | 11 #include "vm/flow_graph_compiler.h" |
| 12 #include "vm/heap.h" | 12 #include "vm/heap.h" |
| 13 #include "vm/instructions.h" | 13 #include "vm/instructions.h" |
| 14 #include "vm/object_store.h" | 14 #include "vm/object_store.h" |
| 15 #include "vm/runtime_entry.h" | 15 #include "vm/runtime_entry.h" |
| 16 #include "vm/stack_frame.h" | 16 #include "vm/stack_frame.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 __ StoreToOffset(R2, THR, Thread::vm_tag_offset()); | 117 __ StoreToOffset(R2, THR, Thread::vm_tag_offset()); |
| 118 | 118 |
| 119 // Reset exit frame information in Isolate structure. | 119 // Reset exit frame information in Isolate structure. |
| 120 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); | 120 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); |
| 121 | 121 |
| 122 __ LeaveStubFrame(); | 122 __ LeaveStubFrame(); |
| 123 __ ret(); | 123 __ ret(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 | 126 |
| 127 // Print the stop message. | |
| 128 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { | |
| 129 OS::Print("Stop message: %s\n", message); | |
| 130 } | |
| 131 END_LEAF_RUNTIME_ENTRY | |
| 132 | |
| 133 | |
| 134 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 127 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
| 135 __ Stop("GeneratePrintStopMessageStub"); | 128 __ Stop("GeneratePrintStopMessageStub"); |
| 136 } | 129 } |
| 137 | 130 |
| 138 | 131 |
| 139 // Input parameters: | 132 // Input parameters: |
| 140 // LR : return address. | 133 // LR : return address. |
| 141 // SP : address of return value. | 134 // SP : address of return value. |
| 142 // R5 : address of the native function to call. | 135 // R5 : address of the native function to call. |
| 143 // R2 : address of first argument in argument array. | 136 // R2 : address of first argument in argument array. |
| (...skipping 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2379 __ brk(0); | 2372 __ brk(0); |
| 2380 } | 2373 } |
| 2381 | 2374 |
| 2382 | 2375 |
| 2383 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2376 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2384 __ brk(0); | 2377 __ brk(0); |
| 2385 } | 2378 } |
| 2386 | 2379 |
| 2387 } // namespace dart | 2380 } // namespace dart |
| 2388 | 2381 |
| 2389 #endif // defined TARGET_ARCH_ARM64 | 2382 #endif // defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME) |
| OLD | NEW |