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_X64) | 6 #if defined(TARGET_ARCH_X64) && !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/resolver.h" | 15 #include "vm/resolver.h" |
16 #include "vm/scavenger.h" | 16 #include "vm/scavenger.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 __ movq(Assembler::VMTagAddress(), Immediate(VMTag::kDartTagId)); | 90 __ movq(Assembler::VMTagAddress(), Immediate(VMTag::kDartTagId)); |
91 | 91 |
92 // Reset exit frame information in Isolate structure. | 92 // Reset exit frame information in Isolate structure. |
93 __ movq(Address(THR, Thread::top_exit_frame_info_offset()), Immediate(0)); | 93 __ movq(Address(THR, Thread::top_exit_frame_info_offset()), Immediate(0)); |
94 | 94 |
95 __ LeaveStubFrame(); | 95 __ LeaveStubFrame(); |
96 __ ret(); | 96 __ ret(); |
97 } | 97 } |
98 | 98 |
99 | 99 |
100 // Print the stop message. | |
101 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { | |
102 OS::Print("Stop message: %s\n", message); | |
103 } | |
104 END_LEAF_RUNTIME_ENTRY | |
105 | |
106 | |
107 // Input parameters: | 100 // Input parameters: |
108 // RSP : points to return address. | 101 // RSP : points to return address. |
109 // RDI : stop message (const char*). | 102 // RDI : stop message (const char*). |
110 // Must preserve all registers. | 103 // Must preserve all registers. |
111 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 104 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
112 __ EnterCallRuntimeFrame(0); | 105 __ EnterCallRuntimeFrame(0); |
113 // Call the runtime leaf function. RDI already contains the parameter. | 106 // Call the runtime leaf function. RDI already contains the parameter. |
114 #if defined(_WIN64) | 107 #if defined(_WIN64) |
115 __ movq(CallingConventions::kArg1Reg, RDI); | 108 __ movq(CallingConventions::kArg1Reg, RDI); |
116 #endif | 109 #endif |
(...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2322 __ int3(); | 2315 __ int3(); |
2323 } | 2316 } |
2324 | 2317 |
2325 | 2318 |
2326 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2319 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
2327 __ int3(); | 2320 __ int3(); |
2328 } | 2321 } |
2329 | 2322 |
2330 } // namespace dart | 2323 } // namespace dart |
2331 | 2324 |
2332 #endif // defined TARGET_ARCH_X64 | 2325 #endif // defined(TARGET_ARCH_X64) && !defined(DART_PRECOMPILED_RUNTIME) |
OLD | NEW |