Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: runtime/vm/stub_code_ia32.cc

Issue 3006923002: Revised "Eliminate dependencies on assemblers and code stubs in precompiled runtime." (Closed)
Patch Set: Explicitly clear unbox_numeric_fields flag in PRODUCT builds Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/stub_code_dbc.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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) && !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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
101 // Input parameters: 95 // Input parameters:
102 // ESP : points to return address. 96 // ESP : points to return address.
103 // EAX : stop message (const char*). 97 // EAX : stop message (const char*).
104 // Must preserve all registers, except EAX. 98 // Must preserve all registers, except EAX.
105 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { 99 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) {
106 __ EnterCallRuntimeFrame(1 * kWordSize); 100 __ EnterCallRuntimeFrame(1 * kWordSize);
107 __ movl(Address(ESP, 0), EAX); 101 __ movl(Address(ESP, 0), EAX);
108 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); 102 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1);
109 __ LeaveCallRuntimeFrame(); 103 __ LeaveCallRuntimeFrame();
110 __ ret(); 104 __ ret();
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2068 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2075 __ int3(); 2069 __ int3();
2076 } 2070 }
2077 2071
2078 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2072 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2079 __ int3(); 2073 __ int3();
2080 } 2074 }
2081 2075
2082 } // namespace dart 2076 } // namespace dart
2083 2077
2084 #endif // defined TARGET_ARCH_IA32 2078 #endif // defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_dbc.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698