| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Mark that the thread is executing Dart code. | 89 // Mark that the thread is executing Dart code. |
| 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 // Print the stop message. | |
| 100 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { | |
| 101 OS::Print("Stop message: %s\n", message); | |
| 102 } | |
| 103 END_LEAF_RUNTIME_ENTRY | |
| 104 | |
| 105 // Input parameters: | 99 // Input parameters: |
| 106 // RSP : points to return address. | 100 // RSP : points to return address. |
| 107 // RDI : stop message (const char*). | 101 // RDI : stop message (const char*). |
| 108 // Must preserve all registers. | 102 // Must preserve all registers. |
| 109 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 103 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
| 110 __ EnterCallRuntimeFrame(0); | 104 __ EnterCallRuntimeFrame(0); |
| 111 // Call the runtime leaf function. RDI already contains the parameter. | 105 // Call the runtime leaf function. RDI already contains the parameter. |
| 112 #if defined(_WIN64) | 106 #if defined(_WIN64) |
| 113 __ movq(CallingConventions::kArg1Reg, RDI); | 107 __ movq(CallingConventions::kArg1Reg, RDI); |
| 114 #endif | 108 #endif |
| (...skipping 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2259 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { | 2253 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { |
| 2260 __ int3(); | 2254 __ int3(); |
| 2261 } | 2255 } |
| 2262 | 2256 |
| 2263 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2257 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2264 __ int3(); | 2258 __ int3(); |
| 2265 } | 2259 } |
| 2266 | 2260 |
| 2267 } // namespace dart | 2261 } // namespace dart |
| 2268 | 2262 |
| 2269 #endif // defined TARGET_ARCH_X64 | 2263 #endif // defined(TARGET_ARCH_X64) && !defined(DART_PRECOMPILED_RUNTIME) |
| OLD | NEW |