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

Unified Diff: runtime/vm/compiler.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.h » ('j') | runtime/vm/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 7463)
+++ runtime/vm/compiler.cc (working copy)
@@ -491,6 +491,10 @@
ParsedFunction parsed_function(func);
parsed_function.SetNodeSequence(fragment);
parsed_function.set_default_parameter_values(Array::Handle());
+ parsed_function.set_expression_temp_var(
+ ParsedFunction::CreateExpressionTempVar(0));
+ fragment->scope()->AddVariable(parsed_function.expression_temp_var());
+ parsed_function.AllocateVariables();
CompileParsedFunctionHelper(parsed_function, false); // Non-optimized.
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.h » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698