| 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/zone-containers.h" | 10 #include "src/zone-containers.h" |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 | 623 |
| 624 bool ExistsUseWithoutDefinition(); | 624 bool ExistsUseWithoutDefinition(); |
| 625 | 625 |
| 626 void MarkAllocated(RegisterKind kind, int index); | 626 void MarkAllocated(RegisterKind kind, int index); |
| 627 | 627 |
| 628 PhiMapValue* InitializePhiMap(const InstructionBlock* block, | 628 PhiMapValue* InitializePhiMap(const InstructionBlock* block, |
| 629 PhiInstruction* phi); | 629 PhiInstruction* phi); |
| 630 PhiMapValue* GetPhiMapValueFor(int virtual_register); | 630 PhiMapValue* GetPhiMapValueFor(int virtual_register); |
| 631 bool IsBlockBoundary(LifetimePosition pos) const; | 631 bool IsBlockBoundary(LifetimePosition pos) const; |
| 632 | 632 |
| 633 void Print(const InstructionSequence* instructionSequence); |
| 634 void Print(const Instruction* instruction); |
| 635 void Print(const LiveRange* range, bool with_children = false); |
| 636 void Print(const InstructionOperand& op); |
| 637 void Print(const MoveOperands* move); |
| 638 |
| 633 private: | 639 private: |
| 634 Zone* const allocation_zone_; | 640 Zone* const allocation_zone_; |
| 635 Frame* const frame_; | 641 Frame* const frame_; |
| 636 InstructionSequence* const code_; | 642 InstructionSequence* const code_; |
| 637 const char* const debug_name_; | 643 const char* const debug_name_; |
| 638 const RegisterConfiguration* const config_; | 644 const RegisterConfiguration* const config_; |
| 639 PhiMap phi_map_; | 645 PhiMap phi_map_; |
| 640 ZoneVector<BitVector*> live_in_sets_; | 646 ZoneVector<BitVector*> live_in_sets_; |
| 641 ZoneVector<LiveRange*> live_ranges_; | 647 ZoneVector<LiveRange*> live_ranges_; |
| 642 ZoneVector<LiveRange*> fixed_live_ranges_; | 648 ZoneVector<LiveRange*> fixed_live_ranges_; |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 RegisterAllocationData* const data_; | 946 RegisterAllocationData* const data_; |
| 941 | 947 |
| 942 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); | 948 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); |
| 943 }; | 949 }; |
| 944 | 950 |
| 945 } // namespace compiler | 951 } // namespace compiler |
| 946 } // namespace internal | 952 } // namespace internal |
| 947 } // namespace v8 | 953 } // namespace v8 |
| 948 | 954 |
| 949 #endif // V8_REGISTER_ALLOCATOR_H_ | 955 #endif // V8_REGISTER_ALLOCATOR_H_ |
| OLD | NEW |