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

Side by Side Diff: runtime/vm/intermediate_language_arm.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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // In SSA mode, we need an explicit push. Nothing to do in non-SSA mode 49 // In SSA mode, we need an explicit push. Nothing to do in non-SSA mode
50 // where PushArgument is handled by BindInstr::EmitNativeCode. 50 // where PushArgument is handled by BindInstr::EmitNativeCode.
51 if (compiler->is_optimizing()) { 51 if (compiler->is_optimizing()) {
52 Location value = locs()->in(0); 52 Location value = locs()->in(0);
53 if (value.IsRegister()) { 53 if (value.IsRegister()) {
54 __ Push(value.reg()); 54 __ Push(value.reg());
55 } else if (value.IsConstant()) { 55 } else if (value.IsConstant()) {
56 __ PushObject(value.constant()); 56 __ PushObject(value.constant());
57 } else { 57 } else {
58 ASSERT(value.IsStackSlot()); 58 ASSERT(value.IsStackSlot());
59 __ ldr(IP, value.ToStackSlotAddress()); 59 const intptr_t value_offset = value.ToStackSlotOffset();
60 __ LoadFromOffset(kWord, IP, FP, value_offset);
60 __ Push(IP); 61 __ Push(IP);
61 } 62 }
62 } 63 }
63 } 64 }
64 65
65 66
66 LocationSummary* ReturnInstr::MakeLocationSummary() const { 67 LocationSummary* ReturnInstr::MakeLocationSummary() const {
67 const intptr_t kNumInputs = 1; 68 const intptr_t kNumInputs = 1;
68 const intptr_t kNumTemps = 0; 69 const intptr_t kNumTemps = 0;
69 LocationSummary* locs = 70 LocationSummary* locs =
(...skipping 3603 matching lines...) Expand 10 before | Expand all | Expand 10 after
3673 compiler->GenerateCall(token_pos(), 3674 compiler->GenerateCall(token_pos(),
3674 &label, 3675 &label,
3675 PcDescriptors::kOther, 3676 PcDescriptors::kOther,
3676 locs()); 3677 locs());
3677 __ Drop(2); // Discard type arguments and receiver. 3678 __ Drop(2); // Discard type arguments and receiver.
3678 } 3679 }
3679 3680
3680 } // namespace dart 3681 } // namespace dart
3681 3682
3682 #endif // defined TARGET_ARCH_ARM 3683 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698