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

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

Issue 9463007: Ensure that outgoing constant arguments will be materialized. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const EffectGraphVisitor& body_fragment); 85 const EffectGraphVisitor& body_fragment);
86 86
87 protected: 87 protected:
88 // Implement the core part of the translation of expression node types. 88 // Implement the core part of the translation of expression node types.
89 AssertAssignableComp* TranslateAssignable(const AssignableNode& node); 89 AssertAssignableComp* TranslateAssignable(const AssignableNode& node);
90 InstanceCallComp* TranslateBinaryOp(const BinaryOpNode& node); 90 InstanceCallComp* TranslateBinaryOp(const BinaryOpNode& node);
91 InstanceCallComp* TranslateUnaryOp(const UnaryOpNode& node); 91 InstanceCallComp* TranslateUnaryOp(const UnaryOpNode& node);
92 InstanceCallComp* TranslateComparison(const ComparisonNode& node); 92 InstanceCallComp* TranslateComparison(const ComparisonNode& node);
93 StoreLocalComp* TranslateStoreLocal(const StoreLocalNode& node); 93 StoreLocalComp* TranslateStoreLocal(const StoreLocalNode& node);
94 StaticCallComp* TranslateStaticCall(const StaticCallNode& node); 94 StaticCallComp* TranslateStaticCall(const StaticCallNode& node);
95 void TranslateArgumentList(const ArgumentListNode& node,
96 ZoneGrowableArray<Value*>* values);
95 97
96 void CloseFragment() { exit_ = NULL; } 98 void CloseFragment() { exit_ = NULL; }
97 intptr_t AllocateTempIndex() { return temp_index_++; } 99 intptr_t AllocateTempIndex() { return temp_index_++; }
98 100
99 private: 101 private:
100 // Helper to append a Do instruction to the graph. 102 // Helper to append a Do instruction to the graph.
101 void DoComputation(Computation* computation) { 103 void DoComputation(Computation* computation) {
102 AddInstruction(new DoInstr(computation)); 104 AddInstruction(new DoInstr(computation));
103 } 105 }
104 106
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 TargetEntryInstr** true_successor_address_; 207 TargetEntryInstr** true_successor_address_;
206 TargetEntryInstr** false_successor_address_; 208 TargetEntryInstr** false_successor_address_;
207 }; 209 };
208 210
209 #undef DEFINE_VISIT 211 #undef DEFINE_VISIT
210 212
211 213
212 } // namespace dart 214 } // namespace dart
213 215
214 #endif // VM_FLOW_GRAPH_BUILDER_H_ 216 #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