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/zone-containers.h" | 9 #include "src/zone-containers.h" |
10 | 10 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 InstructionOperand* current_hint_operand_; | 310 InstructionOperand* current_hint_operand_; |
311 InstructionOperand* spill_operand_; | 311 InstructionOperand* spill_operand_; |
312 int spill_start_index_; | 312 int spill_start_index_; |
313 | 313 |
314 friend class RegisterAllocator; // Assigns to kind_. | 314 friend class RegisterAllocator; // Assigns to kind_. |
315 | 315 |
316 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 316 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
317 }; | 317 }; |
318 | 318 |
319 | 319 |
320 class RegisterAllocator BASE_EMBEDDED { | 320 class RegisterAllocator FINAL { |
321 public: | 321 public: |
322 class Config { | 322 class Config { |
323 public: | 323 public: |
324 int num_general_registers_; | 324 int num_general_registers_; |
325 int num_double_registers_; | 325 int num_double_registers_; |
326 int num_aliased_double_registers_; | 326 int num_aliased_double_registers_; |
327 const char* (*GeneralRegisterName)(int allocation_index); | 327 const char* (*GeneralRegisterName)(int allocation_index); |
328 const char* (*DoubleRegisterName)(int allocation_index); | 328 const char* (*DoubleRegisterName)(int allocation_index); |
329 }; | 329 }; |
330 | 330 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 #endif | 540 #endif |
541 | 541 |
542 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); | 542 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); |
543 }; | 543 }; |
544 | 544 |
545 } | 545 } |
546 } | 546 } |
547 } // namespace v8::internal::compiler | 547 } // namespace v8::internal::compiler |
548 | 548 |
549 #endif // V8_REGISTER_ALLOCATOR_H_ | 549 #endif // V8_REGISTER_ALLOCATOR_H_ |
OLD | NEW |