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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 27192005: Add new style of string interpolation optimization: new nodes, working constant folding. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 28647)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -2032,6 +2032,17 @@
}
+void EffectGraphVisitor::VisitStringInterpolateNode(
+ StringInterpolateNode* node) {
+ ValueGraphVisitor for_argument(owner(), temp_index());
+ node->value()->Visit(&for_argument);
+ Append(for_argument);
+ StringInterpolateInstr* instr =
+ new StringInterpolateInstr(for_argument.value(), node->token_pos());
+ ReturnDefinition(instr);
+}
+
+
void EffectGraphVisitor::VisitClosureNode(ClosureNode* node) {
const Function& function = node->function();

Powered by Google App Engine
This is Rietveld 408576698