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