| 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/locations.h" | 5 #include "vm/locations.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/il_printer.h" | 8 #include "vm/il_printer.h" |
| 9 #include "vm/log.h" | 9 #include "vm/log.h" |
| 10 #include "vm/stack_frame.h" | 10 #include "vm/stack_frame.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 case kUnboxedFloat32x4: | 253 case kUnboxedFloat32x4: |
| 254 case kUnboxedInt32x4: | 254 case kUnboxedInt32x4: |
| 255 case kUnboxedFloat64x2: | 255 case kUnboxedFloat64x2: |
| 256 return Location::QuadStackSlot(index); | 256 return Location::QuadStackSlot(index); |
| 257 | 257 |
| 258 default: | 258 default: |
| 259 UNREACHABLE(); | 259 UNREACHABLE(); |
| 260 } | 260 } |
| 261 } else if (IsPairLocation()) { | 261 } else if (IsPairLocation()) { |
| 262 ASSERT(def->representation() == kUnboxedMint); | 262 ASSERT(def->representation() == kUnboxedInt64); |
| 263 PairLocation* value_pair = AsPairLocation(); | 263 PairLocation* value_pair = AsPairLocation(); |
| 264 intptr_t index_lo; | 264 intptr_t index_lo; |
| 265 intptr_t index_hi; | 265 intptr_t index_hi; |
| 266 | 266 |
| 267 if (value_pair->At(0).IsRegister()) { | 267 if (value_pair->At(0).IsRegister()) { |
| 268 index_lo = cpu_reg_slots[value_pair->At(0).reg()]; | 268 index_lo = cpu_reg_slots[value_pair->At(0).reg()]; |
| 269 } else { | 269 } else { |
| 270 ASSERT(value_pair->At(0).IsStackSlot()); | 270 ASSERT(value_pair->At(0).IsStackSlot()); |
| 271 index_lo = value_pair->At(0).stack_index(); | 271 index_lo = value_pair->At(0).stack_index(); |
| 272 } | 272 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 // with the right representation because register allocator does not know | 340 // with the right representation because register allocator does not know |
| 341 // how they are used within the instruction template. | 341 // how they are used within the instruction template. |
| 342 ASSERT(in(i).IsMachineRegister()); | 342 ASSERT(in(i).IsMachineRegister()); |
| 343 ASSERT(live_registers()->Contains(in(i))); | 343 ASSERT(live_registers()->Contains(in(i))); |
| 344 } | 344 } |
| 345 } | 345 } |
| 346 } | 346 } |
| 347 #endif | 347 #endif |
| 348 | 348 |
| 349 } // namespace dart | 349 } // namespace dart |
| OLD | NEW |