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

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: added comment 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
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.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" // 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 // In optimized code this descriptor is needed for exception handling.
235 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
236 deopt_id_after,
237 token_pos());
241 __ Drop(argument_count); 238 __ Drop(argument_count);
242 } 239 }
243 240
244 241
245 LocationSummary* LoadLocalInstr::MakeLocationSummary(Zone* zone, 242 LocationSummary* LoadLocalInstr::MakeLocationSummary(Zone* zone,
246 bool opt) const { 243 bool opt) const {
247 return LocationSummary::Make(zone, 244 return LocationSummary::Make(zone,
248 0, 245 0,
249 Location::RequiresRegister(), 246 Location::RequiresRegister(),
250 LocationSummary::kNoCall); 247 LocationSummary::kNoCall);
(...skipping 5406 matching lines...) Expand 10 before | Expand all | Expand 10 after
5657 1, 5654 1,
5658 locs()); 5655 locs());
5659 __ Drop(1); 5656 __ Drop(1);
5660 __ Pop(result); 5657 __ Pop(result);
5661 } 5658 }
5662 5659
5663 5660
5664 } // namespace dart 5661 } // namespace dart
5665 5662
5666 #endif // defined TARGET_ARCH_ARM64 5663 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698