Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Side by Side Diff: runtime/vm/flow_graph_builder.h

Issue 9634009: Implement increment of locals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // in the EffectGraphVisitor), a next temporary index, and an intermediate 142 // in the EffectGraphVisitor), a next temporary index, and an intermediate
143 // language Value. 143 // language Value.
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 VisitLoadLocalNode(LoadLocalNode* node); 151 virtual void VisitLoadLocalNode(LoadLocalNode* node);
152 virtual void VisitIncrOpLocalNode(IncrOpLocalNode* node);
152 virtual void VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node); 153 virtual void VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node);
153 virtual void VisitIncrOpIndexedNode(IncrOpIndexedNode* node); 154 virtual void VisitIncrOpIndexedNode(IncrOpIndexedNode* node);
154 155
155 Value* value() const { return value_; } 156 Value* value() const { return value_; }
156 157
157 protected: 158 protected:
158 // Output parameters. 159 // Output parameters.
159 Value* value_; 160 Value* value_;
160 161
161 private: 162 private:
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 } 250 }
250 251
251 // Output parameters. 252 // Output parameters.
252 BlockEntryInstr** true_successor_address_; 253 BlockEntryInstr** true_successor_address_;
253 BlockEntryInstr** false_successor_address_; 254 BlockEntryInstr** false_successor_address_;
254 }; 255 };
255 256
256 } // namespace dart 257 } // namespace dart
257 258
258 #endif // VM_FLOW_GRAPH_BUILDER_H_ 259 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698