| 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) && !defined(DART_PRECOMPILED_RUNTIME) | 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" |
| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 __ movl(Assembler::VMTagAddress(), Immediate(VMTag::kDartTagId)); | 86 __ movl(Assembler::VMTagAddress(), Immediate(VMTag::kDartTagId)); |
| 87 | 87 |
| 88 // Reset exit frame information in Isolate structure. | 88 // Reset exit frame information in Isolate structure. |
| 89 __ movl(Address(THR, Thread::top_exit_frame_info_offset()), Immediate(0)); | 89 __ movl(Address(THR, Thread::top_exit_frame_info_offset()), Immediate(0)); |
| 90 | 90 |
| 91 __ LeaveFrame(); | 91 __ LeaveFrame(); |
| 92 __ ret(); | 92 __ ret(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 // Print the stop message. |
| 96 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
| 97 OS::Print("Stop message: %s\n", message); |
| 98 } |
| 99 END_LEAF_RUNTIME_ENTRY |
| 100 |
| 95 // Input parameters: | 101 // Input parameters: |
| 96 // ESP : points to return address. | 102 // ESP : points to return address. |
| 97 // EAX : stop message (const char*). | 103 // EAX : stop message (const char*). |
| 98 // Must preserve all registers, except EAX. | 104 // Must preserve all registers, except EAX. |
| 99 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 105 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
| 100 __ EnterCallRuntimeFrame(1 * kWordSize); | 106 __ EnterCallRuntimeFrame(1 * kWordSize); |
| 101 __ movl(Address(ESP, 0), EAX); | 107 __ movl(Address(ESP, 0), EAX); |
| 102 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); | 108 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); |
| 103 __ LeaveCallRuntimeFrame(); | 109 __ LeaveCallRuntimeFrame(); |
| 104 __ ret(); | 110 __ ret(); |
| (...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2068 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { | 2074 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { |
| 2069 __ int3(); | 2075 __ int3(); |
| 2070 } | 2076 } |
| 2071 | 2077 |
| 2072 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2078 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2073 __ int3(); | 2079 __ int3(); |
| 2074 } | 2080 } |
| 2075 | 2081 |
| 2076 } // namespace dart | 2082 } // namespace dart |
| 2077 | 2083 |
| 2078 #endif // defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME) | 2084 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |