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_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // Cache Context pointer into CTX while executing Dart code. | 88 // Cache Context pointer into CTX while executing Dart code. |
89 __ movl(CTX, ECX); | 89 __ movl(CTX, ECX); |
90 | 90 |
91 __ LeaveFrame(); | 91 __ LeaveFrame(); |
92 __ ret(); | 92 __ ret(); |
93 } | 93 } |
94 | 94 |
95 | 95 |
96 // Print the stop message. | 96 // Print the stop message. |
97 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, const char* message) { | 97 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
98 OS::Print("Stop message: %s\n", message); | 98 OS::Print("Stop message: %s\n", message); |
99 } | 99 } |
100 END_LEAF_RUNTIME_ENTRY | 100 END_LEAF_RUNTIME_ENTRY |
101 | 101 |
102 | 102 |
103 // Input parameters: | 103 // Input parameters: |
104 // ESP : points to return address. | 104 // ESP : points to return address. |
105 // EAX : stop message (const char*). | 105 // EAX : stop message (const char*). |
106 // Must preserve all registers, except EAX. | 106 // Must preserve all registers, except EAX. |
107 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 107 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2147 __ Bind(&done); | 2147 __ Bind(&done); |
2148 __ popl(temp); | 2148 __ popl(temp); |
2149 __ popl(right); | 2149 __ popl(right); |
2150 __ popl(left); | 2150 __ popl(left); |
2151 __ ret(); | 2151 __ ret(); |
2152 } | 2152 } |
2153 | 2153 |
2154 } // namespace dart | 2154 } // namespace dart |
2155 | 2155 |
2156 #endif // defined TARGET_ARCH_IA32 | 2156 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |