| 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 22 matching lines...) Expand all Loading... |
| 33 constraint.virtual_register_); | 33 constraint.virtual_register_); |
| 34 } | 34 } |
| 35 } | 35 } |
| 36 | 36 |
| 37 | 37 |
| 38 void RegisterAllocatorVerifier::VerifyTemp( | 38 void RegisterAllocatorVerifier::VerifyTemp( |
| 39 const OperandConstraint& constraint) { | 39 const OperandConstraint& constraint) { |
| 40 CHECK_NE(kSameAsFirst, constraint.type_); | 40 CHECK_NE(kSameAsFirst, constraint.type_); |
| 41 CHECK_NE(kImmediate, constraint.type_); | 41 CHECK_NE(kImmediate, constraint.type_); |
| 42 CHECK_NE(kConstant, constraint.type_); | 42 CHECK_NE(kConstant, constraint.type_); |
| 43 CHECK_EQ(UnallocatedOperand::kInvalidVirtualRegister, | |
| 44 constraint.virtual_register_); | |
| 45 } | 43 } |
| 46 | 44 |
| 47 | 45 |
| 48 void RegisterAllocatorVerifier::VerifyOutput( | 46 void RegisterAllocatorVerifier::VerifyOutput( |
| 49 const OperandConstraint& constraint) { | 47 const OperandConstraint& constraint) { |
| 50 CHECK_NE(kImmediate, constraint.type_); | 48 CHECK_NE(kImmediate, constraint.type_); |
| 51 CHECK_NE(UnallocatedOperand::kInvalidVirtualRegister, | 49 CHECK_NE(UnallocatedOperand::kInvalidVirtualRegister, |
| 52 constraint.virtual_register_); | 50 constraint.virtual_register_); |
| 53 } | 51 } |
| 54 | 52 |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 int virtual_register = op_constraints[count].virtual_register_; | 662 int virtual_register = op_constraints[count].virtual_register_; |
| 665 current->Define(zone(), instr->OutputAt(i), virtual_register); | 663 current->Define(zone(), instr->OutputAt(i), virtual_register); |
| 666 } | 664 } |
| 667 } | 665 } |
| 668 } | 666 } |
| 669 } | 667 } |
| 670 | 668 |
| 671 } // namespace compiler | 669 } // namespace compiler |
| 672 } // namespace internal | 670 } // namespace internal |
| 673 } // namespace v8 | 671 } // namespace v8 |
| OLD | NEW |