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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 void ResolvePhis(const InstructionBlock* block); | 467 void ResolvePhis(const InstructionBlock* block); |
468 | 468 |
469 // Helper methods for building intervals. | 469 // Helper methods for building intervals. |
470 InstructionOperand* AllocateFixed(UnallocatedOperand* operand, int pos, | 470 InstructionOperand* AllocateFixed(UnallocatedOperand* operand, int pos, |
471 bool is_tagged); | 471 bool is_tagged); |
472 LiveRange* LiveRangeFor(InstructionOperand* operand); | 472 LiveRange* LiveRangeFor(InstructionOperand* operand); |
473 void Define(LifetimePosition position, InstructionOperand* operand, | 473 void Define(LifetimePosition position, InstructionOperand* operand, |
474 InstructionOperand* hint); | 474 InstructionOperand* hint); |
475 void Use(LifetimePosition block_start, LifetimePosition position, | 475 void Use(LifetimePosition block_start, LifetimePosition position, |
476 InstructionOperand* operand, InstructionOperand* hint); | 476 InstructionOperand* operand, InstructionOperand* hint); |
477 void AddConstraintsGapMove(int index, InstructionOperand* from, | 477 void AddGapMove(int index, GapInstruction::InnerPosition position, |
478 InstructionOperand* to); | 478 InstructionOperand* from, InstructionOperand* to); |
479 | 479 |
480 // Helper methods for updating the life range lists. | 480 // Helper methods for updating the life range lists. |
481 void AddToActive(LiveRange* range); | 481 void AddToActive(LiveRange* range); |
482 void AddToInactive(LiveRange* range); | 482 void AddToInactive(LiveRange* range); |
483 void AddToUnhandledSorted(LiveRange* range); | 483 void AddToUnhandledSorted(LiveRange* range); |
484 void AddToUnhandledUnsorted(LiveRange* range); | 484 void AddToUnhandledUnsorted(LiveRange* range); |
485 void SortUnhandled(); | 485 void SortUnhandled(); |
486 bool UnhandledIsSorted(); | 486 bool UnhandledIsSorted(); |
487 void ActiveToHandled(LiveRange* range); | 487 void ActiveToHandled(LiveRange* range); |
488 void ActiveToInactive(LiveRange* range); | 488 void ActiveToInactive(LiveRange* range); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 #endif | 633 #endif |
634 | 634 |
635 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); | 635 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); |
636 }; | 636 }; |
637 | 637 |
638 } // namespace compiler | 638 } // namespace compiler |
639 } // namespace internal | 639 } // namespace internal |
640 } // namespace v8 | 640 } // namespace v8 |
641 | 641 |
642 #endif // V8_REGISTER_ALLOCATOR_H_ | 642 #endif // V8_REGISTER_ALLOCATOR_H_ |
OLD | NEW |