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

Unified Diff: runtime/vm/dart_entry.cc

Issue 20503003: Delay resolution of redirecting factory targets in order to avoid class (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry.cc
===================================================================
--- runtime/vm/dart_entry.cc (revision 25531)
+++ runtime/vm/dart_entry.cc (working copy)
@@ -4,6 +4,7 @@
#include "vm/dart_entry.h"
+#include "vm/class_finalizer.h"
#include "vm/code_generator.h"
#include "vm/compiler.h"
#include "vm/debugger.h"
@@ -161,9 +162,11 @@
Instance& new_object = Instance::Handle();
if (ultimate_constructor.IsRedirectingFactory()) {
+ ClassFinalizer::ResolveRedirectingFactory(klass, ultimate_constructor);
Type& type = Type::Handle(ultimate_constructor.RedirectionType());
+ ultimate_constructor = ultimate_constructor.RedirectionTarget();
+ ASSERT(!ultimate_constructor.IsNull());
ultimate_klass = type.type_class();
- ultimate_constructor = ultimate_constructor.RedirectionTarget();
}
if (ultimate_constructor.IsConstructor()) {
// "Constructors" are really instance initializers. They are passed a newly
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698