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/constants_mips.h" | 8 #include "vm/constants_mips.h" |
9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
10 #include "vm/instructions.h" | 10 #include "vm/instructions.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 RawICData* CallPattern::IcData() { | 122 RawICData* CallPattern::IcData() { |
123 if (ic_data_.IsNull()) { | 123 if (ic_data_.IsNull()) { |
124 Register reg; | 124 Register reg; |
125 args_desc_load_end_ = DecodeLoadObject(ic_data_load_end_, ®, &ic_data_); | 125 args_desc_load_end_ = DecodeLoadObject(ic_data_load_end_, ®, &ic_data_); |
126 ASSERT(reg == S5); | 126 ASSERT(reg == S5); |
127 } | 127 } |
128 return ic_data_.raw(); | 128 return ic_data_.raw(); |
129 } | 129 } |
130 | 130 |
131 | 131 |
132 RawArray* CallPattern::ArgumentsDescriptor() { | 132 RawArray* CallPattern::ClosureArgumentsDescriptor() { |
133 if (args_desc_.IsNull()) { | 133 if (args_desc_.IsNull()) { |
134 IcData(); // Loading of the ic_data must be decoded first, if not already. | 134 IcData(); // Loading of the ic_data must be decoded first, if not already. |
135 Register reg; | 135 Register reg; |
136 DecodeLoadObject(args_desc_load_end_, ®, &args_desc_); | 136 DecodeLoadObject(args_desc_load_end_, ®, &args_desc_); |
137 ASSERT(reg == S4); | 137 ASSERT(reg == S4); |
138 } | 138 } |
139 return args_desc_.raw(); | 139 return args_desc_.raw(); |
140 } | 140 } |
141 | 141 |
142 | 142 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 const uint16_t target_hi = target_address >> 16; | 211 const uint16_t target_hi = target_address >> 16; |
212 | 212 |
213 lui->SetInstructionBits((lui_bits & 0xffff0000) | target_hi); | 213 lui->SetInstructionBits((lui_bits & 0xffff0000) | target_hi); |
214 ori->SetInstructionBits((ori_bits & 0xffff0000) | target_lo); | 214 ori->SetInstructionBits((ori_bits & 0xffff0000) | target_lo); |
215 } | 215 } |
216 | 216 |
217 } // namespace dart | 217 } // namespace dart |
218 | 218 |
219 #endif // defined TARGET_ARCH_MIPS | 219 #endif // defined TARGET_ARCH_MIPS |
220 | 220 |
OLD | NEW |