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

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

Issue 626523002: VM: Improve generated code for loading the current context. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 5334 matching lines...) Expand 10 before | Expand all | Expand 10 after
5345 } 5345 }
5346 5346
5347 // We can fall through if the successor is the next block in the list. 5347 // We can fall through if the successor is the next block in the list.
5348 // Otherwise, we need a jump. 5348 // Otherwise, we need a jump.
5349 if (!compiler->CanFallThroughTo(successor())) { 5349 if (!compiler->CanFallThroughTo(successor())) {
5350 __ b(compiler->GetJumpLabel(successor())); 5350 __ b(compiler->GetJumpLabel(successor()));
5351 } 5351 }
5352 } 5352 }
5353 5353
5354 5354
5355 LocationSummary* CurrentContextInstr::MakeLocationSummary(Isolate* isolate,
5356 bool opt) const {
5357 return LocationSummary::Make(isolate,
5358 0,
5359 Location::RequiresRegister(),
5360 LocationSummary::kNoCall);
5361 }
5362
5363
5364 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5365 __ mov(locs()->out(0).reg(), CTX);
5366 }
5367
5368
5369 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, 5355 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate,
5370 bool opt) const { 5356 bool opt) const {
5371 const intptr_t kNumInputs = 2; 5357 const intptr_t kNumInputs = 2;
5372 const intptr_t kNumTemps = 0; 5358 const intptr_t kNumTemps = 0;
5373 if (needs_number_check()) { 5359 if (needs_number_check()) {
5374 LocationSummary* locs = new(isolate) LocationSummary( 5360 LocationSummary* locs = new(isolate) LocationSummary(
5375 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); 5361 isolate, kNumInputs, kNumTemps, LocationSummary::kCall);
5376 locs->set_in(0, Location::RegisterLocation(R0)); 5362 locs->set_in(0, Location::RegisterLocation(R0));
5377 locs->set_in(1, Location::RegisterLocation(R1)); 5363 locs->set_in(1, Location::RegisterLocation(R1));
5378 locs->set_out(0, Location::RegisterLocation(R0)); 5364 locs->set_out(0, Location::RegisterLocation(R0));
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
5495 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 5481 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
5496 #if defined(DEBUG) 5482 #if defined(DEBUG)
5497 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); 5483 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP);
5498 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); 5484 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP);
5499 #endif 5485 #endif
5500 } 5486 }
5501 5487
5502 } // namespace dart 5488 } // namespace dart
5503 5489
5504 #endif // defined TARGET_ARCH_ARM64 5490 #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