| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_FLOW_GRAPH_ALLOCATOR_H_ | 5 #ifndef VM_FLOW_GRAPH_ALLOCATOR_H_ |
| 6 #define VM_FLOW_GRAPH_ALLOCATOR_H_ | 6 #define VM_FLOW_GRAPH_ALLOCATOR_H_ |
| 7 | 7 |
| 8 #include "vm/flow_graph.h" | 8 #include "vm/flow_graph.h" |
| 9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
| 10 #include "vm/intermediate_language.h" | 10 #include "vm/intermediate_language.h" |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 static LiveRange* MakeTemp(intptr_t pos, Location* location_slot); | 558 static LiveRange* MakeTemp(intptr_t pos, Location* location_slot); |
| 559 | 559 |
| 560 intptr_t vreg() const { return vreg_; } | 560 intptr_t vreg() const { return vreg_; } |
| 561 Representation representation() const { return representation_; } | 561 Representation representation() const { return representation_; } |
| 562 LiveRange* next_sibling() const { return next_sibling_; } | 562 LiveRange* next_sibling() const { return next_sibling_; } |
| 563 UsePosition* first_use() const { return uses_; } | 563 UsePosition* first_use() const { return uses_; } |
| 564 void set_first_use(UsePosition* use) { uses_ = use; } | 564 void set_first_use(UsePosition* use) { uses_ = use; } |
| 565 UseInterval* first_use_interval() const { return first_use_interval_; } | 565 UseInterval* first_use_interval() const { return first_use_interval_; } |
| 566 UseInterval* last_use_interval() const { return last_use_interval_; } | 566 UseInterval* last_use_interval() const { return last_use_interval_; } |
| 567 Location assigned_location() const { return assigned_location_; } | 567 Location assigned_location() const { return assigned_location_; } |
| 568 Location* assigned_location_slot() { return &assigned_location_; } |
| 568 intptr_t Start() const { return first_use_interval()->start(); } | 569 intptr_t Start() const { return first_use_interval()->start(); } |
| 569 intptr_t End() const { return last_use_interval()->end(); } | 570 intptr_t End() const { return last_use_interval()->end(); } |
| 570 | 571 |
| 571 SafepointPosition* first_safepoint() const { return first_safepoint_; } | 572 SafepointPosition* first_safepoint() const { return first_safepoint_; } |
| 572 | 573 |
| 573 AllocationFinger* finger() { return &finger_; } | 574 AllocationFinger* finger() { return &finger_; } |
| 574 | 575 |
| 575 void set_assigned_location(Location location) { | 576 void set_assigned_location(Location location) { |
| 576 assigned_location_ = location; | 577 assigned_location_ = location; |
| 577 } | 578 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 | 670 |
| 670 AllocationFinger finger_; | 671 AllocationFinger finger_; |
| 671 | 672 |
| 672 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 673 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
| 673 }; | 674 }; |
| 674 | 675 |
| 675 | 676 |
| 676 } // namespace dart | 677 } // namespace dart |
| 677 | 678 |
| 678 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ | 679 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
| OLD | NEW |