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

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

Issue 10389041: Adapt compile time constants and integrate with Kevin's CL 10302007 (Remove temporaries using expli… (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
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 Value* value() const { return value_; } 212 Value* value() const { return value_; }
213 213
214 protected: 214 protected:
215 // Output parameters. 215 // Output parameters.
216 Value* value_; 216 Value* value_;
217 217
218 private: 218 private:
219 // Helper to set the output state to return a Value. 219 // Helper to set the output state to return a Value.
220 virtual void ReturnValue(Value* value) { 220 virtual void ReturnValue(Value* value) {
221 ASSERT(value->IsUse() || value->IsTemp()); 221 ASSERT(value->IsUse());
222 value_ = value; 222 value_ = value;
223 } 223 }
224 224
225 // Specify a computation as the final result. Adds a Bind instruction to 225 // Specify a computation as the final result. Adds a Bind instruction to
226 // the graph and returns its temporary value (i.e., set the output 226 // the graph and returns its temporary value (i.e., set the output
227 // parameters). 227 // parameters).
228 virtual void ReturnComputation(Computation* computation) { 228 virtual void ReturnComputation(Computation* computation) {
229 BindInstr* defn = new BindInstr(computation); 229 BindInstr* defn = new BindInstr(computation);
230 AddInstruction(defn); 230 AddInstruction(defn);
231 ReturnValue(new UseVal(defn)); 231 ReturnValue(new UseVal(defn));
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // Output parameters. 285 // Output parameters.
286 TargetEntryInstr** true_successor_address_; 286 TargetEntryInstr** true_successor_address_;
287 TargetEntryInstr** false_successor_address_; 287 TargetEntryInstr** false_successor_address_;
288 288
289 intptr_t condition_token_index_; 289 intptr_t condition_token_index_;
290 }; 290 };
291 291
292 } // namespace dart 292 } // namespace dart
293 293
294 #endif // VM_FLOW_GRAPH_BUILDER_H_ 294 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698