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

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

Issue 572913002: Revert r40306 because of crash. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
« 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->RecordCallInfo(token_pos(), 225 compiler->AddCurrentDescriptor(RawPcDescriptors::kClosureCall,
226 RawPcDescriptors::kClosureCall, 226 deopt_id(),
227 deopt_id(), 227 token_pos());
228 locs(), 228 compiler->RecordSafepoint(locs());
229 locs()->input_count()); 229 // Marks either the continuation point in unoptimized code or the
230 // deoptimization point in optimized code, after call.
231 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id());
232 if (compiler->is_optimizing()) {
233 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 }
230 __ Drop(argument_count); 241 __ Drop(argument_count);
231 } 242 }
232 243
233 244
234 LocationSummary* LoadLocalInstr::MakeLocationSummary(Isolate* isolate, 245 LocationSummary* LoadLocalInstr::MakeLocationSummary(Isolate* isolate,
235 bool opt) const { 246 bool opt) const {
236 return LocationSummary::Make(isolate, 247 return LocationSummary::Make(isolate,
237 0, 248 0,
238 Location::RequiresRegister(), 249 Location::RequiresRegister(),
239 LocationSummary::kNoCall); 250 LocationSummary::kNoCall);
(...skipping 5285 matching lines...) Expand 10 before | Expand all | Expand 10 after
5525 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 5536 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
5526 #if defined(DEBUG) 5537 #if defined(DEBUG)
5527 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); 5538 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP);
5528 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); 5539 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP);
5529 #endif 5540 #endif
5530 } 5541 }
5531 5542
5532 } // namespace dart 5543 } // namespace dart
5533 5544
5534 #endif // defined TARGET_ARCH_ARM64 5545 #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