| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // Perform a type check on the given value and return it. | 152 // Perform a type check on the given value and return it. |
| 153 Value* BuildAssignableValue(intptr_t token_index, | 153 Value* BuildAssignableValue(intptr_t token_index, |
| 154 Value* value, | 154 Value* value, |
| 155 const AbstractType& dst_type, | 155 const AbstractType& dst_type, |
| 156 const String& dst_name); | 156 const String& dst_name); |
| 157 | 157 |
| 158 void BuildStoreIndexedValues(StoreIndexedNode* node, | 158 void BuildStoreIndexedValues(StoreIndexedNode* node, |
| 159 Value** array, | 159 Value** array, |
| 160 Value** index, | 160 Value** index, |
| 161 Value** value); | 161 Value** value); |
| 162 void BuildInstanceSetterValues(InstanceSetterNode* node, |
| 163 Value** receiver, |
| 164 Value** value); |
| 162 | 165 |
| 163 virtual void BuildInstanceOf(ComparisonNode* node); | 166 virtual void BuildInstanceOf(ComparisonNode* node); |
| 164 | 167 |
| 165 bool MustSaveRestoreContext(SequenceNode* node) const; | 168 bool MustSaveRestoreContext(SequenceNode* node) const; |
| 166 | 169 |
| 167 // Moves parent context into the context register. | 170 // Moves parent context into the context register. |
| 168 void UnchainContext(); | 171 void UnchainContext(); |
| 169 | 172 |
| 170 void CloseFragment() { exit_ = NULL; } | 173 void CloseFragment() { exit_ = NULL; } |
| 171 intptr_t AllocateTempIndex() { return temp_index_++; } | 174 intptr_t AllocateTempIndex() { return temp_index_++; } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 : EffectGraphVisitor(owner, temp_index), value_(NULL) { } | 222 : EffectGraphVisitor(owner, temp_index), value_(NULL) { } |
| 220 | 223 |
| 221 // Visit functions overridden by this class. | 224 // Visit functions overridden by this class. |
| 222 virtual void VisitLiteralNode(LiteralNode* node); | 225 virtual void VisitLiteralNode(LiteralNode* node); |
| 223 virtual void VisitAssignableNode(AssignableNode* node); | 226 virtual void VisitAssignableNode(AssignableNode* node); |
| 224 virtual void VisitConstructorCallNode(ConstructorCallNode* node); | 227 virtual void VisitConstructorCallNode(ConstructorCallNode* node); |
| 225 virtual void VisitBinaryOpNode(BinaryOpNode* node); | 228 virtual void VisitBinaryOpNode(BinaryOpNode* node); |
| 226 virtual void VisitConditionalExprNode(ConditionalExprNode* node); | 229 virtual void VisitConditionalExprNode(ConditionalExprNode* node); |
| 227 virtual void VisitLoadLocalNode(LoadLocalNode* node); | 230 virtual void VisitLoadLocalNode(LoadLocalNode* node); |
| 228 virtual void VisitStoreIndexedNode(StoreIndexedNode* node); | 231 virtual void VisitStoreIndexedNode(StoreIndexedNode* node); |
| 232 virtual void VisitStoreInstanceFieldNode(StoreInstanceFieldNode* node); |
| 233 virtual void VisitInstanceSetterNode(InstanceSetterNode* node); |
| 229 virtual void VisitThrowNode(ThrowNode* node); | 234 virtual void VisitThrowNode(ThrowNode* node); |
| 230 virtual void VisitClosureCallNode(ClosureCallNode* node); | 235 virtual void VisitClosureCallNode(ClosureCallNode* node); |
| 231 | 236 |
| 232 Value* value() const { return value_; } | 237 Value* value() const { return value_; } |
| 233 | 238 |
| 234 protected: | 239 protected: |
| 235 // Output parameters. | 240 // Output parameters. |
| 236 Value* value_; | 241 Value* value_; |
| 237 | 242 |
| 238 private: | 243 private: |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // Output parameters. | 310 // Output parameters. |
| 306 TargetEntryInstr** true_successor_address_; | 311 TargetEntryInstr** true_successor_address_; |
| 307 TargetEntryInstr** false_successor_address_; | 312 TargetEntryInstr** false_successor_address_; |
| 308 | 313 |
| 309 intptr_t condition_token_index_; | 314 intptr_t condition_token_index_; |
| 310 }; | 315 }; |
| 311 | 316 |
| 312 } // namespace dart | 317 } // namespace dart |
| 313 | 318 |
| 314 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 319 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |