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

Side by Side Diff: runtime/vm/intermediate_language_mips.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 5421 matching lines...) Expand 10 before | Expand all | Expand 10 after
5432 5432
5433 5433
5434 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5434 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5435 Register target_address_reg = locs()->temp_slot(0)->reg(); 5435 Register target_address_reg = locs()->temp_slot(0)->reg();
5436 5436
5437 // Load from [current frame pointer] + kPcMarkerSlotFromFp. 5437 // Load from [current frame pointer] + kPcMarkerSlotFromFp.
5438 __ lw(target_address_reg, Address(FP, kPcMarkerSlotFromFp * kWordSize)); 5438 __ lw(target_address_reg, Address(FP, kPcMarkerSlotFromFp * kWordSize));
5439 5439
5440 // Add the offset. 5440 // Add the offset.
5441 Register offset_reg = locs()->in(0).reg(); 5441 Register offset_reg = locs()->in(0).reg();
5442 if (offset()->definition()->representation() == kTagged) {
5442 __ SmiUntag(offset_reg); 5443 __ SmiUntag(offset_reg);
5444 }
5443 __ addu(target_address_reg, target_address_reg, offset_reg); 5445 __ addu(target_address_reg, target_address_reg, offset_reg);
5444 5446
5445 // Jump to the absolute address. 5447 // Jump to the absolute address.
5446 __ jr(target_address_reg); 5448 __ jr(target_address_reg);
5447 } 5449 }
5448 5450
5449 5451
5450 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, 5452 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate,
5451 bool opt) const { 5453 bool opt) const {
5452 const intptr_t kNumInputs = 2; 5454 const intptr_t kNumInputs = 2;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
5584 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 5586 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
5585 #if defined(DEBUG) 5587 #if defined(DEBUG)
5586 __ LoadImmediate(S4, kInvalidObjectPointer); 5588 __ LoadImmediate(S4, kInvalidObjectPointer);
5587 __ LoadImmediate(S5, kInvalidObjectPointer); 5589 __ LoadImmediate(S5, kInvalidObjectPointer);
5588 #endif 5590 #endif
5589 } 5591 }
5590 5592
5591 } // namespace dart 5593 } // namespace dart
5592 5594
5593 #endif // defined TARGET_ARCH_MIPS 5595 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698