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

Unified Diff: runtime/vm/code_generator.cc

Issue 8773026: Canonicalize TypeArguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/class_finalizer.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 2130)
+++ runtime/vm/code_generator.cc (working copy)
@@ -137,9 +137,7 @@
// virtual call to Length() handles other cases that are harder to inline.
element_type = instantiator.raw();
} else {
- element_type =
- AbstractTypeArguments::NewInstantiatedTypeArguments(element_type,
- instantiator);
+ element_type = InstantiatedTypeArguments::New(element_type, instantiator);
}
array.SetTypeArguments(element_type);
}
@@ -187,16 +185,14 @@
ASSERT(!type_arguments.IsUninstantiatedIdentity() ||
(instantiator.Length() != type_arguments.Length()));
type_arguments =
- AbstractTypeArguments::NewInstantiatedTypeArguments(type_arguments,
- instantiator);
+ InstantiatedTypeArguments::New(type_arguments, instantiator);
} else {
if (type_arguments.IsUninstantiatedIdentity() &&
(instantiator.Length() == type_arguments.Length())) {
type_arguments = instantiator.raw();
} else {
type_arguments =
- AbstractTypeArguments::NewInstantiatedTypeArguments(type_arguments,
- instantiator);
+ InstantiatedTypeArguments::New(type_arguments, instantiator);
}
}
instance.SetTypeArguments(type_arguments);
@@ -222,9 +218,7 @@
ASSERT(!type_arguments.IsUninstantiatedIdentity() ||
!instantiator.IsTypeArguments() ||
(instantiator.Length() != type_arguments.Length()));
- type_arguments =
- AbstractTypeArguments::NewInstantiatedTypeArguments(type_arguments,
- instantiator);
+ type_arguments = InstantiatedTypeArguments::New(type_arguments, instantiator);
arguments.SetReturn(type_arguments);
}
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698