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

Unified Diff: runtime/lib/mirrors.cc

Issue 1167583002: Canonicalize mixin type during class finalization. Add asserts that most types are canonical. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/class_finalizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors.cc
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
index 63e05d0c66a591ea2df26cf844cab8d0240eda59..976ccd0f05b011da769735a7f5217e865d823f99 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -517,6 +517,7 @@ static RawInstance* CreateTypeMirror(const AbstractType& type) {
}
ASSERT(type.IsFinalized());
PROPOGATE_IF_MALFOMRED(type);
regis 2015/05/29 22:16:50 Raelly? :-)
rmacnak 2015/05/29 22:22:01 'merikens can not spel.
+ ASSERT(type.IsCanonical() || type.IsTypeParameter() || type.IsBoundedType());
if (type.HasResolvedTypeClass()) {
const Class& cls = Class::Handle(type.type_class());
@@ -763,6 +764,7 @@ static RawAbstractType* InstantiateType(const AbstractType& type,
const AbstractType& instantiator) {
ASSERT(type.IsFinalized());
PROPOGATE_IF_MALFOMRED(type);
+ ASSERT(type.IsCanonical() || type.IsTypeParameter() || type.IsBoundedType());
if (type.IsInstantiated() || instantiator.IsNull()) {
return type.Canonicalize();
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698