| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // in the EffectGraphVisitor), a next temporary index, and an intermediate | 214 // in the EffectGraphVisitor), a next temporary index, and an intermediate |
| 215 // language Value. | 215 // language Value. |
| 216 class ValueGraphVisitor : public EffectGraphVisitor { | 216 class ValueGraphVisitor : public EffectGraphVisitor { |
| 217 public: | 217 public: |
| 218 ValueGraphVisitor(FlowGraphBuilder* owner, intptr_t temp_index) | 218 ValueGraphVisitor(FlowGraphBuilder* owner, intptr_t temp_index) |
| 219 : EffectGraphVisitor(owner, temp_index), value_(NULL) { } | 219 : EffectGraphVisitor(owner, temp_index), value_(NULL) { } |
| 220 | 220 |
| 221 // Visit functions overridden by this class. | 221 // Visit functions overridden by this class. |
| 222 virtual void VisitLiteralNode(LiteralNode* node); | 222 virtual void VisitLiteralNode(LiteralNode* node); |
| 223 virtual void VisitAssignableNode(AssignableNode* node); | 223 virtual void VisitAssignableNode(AssignableNode* node); |
| 224 virtual void VisitIncrOpLocalNode(IncrOpLocalNode* node); | |
| 225 virtual void VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node); | 224 virtual void VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node); |
| 226 virtual void VisitIncrOpIndexedNode(IncrOpIndexedNode* node); | 225 virtual void VisitIncrOpIndexedNode(IncrOpIndexedNode* node); |
| 227 virtual void VisitConstructorCallNode(ConstructorCallNode* node); | 226 virtual void VisitConstructorCallNode(ConstructorCallNode* node); |
| 228 virtual void VisitBinaryOpNode(BinaryOpNode* node); | 227 virtual void VisitBinaryOpNode(BinaryOpNode* node); |
| 229 virtual void VisitConditionalExprNode(ConditionalExprNode* node); | 228 virtual void VisitConditionalExprNode(ConditionalExprNode* node); |
| 230 virtual void VisitLoadLocalNode(LoadLocalNode* node); | 229 virtual void VisitLoadLocalNode(LoadLocalNode* node); |
| 231 virtual void VisitThrowNode(ThrowNode* node); | 230 virtual void VisitThrowNode(ThrowNode* node); |
| 232 | 231 |
| 233 Value* value() const { return value_; } | 232 Value* value() const { return value_; } |
| 234 | 233 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 // Output parameters. | 305 // Output parameters. |
| 307 TargetEntryInstr** true_successor_address_; | 306 TargetEntryInstr** true_successor_address_; |
| 308 TargetEntryInstr** false_successor_address_; | 307 TargetEntryInstr** false_successor_address_; |
| 309 | 308 |
| 310 intptr_t condition_token_index_; | 309 intptr_t condition_token_index_; |
| 311 }; | 310 }; |
| 312 | 311 |
| 313 } // namespace dart | 312 } // namespace dart |
| 314 | 313 |
| 315 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 314 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |