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) |
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" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Cache Context pointer into CTX while executing Dart code. | 89 // Cache Context pointer into CTX while executing Dart code. |
90 __ movq(CTX, RBX); | 90 __ movq(CTX, RBX); |
91 | 91 |
92 __ LeaveFrame(); | 92 __ LeaveFrame(); |
93 __ ret(); | 93 __ ret(); |
94 } | 94 } |
95 | 95 |
96 | 96 |
97 // Print the stop message. | 97 // Print the stop message. |
98 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, const char* message) { | 98 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
99 OS::Print("Stop message: %s\n", message); | 99 OS::Print("Stop message: %s\n", message); |
100 } | 100 } |
101 END_LEAF_RUNTIME_ENTRY | 101 END_LEAF_RUNTIME_ENTRY |
102 | 102 |
103 | 103 |
104 // Input parameters: | 104 // Input parameters: |
105 // RSP : points to return address. | 105 // RSP : points to return address. |
106 // RDI : stop message (const char*). | 106 // RDI : stop message (const char*). |
107 // Must preserve all registers. | 107 // Must preserve all registers. |
108 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 108 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
(...skipping 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2101 __ cmpq(left, right); | 2101 __ cmpq(left, right); |
2102 __ Bind(&done); | 2102 __ Bind(&done); |
2103 __ popq(right); | 2103 __ popq(right); |
2104 __ popq(left); | 2104 __ popq(left); |
2105 __ ret(); | 2105 __ ret(); |
2106 } | 2106 } |
2107 | 2107 |
2108 } // namespace dart | 2108 } // namespace dart |
2109 | 2109 |
2110 #endif // defined TARGET_ARCH_X64 | 2110 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |