OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ARM) | 6 #if defined(TARGET_ARCH_ARM) && !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/cpu.h" | 10 #include "vm/cpu.h" |
11 #include "vm/dart_entry.h" | 11 #include "vm/dart_entry.h" |
12 #include "vm/flow_graph_compiler.h" | 12 #include "vm/flow_graph_compiler.h" |
13 #include "vm/heap.h" | 13 #include "vm/heap.h" |
14 #include "vm/instructions.h" | 14 #include "vm/instructions.h" |
15 #include "vm/object_store.h" | 15 #include "vm/object_store.h" |
16 #include "vm/runtime_entry.h" | 16 #include "vm/runtime_entry.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 // Reset exit frame information in Isolate structure. | 98 // Reset exit frame information in Isolate structure. |
99 __ LoadImmediate(R2, 0); | 99 __ LoadImmediate(R2, 0); |
100 __ StoreToOffset(kWord, R2, THR, Thread::top_exit_frame_info_offset()); | 100 __ StoreToOffset(kWord, R2, THR, Thread::top_exit_frame_info_offset()); |
101 | 101 |
102 __ LeaveStubFrame(); | 102 __ LeaveStubFrame(); |
103 __ Ret(); | 103 __ Ret(); |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 // Print the stop message. | |
108 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { | |
109 OS::Print("Stop message: %s\n", message); | |
110 } | |
111 END_LEAF_RUNTIME_ENTRY | |
112 | |
113 | |
114 // Input parameters: | 107 // Input parameters: |
115 // R0 : stop message (const char*). | 108 // R0 : stop message (const char*). |
116 // Must preserve all registers. | 109 // Must preserve all registers. |
117 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 110 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
118 __ EnterCallRuntimeFrame(0); | 111 __ EnterCallRuntimeFrame(0); |
119 // Call the runtime leaf function. R0 already contains the parameter. | 112 // Call the runtime leaf function. R0 already contains the parameter. |
120 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); | 113 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); |
121 __ LeaveCallRuntimeFrame(); | 114 __ LeaveCallRuntimeFrame(); |
122 __ Ret(); | 115 __ Ret(); |
123 } | 116 } |
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2326 __ bkpt(0); | 2319 __ bkpt(0); |
2327 } | 2320 } |
2328 | 2321 |
2329 | 2322 |
2330 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2323 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
2331 __ bkpt(0); | 2324 __ bkpt(0); |
2332 } | 2325 } |
2333 | 2326 |
2334 } // namespace dart | 2327 } // namespace dart |
2335 | 2328 |
2336 #endif // defined TARGET_ARCH_ARM | 2329 #endif // defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME) |
OLD | NEW |