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

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

Issue 3001463002: [gardening] Revert "Eliminate dependencies on assemblers and code stubs in precompiled runtime." (Closed)
Patch Set: Created 3 years, 4 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) && !defined(DART_PRECOMPILED_RUNTIME) 6 #if defined(TARGET_ARCH_ARM64)
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
126 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { 132 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) {
127 __ Stop("GeneratePrintStopMessageStub"); 133 __ Stop("GeneratePrintStopMessageStub");
128 } 134 }
129 135
130 // Input parameters: 136 // Input parameters:
131 // LR : return address. 137 // LR : return address.
132 // SP : address of return value. 138 // SP : address of return value.
133 // R5 : address of the native function to call. 139 // R5 : address of the native function to call.
134 // R2 : address of first argument in argument array. 140 // R2 : address of first argument in argument array.
135 // R1 : argc_tag including number of arguments and function kind. 141 // R1 : argc_tag including number of arguments and function kind.
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after
2309 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2315 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2310 __ brk(0); 2316 __ brk(0);
2311 } 2317 }
2312 2318
2313 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2319 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2314 __ brk(0); 2320 __ brk(0);
2315 } 2321 }
2316 2322
2317 } // namespace dart 2323 } // namespace dart
2318 2324
2319 #endif // defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME) 2325 #endif // defined TARGET_ARCH_ARM64
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