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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 BitVector* interference_set); | 106 BitVector* interference_set); |
107 void ProcessEnvironmentUses(BlockEntryInstr* block, Instruction* current); | 107 void ProcessEnvironmentUses(BlockEntryInstr* block, Instruction* current); |
108 void ProcessMaterializationUses(BlockEntryInstr* block, | 108 void ProcessMaterializationUses(BlockEntryInstr* block, |
109 const intptr_t block_start_pos, | 109 const intptr_t block_start_pos, |
110 const intptr_t use_pos, | 110 const intptr_t use_pos, |
111 MaterializeObjectInstr* mat); | 111 MaterializeObjectInstr* mat); |
112 void ProcessOneInput(BlockEntryInstr* block, | 112 void ProcessOneInput(BlockEntryInstr* block, |
113 intptr_t pos, | 113 intptr_t pos, |
114 Location* in_ref, | 114 Location* in_ref, |
115 Value* input, | 115 Value* input, |
116 intptr_t vreg); | 116 intptr_t vreg, |
| 117 RegisterSet* live_registers); |
117 void ProcessOneOutput(BlockEntryInstr* block, | 118 void ProcessOneOutput(BlockEntryInstr* block, |
118 Instruction* current, | 119 Instruction* current, |
119 intptr_t pos, | 120 intptr_t pos, |
120 Location* out, | 121 Location* out, |
121 Definition* def, | 122 Definition* def, |
122 intptr_t vreg, | 123 intptr_t vreg, |
123 bool output_same_as_first_input, | 124 bool output_same_as_first_input, |
124 Location* in_ref, | 125 Location* in_ref, |
125 Definition* input, | 126 Definition* input, |
126 intptr_t input_vreg, | 127 intptr_t input_vreg, |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 void UpdateAfterSplit(intptr_t first_use_after_split_pos); | 491 void UpdateAfterSplit(intptr_t first_use_after_split_pos); |
491 bool Advance(intptr_t start); | 492 bool Advance(intptr_t start); |
492 | 493 |
493 UseInterval* first_pending_use_interval() const { | 494 UseInterval* first_pending_use_interval() const { |
494 return first_pending_use_interval_; | 495 return first_pending_use_interval_; |
495 } | 496 } |
496 | 497 |
497 Location FirstHint(); | 498 Location FirstHint(); |
498 UsePosition* FirstRegisterUse(intptr_t after_pos); | 499 UsePosition* FirstRegisterUse(intptr_t after_pos); |
499 UsePosition* FirstRegisterBeneficialUse(intptr_t after_pos); | 500 UsePosition* FirstRegisterBeneficialUse(intptr_t after_pos); |
| 501 UsePosition* FirstInterferingUse(intptr_t after_pos); |
500 | 502 |
501 private: | 503 private: |
502 UseInterval* first_pending_use_interval_; | 504 UseInterval* first_pending_use_interval_; |
503 UsePosition* first_register_use_; | 505 UsePosition* first_register_use_; |
504 UsePosition* first_register_beneficial_use_; | 506 UsePosition* first_register_beneficial_use_; |
505 UsePosition* first_hinted_use_; | 507 UsePosition* first_hinted_use_; |
506 | 508 |
507 DISALLOW_COPY_AND_ASSIGN(AllocationFinger); | 509 DISALLOW_COPY_AND_ASSIGN(AllocationFinger); |
508 }; | 510 }; |
509 | 511 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 | 664 |
663 AllocationFinger finger_; | 665 AllocationFinger finger_; |
664 | 666 |
665 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 667 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
666 }; | 668 }; |
667 | 669 |
668 | 670 |
669 } // namespace dart | 671 } // namespace dart |
670 | 672 |
671 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ | 673 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
OLD | NEW |