OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/bit-vector.h" | 5 #include "src/bit-vector.h" |
6 #include "src/compiler/instruction.h" | 6 #include "src/compiler/instruction.h" |
7 #include "src/compiler/register-allocator-verifier.h" | 7 #include "src/compiler/register-allocator-verifier.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 ? imm->inline_value() | 211 ? imm->inline_value() |
212 : imm->indexed_value(); | 212 : imm->indexed_value(); |
213 CHECK_EQ(value, constraint->value_); | 213 CHECK_EQ(value, constraint->value_); |
214 return; | 214 return; |
215 } | 215 } |
216 case kRegister: | 216 case kRegister: |
217 CHECK(op->IsRegister()); | 217 CHECK(op->IsRegister()); |
218 return; | 218 return; |
219 case kFixedRegister: | 219 case kFixedRegister: |
220 CHECK(op->IsRegister()); | 220 CHECK(op->IsRegister()); |
221 CHECK_EQ(RegisterOperand::cast(op)->GetDoubleRegister().code(), | 221 CHECK_EQ(RegisterOperand::cast(op)->index(), constraint->value_); |
222 constraint->value_); | |
223 return; | 222 return; |
224 case kDoubleRegister: | 223 case kDoubleRegister: |
225 CHECK(op->IsDoubleRegister()); | 224 CHECK(op->IsDoubleRegister()); |
226 return; | 225 return; |
227 case kFixedDoubleRegister: | 226 case kFixedDoubleRegister: |
228 CHECK(op->IsDoubleRegister()); | 227 CHECK(op->IsDoubleRegister()); |
229 CHECK_EQ(DoubleRegisterOperand::cast(op)->GetDoubleRegister().code(), | 228 CHECK_EQ(DoubleRegisterOperand::cast(op)->index(), constraint->value_); |
230 constraint->value_); | |
231 return; | 229 return; |
232 case kFixedSlot: | 230 case kFixedSlot: |
233 CHECK(op->IsStackSlot()); | 231 CHECK(op->IsStackSlot()); |
234 CHECK_EQ(StackSlotOperand::cast(op)->index(), constraint->value_); | 232 CHECK_EQ(StackSlotOperand::cast(op)->index(), constraint->value_); |
235 return; | 233 return; |
236 case kSlot: | 234 case kSlot: |
237 CHECK(op->IsStackSlot()); | 235 CHECK(op->IsStackSlot()); |
238 return; | 236 return; |
239 case kDoubleSlot: | 237 case kDoubleSlot: |
240 CHECK(op->IsDoubleStackSlot()); | 238 CHECK(op->IsDoubleStackSlot()); |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 int virtual_register = op_constraints[count].virtual_register_; | 696 int virtual_register = op_constraints[count].virtual_register_; |
699 current->Define(zone(), instr->OutputAt(i), virtual_register); | 697 current->Define(zone(), instr->OutputAt(i), virtual_register); |
700 } | 698 } |
701 } | 699 } |
702 } | 700 } |
703 } | 701 } |
704 | 702 |
705 } // namespace compiler | 703 } // namespace compiler |
706 } // namespace internal | 704 } // namespace internal |
707 } // namespace v8 | 705 } // namespace v8 |
OLD | NEW |