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

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

Issue 1160063002: Remove unused pc descriptor types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: remove kOptStaticCall Created 5 years, 6 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
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" // Needed here to get TARGET_ARCH_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // R4: Arguments descriptor. 215 // R4: Arguments descriptor.
216 // R0: Function. 216 // R0: Function.
217 ASSERT(locs()->in(0).reg() == R0); 217 ASSERT(locs()->in(0).reg() == R0);
218 __ LoadFieldFromOffset(R2, R0, Function::instructions_offset(), PP); 218 __ LoadFieldFromOffset(R2, R0, Function::instructions_offset(), PP);
219 219
220 // R2: instructions. 220 // R2: instructions.
221 // R5: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). 221 // R5: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value).
222 __ LoadImmediate(R5, 0, PP); 222 __ LoadImmediate(R5, 0, PP);
223 __ AddImmediate(R2, R2, Instructions::HeaderSize() - kHeapObjectTag, PP); 223 __ AddImmediate(R2, R2, Instructions::HeaderSize() - kHeapObjectTag, PP);
224 __ blr(R2); 224 __ blr(R2);
225 compiler->AddCurrentDescriptor(RawPcDescriptors::kClosureCall,
226 deopt_id(),
227 token_pos());
228 compiler->RecordSafepoint(locs()); 225 compiler->RecordSafepoint(locs());
229 // Marks either the continuation point in unoptimized code or the 226 // Marks either the continuation point in unoptimized code or the
230 // deoptimization point in optimized code, after call. 227 // deoptimization point in optimized code, after call.
231 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id()); 228 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id());
232 if (compiler->is_optimizing()) { 229 if (compiler->is_optimizing()) {
233 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos()); 230 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos());
234 } else {
235 // Add deoptimization continuation point after the call and before the
236 // arguments are removed.
237 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
238 deopt_id_after,
239 token_pos());
240 } 231 }
232 // Add deoptimization continuation point after the call and before the
233 // arguments are removed.
234 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
235 deopt_id_after,
236 token_pos());
241 __ Drop(argument_count); 237 __ Drop(argument_count);
242 } 238 }
243 239
244 240
245 LocationSummary* LoadLocalInstr::MakeLocationSummary(Zone* zone, 241 LocationSummary* LoadLocalInstr::MakeLocationSummary(Zone* zone,
246 bool opt) const { 242 bool opt) const {
247 return LocationSummary::Make(zone, 243 return LocationSummary::Make(zone,
248 0, 244 0,
249 Location::RequiresRegister(), 245 Location::RequiresRegister(),
250 LocationSummary::kNoCall); 246 LocationSummary::kNoCall);
(...skipping 5406 matching lines...) Expand 10 before | Expand all | Expand 10 after
5657 1, 5653 1,
5658 locs()); 5654 locs());
5659 __ Drop(1); 5655 __ Drop(1);
5660 __ Pop(result); 5656 __ Pop(result);
5661 } 5657 }
5662 5658
5663 5659
5664 } // namespace dart 5660 } // namespace dart
5665 5661
5666 #endif // defined TARGET_ARCH_ARM64 5662 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698