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

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

Issue 846553003: Support unboxed input to indirect goto instruction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
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 5444 matching lines...) Expand 10 before | Expand all | Expand 10 after
5455 5455
5456 5456
5457 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5457 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5458 Register target_address_reg = locs()->temp_slot(0)->reg(); 5458 Register target_address_reg = locs()->temp_slot(0)->reg();
5459 5459
5460 // Load from [current frame pointer] + kPcMarkerSlotFromFp. 5460 // Load from [current frame pointer] + kPcMarkerSlotFromFp.
5461 __ ldr(target_address_reg, Address(FP, kPcMarkerSlotFromFp * kWordSize)); 5461 __ ldr(target_address_reg, Address(FP, kPcMarkerSlotFromFp * kWordSize));
5462 5462
5463 // Add the offset. 5463 // Add the offset.
5464 Register offset_reg = locs()->in(0).reg(); 5464 Register offset_reg = locs()->in(0).reg();
5465 __ add(target_address_reg, 5465 Operand offset_opr =
5466 target_address_reg, 5466 offset()->definition()->representation() == kTagged ?
5467 Operand(offset_reg, ASR, kSmiTagSize)); 5467 Operand(offset_reg, ASR, kSmiTagSize) :
5468 Operand(offset_reg);
5469 __ add(target_address_reg, target_address_reg, offset_opr);
5468 5470
5469 // Jump to the absolute address. 5471 // Jump to the absolute address.
5470 __ br(target_address_reg); 5472 __ br(target_address_reg);
5471 } 5473 }
5472 5474
5473 5475
5474 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, 5476 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate,
5475 bool opt) const { 5477 bool opt) const {
5476 const intptr_t kNumInputs = 2; 5478 const intptr_t kNumInputs = 2;
5477 const intptr_t kNumTemps = 0; 5479 const intptr_t kNumTemps = 0;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
5604 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 5606 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
5605 #if defined(DEBUG) 5607 #if defined(DEBUG)
5606 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); 5608 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP);
5607 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); 5609 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP);
5608 #endif 5610 #endif
5609 } 5611 }
5610 5612
5611 } // namespace dart 5613 } // namespace dart
5612 5614
5613 #endif // defined TARGET_ARCH_ARM64 5615 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698