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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 9939003: Use null type argument vector instead of vector of Dynamic for a generic raw (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 6004)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -10,6 +10,7 @@
#include "vm/longjump.h"
#include "vm/os.h"
#include "vm/parser.h"
+#include "vm/stub_code.h"
namespace dart {
@@ -1017,9 +1018,11 @@
AddInstruction(
new BindInstr(start_index, new ConstantVal(node->type_arguments())));
args->Add(new TempVal(start_index));
- // Null instantiator.
+ // No instantiator required.
+ const Smi& no_instantiator =
+ Smi::ZoneHandle(Smi::New(StubCode::kNoInstantiator));
AddInstruction(new BindInstr(
- start_index + 1, new ConstantVal(Object::ZoneHandle())));
+ start_index + 1, new ConstantVal(no_instantiator)));
args->Add(new TempVal(start_index + 1));
return;
}

Powered by Google App Engine
This is Rietveld 408576698