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

Side by Side Diff: runtime/vm/stub_code_arm64.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_arm.cc ('k') | runtime/vm/stub_code_dbc.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64) 6 #if defined(TARGET_ARCH_ARM64) && !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/runtime_entry.h" 15 #include "vm/runtime_entry.h"
16 #include "vm/stack_frame.h" 16 #include "vm/stack_frame.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 __ LoadImmediate(R2, VMTag::kDartTagId); 116 __ LoadImmediate(R2, VMTag::kDartTagId);
117 __ StoreToOffset(R2, THR, Thread::vm_tag_offset()); 117 __ StoreToOffset(R2, THR, Thread::vm_tag_offset());
118 118
119 // Reset exit frame information in Isolate structure. 119 // Reset exit frame information in Isolate structure.
120 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); 120 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset());
121 121
122 __ LeaveStubFrame(); 122 __ LeaveStubFrame();
123 __ ret(); 123 __ ret();
124 } 124 }
125 125
126 // Print the stop message.
127 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) {
128 OS::Print("Stop message: %s\n", message);
129 }
130 END_LEAF_RUNTIME_ENTRY
131
132 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { 126 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) {
133 __ Stop("GeneratePrintStopMessageStub"); 127 __ Stop("GeneratePrintStopMessageStub");
134 } 128 }
135 129
136 // Input parameters: 130 // Input parameters:
137 // LR : return address. 131 // LR : return address.
138 // SP : address of return value. 132 // SP : address of return value.
139 // R5 : address of the native function to call. 133 // R5 : address of the native function to call.
140 // R2 : address of first argument in argument array. 134 // R2 : address of first argument in argument array.
141 // R1 : argc_tag including number of arguments and function kind. 135 // R1 : argc_tag including number of arguments and function kind.
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after
2315 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2309 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2316 __ brk(0); 2310 __ brk(0);
2317 } 2311 }
2318 2312
2319 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2313 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2320 __ brk(0); 2314 __ brk(0);
2321 } 2315 }
2322 2316
2323 } // namespace dart 2317 } // namespace dart
2324 2318
2325 #endif // defined TARGET_ARCH_ARM64 2319 #endif // defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698