| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_LIVE_RANGE_SEPARATOR_H_ | 5 #ifndef V8_LIVE_RANGE_SEPARATOR_H_ |
| 6 #define V8_LIVE_RANGE_SEPARATOR_H_ | 6 #define V8_LIVE_RANGE_SEPARATOR_H_ |
| 7 | 7 |
| 8 #include "src/zone/zone.h" | 8 #include "src/zone/zone.h" |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 private: | 27 private: |
| 28 RegisterAllocationData* data() const { return data_; } | 28 RegisterAllocationData* data() const { return data_; } |
| 29 Zone* zone() const { return zone_; } | 29 Zone* zone() const { return zone_; } |
| 30 | 30 |
| 31 RegisterAllocationData* const data_; | 31 RegisterAllocationData* const data_; |
| 32 Zone* const zone_; | 32 Zone* const zone_; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(LiveRangeSeparator); | 34 DISALLOW_COPY_AND_ASSIGN(LiveRangeSeparator); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 | |
| 38 class LiveRangeMerger final : public ZoneObject { | 37 class LiveRangeMerger final : public ZoneObject { |
| 39 public: | 38 public: |
| 40 LiveRangeMerger(RegisterAllocationData* data, Zone* zone) | 39 LiveRangeMerger(RegisterAllocationData* data, Zone* zone) |
| 41 : data_(data), zone_(zone) {} | 40 : data_(data), zone_(zone) {} |
| 42 | 41 |
| 43 void Merge(); | 42 void Merge(); |
| 44 | 43 |
| 45 private: | 44 private: |
| 46 RegisterAllocationData* data() const { return data_; } | 45 RegisterAllocationData* data() const { return data_; } |
| 47 Zone* zone() const { return zone_; } | 46 Zone* zone() const { return zone_; } |
| 48 | 47 |
| 49 // Mark ranges spilled in deferred blocks, that also cover non-deferred code. | 48 // Mark ranges spilled in deferred blocks, that also cover non-deferred code. |
| 50 // We do nothing special for ranges fully contained in deferred blocks, | 49 // We do nothing special for ranges fully contained in deferred blocks, |
| 51 // because they would "spill in deferred blocks" anyway. | 50 // because they would "spill in deferred blocks" anyway. |
| 52 void MarkRangesSpilledInDeferredBlocks(); | 51 void MarkRangesSpilledInDeferredBlocks(); |
| 53 | 52 |
| 54 RegisterAllocationData* const data_; | 53 RegisterAllocationData* const data_; |
| 55 Zone* const zone_; | 54 Zone* const zone_; |
| 56 | 55 |
| 57 DISALLOW_COPY_AND_ASSIGN(LiveRangeMerger); | 56 DISALLOW_COPY_AND_ASSIGN(LiveRangeMerger); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 | 59 |
| 61 } // namespace compiler | 60 } // namespace compiler |
| 62 } // namespace internal | 61 } // namespace internal |
| 63 } // namespace v8 | 62 } // namespace v8 |
| 64 #endif // V8_LIVE_RANGE_SEPARATOR_H_ | 63 #endif // V8_LIVE_RANGE_SEPARATOR_H_ |
| OLD | NEW |