| 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" |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 | 565 |
| 566 #if DEBUG | 566 #if DEBUG |
| 567 int debug_virt_reg() const; | 567 int debug_virt_reg() const; |
| 568 #endif | 568 #endif |
| 569 | 569 |
| 570 int GetNextChildId() { | 570 int GetNextChildId() { |
| 571 return IsSplinter() ? splintered_from()->GetNextChildId() | 571 return IsSplinter() ? splintered_from()->GetNextChildId() |
| 572 : ++last_child_id_; | 572 : ++last_child_id_; |
| 573 } | 573 } |
| 574 | 574 |
| 575 int GetChildCount() const { return last_child_id_ + 1; } |
| 576 |
| 575 bool IsSpilledOnlyInDeferredBlocks() const { | 577 bool IsSpilledOnlyInDeferredBlocks() const { |
| 576 return spilled_in_deferred_blocks_; | 578 return spilled_in_deferred_blocks_; |
| 577 } | 579 } |
| 578 | 580 |
| 579 struct SpillMoveInsertionList; | 581 struct SpillMoveInsertionList; |
| 580 | 582 |
| 581 SpillMoveInsertionList* spill_move_insertion_locations() const { | 583 SpillMoveInsertionList* spill_move_insertion_locations() const { |
| 582 return spill_move_insertion_locations_; | 584 return spill_move_insertion_locations_; |
| 583 } | 585 } |
| 584 void set_last_child(LiveRange* range) { last_child_ = range; } | 586 void set_last_child(LiveRange* range) { last_child_ = range; } |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 RegisterAllocationData* const data_; | 1123 RegisterAllocationData* const data_; |
| 1122 | 1124 |
| 1123 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); | 1125 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); |
| 1124 }; | 1126 }; |
| 1125 | 1127 |
| 1126 } // namespace compiler | 1128 } // namespace compiler |
| 1127 } // namespace internal | 1129 } // namespace internal |
| 1128 } // namespace v8 | 1130 } // namespace v8 |
| 1129 | 1131 |
| 1130 #endif // V8_REGISTER_ALLOCATOR_H_ | 1132 #endif // V8_REGISTER_ALLOCATOR_H_ |
| OLD | NEW |