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

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
« no previous file with comments | « runtime/vm/ast_printer.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 28731)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -2025,6 +2025,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();
« no previous file with comments | « runtime/vm/ast_printer.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698