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

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

Issue 2976723003: Eliminate dependencies on assemblers and code stubs in precompiled runtime. (Closed)
Patch Set: Eliminate precompiled runtime flag Created 3 years, 5 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 106
107 // Print the stop message.
108 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) {
109 OS::Print("Stop message: %s\n", message);
110 }
111 END_LEAF_RUNTIME_ENTRY
112
113
114 // Input parameters: 107 // Input parameters:
115 // R0 : stop message (const char*). 108 // R0 : stop message (const char*).
116 // Must preserve all registers. 109 // Must preserve all registers.
117 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { 110 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) {
118 __ EnterCallRuntimeFrame(0); 111 __ EnterCallRuntimeFrame(0);
119 // Call the runtime leaf function. R0 already contains the parameter. 112 // Call the runtime leaf function. R0 already contains the parameter.
120 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1); 113 __ CallRuntime(kPrintStopMessageRuntimeEntry, 1);
121 __ LeaveCallRuntimeFrame(); 114 __ LeaveCallRuntimeFrame();
122 __ Ret(); 115 __ Ret();
123 } 116 }
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 __ bkpt(0); 2319 __ bkpt(0);
2327 } 2320 }
2328 2321
2329 2322
2330 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2323 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2331 __ bkpt(0); 2324 __ bkpt(0);
2332 } 2325 }
2333 2326
2334 } // namespace dart 2327 } // namespace dart
2335 2328
2336 #endif // defined TARGET_ARCH_ARM 2329 #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