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

Unified Diff: runtime/vm/code_generator_test.cc

Issue 14942010: Eliminate temporary locals for some expressions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/bit_vector.h ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator_test.cc
===================================================================
--- runtime/vm/code_generator_test.cc (revision 23243)
+++ runtime/vm/code_generator_test.cc (working copy)
@@ -350,11 +350,10 @@
String& function_bar_name = String::ZoneHandle(Symbols::New("bar"));
ArgumentListNode* no_arguments = new ArgumentListNode(kPos);
const TypeArguments& no_type_arguments = TypeArguments::ZoneHandle();
- const LocalVariable* allocated = test->CreateTempConstVariable("alloc");
InstanceCallNode* call_bar = new InstanceCallNode(
kPos,
new ConstructorCallNode(
- kPos, no_type_arguments, constructor, no_arguments, allocated),
+ kPos, no_type_arguments, constructor, no_arguments),
function_bar_name,
no_arguments);
@@ -535,9 +534,8 @@
const TypeArguments& no_type_arguments = TypeArguments::ZoneHandle();
ArgumentListNode* no_arguments = new ArgumentListNode(kPos);
- const LocalVariable* allocated = test->CreateTempConstVariable("alloc");
test->node_sequence()->Add(new ReturnNode(kPos, new ConstructorCallNode(
- kPos, no_type_arguments, constructor, no_arguments, allocated)));
+ kPos, no_type_arguments, constructor, no_arguments)));
}
« no previous file with comments | « runtime/vm/bit_vector.h ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698