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

Unified Diff: runtime/vm/class_finalizer.cc

Issue 446373002: VM: Fix bug in CHA for signature classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/cha_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer.cc
===================================================================
--- runtime/vm/class_finalizer.cc (revision 38967)
+++ runtime/vm/class_finalizer.cc (working copy)
@@ -2206,6 +2206,13 @@
// Resolve and finalize the signature type of this signature class.
const Type& sig_type = Type::Handle(cls.SignatureType());
FinalizeType(cls, sig_type, kCanonicalizeWellFormed);
+
+ // Add this class to the subclasses of the superclass (_FunctionImpl).
+ if (!super_type.IsNull()) {
+ ASSERT(!super_type.IsObjectType());
+ ASSERT(!super_class.IsNull());
+ super_class.AddDirectSubclass(cls);
+ }
return;
}
// Finalize interface types (but not necessarily interface classes).
« no previous file with comments | « runtime/vm/cha_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698