| 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) && !defined(DART_PRECOMPILED_RUNTIME) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 __ StoreToOffset(kWord, R2, THR, Thread::vm_tag_offset()); | 96 __ StoreToOffset(kWord, R2, THR, Thread::vm_tag_offset()); |
| 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 // Print the stop message. |
| 107 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
| 108 OS::Print("Stop message: %s\n", message); |
| 109 } |
| 110 END_LEAF_RUNTIME_ENTRY |
| 111 |
| 106 // Input parameters: | 112 // Input parameters: |
| 107 // R0 : stop message (const char*). | 113 // R0 : stop message (const char*). |
| 108 // Must preserve all registers. | 114 // Must preserve all registers. |
| 109 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 115 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
| 110 __ EnterCallRuntimeFrame(0); | 116 __ EnterCallRuntimeFrame(0); |
| 111 // Call the runtime leaf function. R0 already contains the parameter. | 117 // Call the runtime leaf function. R0 already contains the parameter. |
| 112 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); | 118 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); |
| 113 __ LeaveCallRuntimeFrame(); | 119 __ LeaveCallRuntimeFrame(); |
| 114 __ Ret(); | 120 __ Ret(); |
| 115 } | 121 } |
| (...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2258 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { | 2264 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { |
| 2259 __ bkpt(0); | 2265 __ bkpt(0); |
| 2260 } | 2266 } |
| 2261 | 2267 |
| 2262 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2268 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2263 __ bkpt(0); | 2269 __ bkpt(0); |
| 2264 } | 2270 } |
| 2265 | 2271 |
| 2266 } // namespace dart | 2272 } // namespace dart |
| 2267 | 2273 |
| 2268 #endif // defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME) | 2274 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |