| 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_H_ | 5 #ifndef VM_FLOW_GRAPH_H_ |
| 6 #define VM_FLOW_GRAPH_H_ | 6 #define VM_FLOW_GRAPH_H_ |
| 7 | 7 |
| 8 #include "vm/growable_array.h" | 8 #include "vm/growable_array.h" |
| 9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
| 10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 } | 105 } |
| 106 | 106 |
| 107 ConstantInstr* constant_null() const { | 107 ConstantInstr* constant_null() const { |
| 108 return constant_null_; | 108 return constant_null_; |
| 109 } | 109 } |
| 110 | 110 |
| 111 intptr_t alloc_ssa_temp_index() { return current_ssa_temp_index_++; } | 111 intptr_t alloc_ssa_temp_index() { return current_ssa_temp_index_++; } |
| 112 | 112 |
| 113 intptr_t InstructionCount() const; | 113 intptr_t InstructionCount() const; |
| 114 | 114 |
| 115 ConstantInstr* AddConstantToInitialDefinitions(const Object& object); | 115 ConstantInstr* GetConstant(const Object& object); |
| 116 void AddToInitialDefinitions(Definition* defn); | 116 void AddToInitialDefinitions(Definition* defn); |
| 117 | 117 |
| 118 void InsertBefore(Instruction* next, | 118 void InsertBefore(Instruction* next, |
| 119 Instruction* instr, | 119 Instruction* instr, |
| 120 Environment* env, | 120 Environment* env, |
| 121 Definition::UseKind use_kind); | 121 Definition::UseKind use_kind); |
| 122 void InsertAfter(Instruction* prev, | 122 void InsertAfter(Instruction* prev, |
| 123 Instruction* instr, | 123 Instruction* instr, |
| 124 Environment* env, | 124 Environment* env, |
| 125 Definition::UseKind use_kind); | 125 Definition::UseKind use_kind); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // Per block sets of available blocks. Block A is available at the block B if | 303 // Per block sets of available blocks. Block A is available at the block B if |
| 304 // and only if A dominates B and all paths from A to B are free of side | 304 // and only if A dominates B and all paths from A to B are free of side |
| 305 // effects. | 305 // effects. |
| 306 GrowableArray<BitVector*> available_at_; | 306 GrowableArray<BitVector*> available_at_; |
| 307 }; | 307 }; |
| 308 | 308 |
| 309 | 309 |
| 310 } // namespace dart | 310 } // namespace dart |
| 311 | 311 |
| 312 #endif // VM_FLOW_GRAPH_H_ | 312 #endif // VM_FLOW_GRAPH_H_ |
| OLD | NEW |