| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 class ValueGraphVisitor : public EffectGraphVisitor { | 144 class ValueGraphVisitor : public EffectGraphVisitor { |
| 145 public: | 145 public: |
| 146 ValueGraphVisitor(FlowGraphBuilder* owner, intptr_t temp_index) | 146 ValueGraphVisitor(FlowGraphBuilder* owner, intptr_t temp_index) |
| 147 : EffectGraphVisitor(owner, temp_index), value_(NULL) { } | 147 : EffectGraphVisitor(owner, temp_index), value_(NULL) { } |
| 148 | 148 |
| 149 // Visit functions overridden by this class. | 149 // Visit functions overridden by this class. |
| 150 virtual void VisitLiteralNode(LiteralNode* node); | 150 virtual void VisitLiteralNode(LiteralNode* node); |
| 151 virtual void VisitIncrOpLocalNode(IncrOpLocalNode* node); | 151 virtual void VisitIncrOpLocalNode(IncrOpLocalNode* node); |
| 152 virtual void VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node); | 152 virtual void VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node); |
| 153 virtual void VisitIncrOpIndexedNode(IncrOpIndexedNode* node); | 153 virtual void VisitIncrOpIndexedNode(IncrOpIndexedNode* node); |
| 154 virtual void VisitBinaryOpNode(BinaryOpNode* node); |
| 154 virtual void VisitConditionalExprNode(ConditionalExprNode* node); | 155 virtual void VisitConditionalExprNode(ConditionalExprNode* node); |
| 155 virtual void VisitLoadLocalNode(LoadLocalNode* node); | 156 virtual void VisitLoadLocalNode(LoadLocalNode* node); |
| 156 | 157 |
| 157 Value* value() const { return value_; } | 158 Value* value() const { return value_; } |
| 158 | 159 |
| 159 protected: | 160 protected: |
| 160 // Output parameters. | 161 // Output parameters. |
| 161 Value* value_; | 162 Value* value_; |
| 162 | 163 |
| 163 private: | 164 private: |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 252 } |
| 252 | 253 |
| 253 // Output parameters. | 254 // Output parameters. |
| 254 BlockEntryInstr** true_successor_address_; | 255 BlockEntryInstr** true_successor_address_; |
| 255 BlockEntryInstr** false_successor_address_; | 256 BlockEntryInstr** false_successor_address_; |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 } // namespace dart | 259 } // namespace dart |
| 259 | 260 |
| 260 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 261 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |