| 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 #ifndef V8_REGISTER_ALLOCATOR_VERIFIER_H_ | 5 #ifndef V8_REGISTER_ALLOCATOR_VERIFIER_H_ |
| 6 #define V8_REGISTER_ALLOCATOR_VERIFIER_H_ | 6 #define V8_REGISTER_ALLOCATOR_VERIFIER_H_ |
| 7 | 7 |
| 8 #include "src/zone-containers.h" | 8 #include "src/zone-containers.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 void VerifyGapMoves(); | 23 void VerifyGapMoves(); |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 enum ConstraintType { | 26 enum ConstraintType { |
| 27 kConstant, | 27 kConstant, |
| 28 kImmediate, | 28 kImmediate, |
| 29 kRegister, | 29 kRegister, |
| 30 kFixedRegister, | 30 kFixedRegister, |
| 31 kDoubleRegister, | 31 kDoubleRegister, |
| 32 kFixedDoubleRegister, | 32 kFixedDoubleRegister, |
| 33 kSlot, |
| 34 kDoubleSlot, |
| 33 kFixedSlot, | 35 kFixedSlot, |
| 34 kNone, | 36 kNone, |
| 35 kNoneDouble, | 37 kNoneDouble, |
| 36 kSameAsFirst | 38 kSameAsFirst |
| 37 }; | 39 }; |
| 38 | 40 |
| 39 struct OperandConstraint { | 41 struct OperandConstraint { |
| 40 ConstraintType type_; | 42 ConstraintType type_; |
| 41 int value_; // subkind index when relevant | 43 int value_; // subkind index when relevant |
| 42 int virtual_register_; | 44 int virtual_register_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 Constraints constraints_; | 76 Constraints constraints_; |
| 75 | 77 |
| 76 DISALLOW_COPY_AND_ASSIGN(RegisterAllocatorVerifier); | 78 DISALLOW_COPY_AND_ASSIGN(RegisterAllocatorVerifier); |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace compiler | 81 } // namespace compiler |
| 80 } // namespace internal | 82 } // namespace internal |
| 81 } // namespace v8 | 83 } // namespace v8 |
| 82 | 84 |
| 83 #endif | 85 #endif |
| OLD | NEW |