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 { |
11 namespace internal { | 11 namespace internal { |
12 namespace compiler { | 12 namespace compiler { |
13 | 13 |
14 class InstructionOperand; | 14 class InstructionOperand; |
15 class InstructionSequence; | 15 class InstructionSequence; |
16 | 16 |
17 class RegisterAllocatorVerifier FINAL : public ZoneObject { | 17 class RegisterAllocatorVerifier final : public ZoneObject { |
18 public: | 18 public: |
19 RegisterAllocatorVerifier(Zone* zone, const RegisterConfiguration* config, | 19 RegisterAllocatorVerifier(Zone* zone, const RegisterConfiguration* config, |
20 const InstructionSequence* sequence); | 20 const InstructionSequence* sequence); |
21 | 21 |
22 void VerifyAssignment(); | 22 void VerifyAssignment(); |
23 void VerifyGapMoves(); | 23 void VerifyGapMoves(); |
24 | 24 |
25 private: | 25 private: |
26 enum ConstraintType { | 26 enum ConstraintType { |
27 kConstant, | 27 kConstant, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 Constraints constraints_; | 76 Constraints constraints_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(RegisterAllocatorVerifier); | 78 DISALLOW_COPY_AND_ASSIGN(RegisterAllocatorVerifier); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace compiler | 81 } // namespace compiler |
82 } // namespace internal | 82 } // namespace internal |
83 } // namespace v8 | 83 } // namespace v8 |
84 | 84 |
85 #endif | 85 #endif |
OLD | NEW |