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

Unified Diff: runtime/vm/code_generator_test.cc

Issue 10310132: Remove TuckTemp, PickTemp, use temporary locals instead. (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 | « runtime/vm/ast.h ('k') | runtime/vm/flow_graph_builder.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 7560)
+++ runtime/vm/code_generator_test.cc (working copy)
@@ -341,10 +341,11 @@
String& function_bar_name = String::ZoneHandle(String::NewSymbol("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),
+ kPos, no_type_arguments, constructor, no_arguments, allocated),
function_bar_name,
no_arguments);
@@ -475,8 +476,9 @@
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)));
+ kPos, no_type_arguments, constructor, no_arguments, allocated)));
}
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698