| 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_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 Loading... |
| 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 const intptr_t value_offset = value.ToStackSlotOffset(); |
| 61 __ LoadFromOffset(TMP, FP, value_offset); |
| 61 __ Push(TMP); | 62 __ Push(TMP); |
| 62 } | 63 } |
| 63 } | 64 } |
| 64 } | 65 } |
| 65 | 66 |
| 66 | 67 |
| 67 LocationSummary* ReturnInstr::MakeLocationSummary() const { | 68 LocationSummary* ReturnInstr::MakeLocationSummary() const { |
| 68 const intptr_t kNumInputs = 1; | 69 const intptr_t kNumInputs = 1; |
| 69 const intptr_t kNumTemps = 0; | 70 const intptr_t kNumTemps = 0; |
| 70 LocationSummary* locs = | 71 LocationSummary* locs = |
| (...skipping 3720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3791 compiler->GenerateCall(token_pos(), | 3792 compiler->GenerateCall(token_pos(), |
| 3792 &label, | 3793 &label, |
| 3793 PcDescriptors::kOther, | 3794 PcDescriptors::kOther, |
| 3794 locs()); | 3795 locs()); |
| 3795 __ Drop(2); // Discard type arguments and receiver. | 3796 __ Drop(2); // Discard type arguments and receiver. |
| 3796 } | 3797 } |
| 3797 | 3798 |
| 3798 } // namespace dart | 3799 } // namespace dart |
| 3799 | 3800 |
| 3800 #endif // defined TARGET_ARCH_MIPS | 3801 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |