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

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

Issue 19464002: Replaces Location::ToStackSlotAddress() with Location::ToStackSlotOffset() (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // where PushArgument is handled by BindInstr::EmitNativeCode. 50 // where PushArgument is handled by BindInstr::EmitNativeCode.
51 __ TraceSimMsg("PushArgumentInstr"); 51 __ TraceSimMsg("PushArgumentInstr");
52 if (compiler->is_optimizing()) { 52 if (compiler->is_optimizing()) {
53 Location value = locs()->in(0); 53 Location value = locs()->in(0);
54 if (value.IsRegister()) { 54 if (value.IsRegister()) {
55 __ Push(value.reg()); 55 __ Push(value.reg());
56 } else if (value.IsConstant()) { 56 } else if (value.IsConstant()) {
57 __ PushObject(value.constant()); 57 __ PushObject(value.constant());
58 } else { 58 } else {
59 ASSERT(value.IsStackSlot()); 59 ASSERT(value.IsStackSlot());
60 __ lw(TMP, value.ToStackSlotAddress()); 60 __ lw(TMP, Address::StackSlotAddress(value));
61 __ Push(TMP); 61 __ Push(TMP);
62 } 62 }
63 } 63 }
64 } 64 }
65 65
66 66
67 LocationSummary* ReturnInstr::MakeLocationSummary() const { 67 LocationSummary* ReturnInstr::MakeLocationSummary() const {
68 const intptr_t kNumInputs = 1; 68 const intptr_t kNumInputs = 1;
69 const intptr_t kNumTemps = 0; 69 const intptr_t kNumTemps = 0;
70 LocationSummary* locs = 70 LocationSummary* locs =
(...skipping 3720 matching lines...) Expand 10 before | Expand all | Expand 10 after
3791 compiler->GenerateCall(token_pos(), 3791 compiler->GenerateCall(token_pos(),
3792 &label, 3792 &label,
3793 PcDescriptors::kOther, 3793 PcDescriptors::kOther,
3794 locs()); 3794 locs());
3795 __ Drop(2); // Discard type arguments and receiver. 3795 __ Drop(2); // Discard type arguments and receiver.
3796 } 3796 }
3797 3797
3798 } // namespace dart 3798 } // namespace dart
3799 3799
3800 #endif // defined TARGET_ARCH_MIPS 3800 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698