| OLD | NEW |
| 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 Loading... |
| 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 __ ldr(IP, Address::StackSlotAddress(value)); |
| 60 __ Push(IP); | 60 __ Push(IP); |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 | 64 |
| 65 | 65 |
| 66 LocationSummary* ReturnInstr::MakeLocationSummary() const { | 66 LocationSummary* ReturnInstr::MakeLocationSummary() const { |
| 67 const intptr_t kNumInputs = 1; | 67 const intptr_t kNumInputs = 1; |
| 68 const intptr_t kNumTemps = 0; | 68 const intptr_t kNumTemps = 0; |
| 69 LocationSummary* locs = | 69 LocationSummary* locs = |
| (...skipping 3603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3673 compiler->GenerateCall(token_pos(), | 3673 compiler->GenerateCall(token_pos(), |
| 3674 &label, | 3674 &label, |
| 3675 PcDescriptors::kOther, | 3675 PcDescriptors::kOther, |
| 3676 locs()); | 3676 locs()); |
| 3677 __ Drop(2); // Discard type arguments and receiver. | 3677 __ Drop(2); // Discard type arguments and receiver. |
| 3678 } | 3678 } |
| 3679 | 3679 |
| 3680 } // namespace dart | 3680 } // namespace dart |
| 3681 | 3681 |
| 3682 #endif // defined TARGET_ARCH_ARM | 3682 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |