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

Side by Side Diff: runtime/vm/intermediate_language_ia32.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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 6539 matching lines...) Expand 10 before | Expand all | Expand 10 after
6550 6550
6551 6551
6552 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 6552 void IndirectGotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
6553 Register target_address_reg = locs()->temp_slot(0)->reg(); 6553 Register target_address_reg = locs()->temp_slot(0)->reg();
6554 6554
6555 // Load from [current frame pointer] + kPcMarkerSlotFromFp. 6555 // Load from [current frame pointer] + kPcMarkerSlotFromFp.
6556 __ movl(target_address_reg, Address(EBP, kPcMarkerSlotFromFp * kWordSize)); 6556 __ movl(target_address_reg, Address(EBP, kPcMarkerSlotFromFp * kWordSize));
6557 6557
6558 // Add the offset. 6558 // Add the offset.
6559 Register offset_reg = locs()->in(0).reg(); 6559 Register offset_reg = locs()->in(0).reg();
6560 __ SmiUntag(offset_reg); 6560 if (offset()->definition()->representation() == kTagged) {
6561 __ SmiUntag(offset_reg);
6562 }
6561 __ addl(target_address_reg, offset_reg); 6563 __ addl(target_address_reg, offset_reg);
6562 6564
6563 // Jump to the absolute address. 6565 // Jump to the absolute address.
6564 __ jmp(target_address_reg); 6566 __ jmp(target_address_reg);
6565 } 6567 }
6566 6568
6567 6569
6568 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, 6570 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate,
6569 bool opt) const { 6571 bool opt) const {
6570 const intptr_t kNumInputs = 2; 6572 const intptr_t kNumInputs = 2;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
6815 #if defined(DEBUG) 6817 #if defined(DEBUG)
6816 __ movl(EDX, Immediate(kInvalidObjectPointer)); 6818 __ movl(EDX, Immediate(kInvalidObjectPointer));
6817 #endif 6819 #endif
6818 } 6820 }
6819 6821
6820 } // namespace dart 6822 } // namespace dart
6821 6823
6822 #undef __ 6824 #undef __
6823 6825
6824 #endif // defined TARGET_ARCH_IA32 6826 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698