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

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

Issue 10446019: - Port AssertBool and AssertAssigneable to new location template. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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') | runtime/vm/flow_graph_builder.cc » ('J')
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 BindInstr* BuildObjectAllocation(ConstructorCallNode* node); 175 BindInstr* BuildObjectAllocation(ConstructorCallNode* node);
176 void BuildConstructorCall(ConstructorCallNode* node, Value* alloc_value); 176 void BuildConstructorCall(ConstructorCallNode* node, Value* alloc_value);
177 177
178 void BuildStoreContext(const LocalVariable& variable); 178 void BuildStoreContext(const LocalVariable& variable);
179 void BuildLoadContext(const LocalVariable& variable); 179 void BuildLoadContext(const LocalVariable& variable);
180 180
181 void BuildThrowNode(ThrowNode* node); 181 void BuildThrowNode(ThrowNode* node);
182 182
183 ClosureCallComp* BuildClosureCall(ClosureCallNode* node); 183 ClosureCallComp* BuildClosureCall(ClosureCallNode* node);
184 184
185 Value* BuildNullValue();
186
185 private: 187 private:
186 // Specify a computation as the final result. Adds a Do instruction to 188 // Specify a computation as the final result. Adds a Do instruction to
187 // the graph, but normally overridden in subclasses. 189 // the graph, but normally overridden in subclasses.
188 virtual void ReturnComputation(Computation* computation) { 190 virtual void ReturnComputation(Computation* computation) {
189 AddInstruction(new DoInstr(computation)); 191 AddInstruction(new DoInstr(computation));
190 } 192 }
191 193
192 // Shared global state. 194 // Shared global state.
193 FlowGraphBuilder* owner_; 195 FlowGraphBuilder* owner_;
194 196
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // Output parameters. 299 // Output parameters.
298 TargetEntryInstr** true_successor_address_; 300 TargetEntryInstr** true_successor_address_;
299 TargetEntryInstr** false_successor_address_; 301 TargetEntryInstr** false_successor_address_;
300 302
301 intptr_t condition_token_index_; 303 intptr_t condition_token_index_;
302 }; 304 };
303 305
304 } // namespace dart 306 } // namespace dart
305 307
306 #endif // VM_FLOW_GRAPH_BUILDER_H_ 308 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698