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 RUNTIME_VM_FLOW_GRAPH_H_ | 5 #ifndef RUNTIME_VM_FLOW_GRAPH_H_ |
6 #define RUNTIME_VM_FLOW_GRAPH_H_ | 6 #define RUNTIME_VM_FLOW_GRAPH_H_ |
7 | 7 |
8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
10 #include "vm/hash_map.h" | 10 #include "vm/hash_map.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 BlockIterator postorder_iterator() const { | 126 BlockIterator postorder_iterator() const { |
127 return BlockIterator(postorder()); | 127 return BlockIterator(postorder()); |
128 } | 128 } |
129 | 129 |
130 void EnsureSSATempIndex(Definition* defn, Definition* replacement); | 130 void EnsureSSATempIndex(Definition* defn, Definition* replacement); |
131 | 131 |
132 void ReplaceCurrentInstruction(ForwardInstructionIterator* iterator, | 132 void ReplaceCurrentInstruction(ForwardInstructionIterator* iterator, |
133 Instruction* current, | 133 Instruction* current, |
134 Instruction* replacement); | 134 Instruction* replacement); |
135 | 135 |
| 136 Instruction* CreateCheckClass(Definition* to_check, |
| 137 const Cids& cids, |
| 138 intptr_t deopt_id, |
| 139 TokenPosition token_pos); |
| 140 |
136 intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; } | 141 intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; } |
137 void set_current_ssa_temp_index(intptr_t index) { | 142 void set_current_ssa_temp_index(intptr_t index) { |
138 current_ssa_temp_index_ = index; | 143 current_ssa_temp_index_ = index; |
139 } | 144 } |
140 | 145 |
141 intptr_t max_virtual_register_number() const { | 146 intptr_t max_virtual_register_number() const { |
142 return current_ssa_temp_index(); | 147 return current_ssa_temp_index(); |
143 } | 148 } |
144 | 149 |
145 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call, | 150 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call, |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 561 |
557 private: | 562 private: |
558 GrowableArray<Definition*> defs_; | 563 GrowableArray<Definition*> defs_; |
559 BitVector* contains_vector_; | 564 BitVector* contains_vector_; |
560 }; | 565 }; |
561 | 566 |
562 | 567 |
563 } // namespace dart | 568 } // namespace dart |
564 | 569 |
565 #endif // RUNTIME_VM_FLOW_GRAPH_H_ | 570 #endif // RUNTIME_VM_FLOW_GRAPH_H_ |
OLD | NEW |