| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_BUILDER_H_ | 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ |
| 6 #define VM_FLOW_GRAPH_BUILDER_H_ | 6 #define VM_FLOW_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // preparation of a constructor call. | 149 // preparation of a constructor call. |
| 150 // May be called only if allocating an object of a parameterized class. | 150 // May be called only if allocating an object of a parameterized class. |
| 151 void BuildConstructorTypeArguments(ConstructorCallNode* node, | 151 void BuildConstructorTypeArguments(ConstructorCallNode* node, |
| 152 intptr_t start_index, | 152 intptr_t start_index, |
| 153 ZoneGrowableArray<Value*>* args); | 153 ZoneGrowableArray<Value*>* args); |
| 154 | 154 |
| 155 // Returns the value of the type arguments of the instantiator. | 155 // Returns the value of the type arguments of the instantiator. |
| 156 Value* BuildInstantiatorTypeArguments(intptr_t token_index, | 156 Value* BuildInstantiatorTypeArguments(intptr_t token_index, |
| 157 intptr_t start_index); | 157 intptr_t start_index); |
| 158 | 158 |
| 159 void BuildInstanceOf(ComparisonNode* node); |
| 160 |
| 159 bool MustSaveRestoreContext(SequenceNode* node) const; | 161 bool MustSaveRestoreContext(SequenceNode* node) const; |
| 160 | 162 |
| 161 // Moves parent context into the context register. | 163 // Moves parent context into the context register. |
| 162 void UnchainContext(); | 164 void UnchainContext(); |
| 163 | 165 |
| 164 void CloseFragment() { exit_ = NULL; } | 166 void CloseFragment() { exit_ = NULL; } |
| 165 intptr_t AllocateTempIndex() { return temp_index_++; } | 167 intptr_t AllocateTempIndex() { return temp_index_++; } |
| 166 | 168 |
| 167 virtual void CompiletimeStringInterpolation(const Function& interpol_func, | 169 virtual void CompiletimeStringInterpolation(const Function& interpol_func, |
| 168 const Array& literals); | 170 const Array& literals); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 } | 307 } |
| 306 | 308 |
| 307 // Output parameters. | 309 // Output parameters. |
| 308 TargetEntryInstr** true_successor_address_; | 310 TargetEntryInstr** true_successor_address_; |
| 309 TargetEntryInstr** false_successor_address_; | 311 TargetEntryInstr** false_successor_address_; |
| 310 }; | 312 }; |
| 311 | 313 |
| 312 } // namespace dart | 314 } // namespace dart |
| 313 | 315 |
| 314 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 316 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |