| 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_H_ | 5 #ifndef V8_REGISTER_ALLOCATOR_H_ |
| 6 #define V8_REGISTER_ALLOCATOR_H_ | 6 #define V8_REGISTER_ALLOCATOR_H_ |
| 7 | 7 |
| 8 #include "src/compiler/instruction.h" | 8 #include "src/compiler/instruction.h" |
| 9 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
| 10 #include "src/register-configuration.h" | 10 #include "src/register-configuration.h" |
| 11 #include "src/zone-containers.h" | 11 #include "src/zone-containers.h" |
| 12 | 12 |
| 13 namespace v8 { | 13 namespace v8 { |
| 14 namespace internal { | 14 namespace internal { |
| 15 namespace compiler { | 15 namespace compiler { |
| 16 | 16 |
| 17 enum RegisterKind { | 17 enum RegisterKind { GENERAL_REGISTERS, FP_REGISTERS }; |
| 18 GENERAL_REGISTERS, | |
| 19 DOUBLE_REGISTERS | |
| 20 }; | |
| 21 | |
| 22 | 18 |
| 23 // This class represents a single point of a InstructionOperand's lifetime. For | 19 // This class represents a single point of a InstructionOperand's lifetime. For |
| 24 // each instruction there are four lifetime positions: | 20 // each instruction there are four lifetime positions: |
| 25 // | 21 // |
| 26 // [[START, END], [START, END]] | 22 // [[START, END], [START, END]] |
| 27 // | 23 // |
| 28 // Where the first half position corresponds to | 24 // Where the first half position corresponds to |
| 29 // | 25 // |
| 30 // [GapPosition::START, GapPosition::END] | 26 // [GapPosition::START, GapPosition::END] |
| 31 // | 27 // |
| (...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 RegisterAllocationData* const data_; | 1189 RegisterAllocationData* const data_; |
| 1194 | 1190 |
| 1195 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); | 1191 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); |
| 1196 }; | 1192 }; |
| 1197 | 1193 |
| 1198 } // namespace compiler | 1194 } // namespace compiler |
| 1199 } // namespace internal | 1195 } // namespace internal |
| 1200 } // namespace v8 | 1196 } // namespace v8 |
| 1201 | 1197 |
| 1202 #endif // V8_REGISTER_ALLOCATOR_H_ | 1198 #endif // V8_REGISTER_ALLOCATOR_H_ |
| OLD | NEW |