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

Side by Side Diff: runtime/vm/stub_code_arm.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.cc ('k') | runtime/vm/stub_code_arm64.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_ARM) 6 #if defined(TARGET_ARCH_ARM) && !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/cpu.h" 10 #include "vm/cpu.h"
11 #include "vm/dart_entry.h" 11 #include "vm/dart_entry.h"
12 #include "vm/flow_graph_compiler.h" 12 #include "vm/flow_graph_compiler.h"
13 #include "vm/heap.h" 13 #include "vm/heap.h"
14 #include "vm/instructions.h" 14 #include "vm/instructions.h"
15 #include "vm/object_store.h" 15 #include "vm/object_store.h"
16 #include "vm/runtime_entry.h" 16 #include "vm/runtime_entry.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 __ StoreToOffset(kWord, R2, THR, Thread::vm_tag_offset()); 96 __ StoreToOffset(kWord, R2, THR, Thread::vm_tag_offset());
97 97
98 // Reset exit frame information in Isolate structure. 98 // Reset exit frame information in Isolate structure.
99 __ LoadImmediate(R2, 0); 99 __ LoadImmediate(R2, 0);
100 __ StoreToOffset(kWord, R2, THR, Thread::top_exit_frame_info_offset()); 100 __ StoreToOffset(kWord, R2, THR, Thread::top_exit_frame_info_offset());
101 101
102 __ LeaveStubFrame(); 102 __ LeaveStubFrame();
103 __ Ret(); 103 __ Ret();
104 } 104 }
105 105
106 // Print the stop message.
107 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) {
108 OS::Print("Stop message: %s\n", message);
109 }
110 END_LEAF_RUNTIME_ENTRY
111
112 // Input parameters: 106 // Input parameters:
113 // R0 : stop message (const char*). 107 // R0 : stop message (const char*).
114 // Must preserve all registers. 108 // Must preserve all registers.
115 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { 109 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) {
116 __ EnterCallRuntimeFrame(0); 110 __ EnterCallRuntimeFrame(0);
117 // Call the runtime leaf function. R0 already contains the parameter. 111 // Call the runtime leaf function. R0 already contains the parameter.
118 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); 112 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1);
119 __ LeaveCallRuntimeFrame(); 113 __ LeaveCallRuntimeFrame();
120 __ Ret(); 114 __ Ret();
121 } 115 }
(...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after
2264 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2258 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2265 __ bkpt(0); 2259 __ bkpt(0);
2266 } 2260 }
2267 2261
2268 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2262 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2269 __ bkpt(0); 2263 __ bkpt(0);
2270 } 2264 }
2271 2265
2272 } // namespace dart 2266 } // namespace dart
2273 2267
2274 #endif // defined TARGET_ARCH_ARM 2268 #endif // defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/stub_code.cc ('k') | runtime/vm/stub_code_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698