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

Unified Diff: runtime/vm/snapshot.cc

Issue 14820028: Delay Class parsing until the class is actually used. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: runtime/vm/snapshot.cc
===================================================================
--- runtime/vm/snapshot.cc (revision 22914)
+++ runtime/vm/snapshot.cc (working copy)
@@ -209,6 +209,7 @@
ASSERT(!library_.IsNull());
str_ ^= ReadObjectImpl();
cls = library_.LookupClass(str_);
+ cls.EnsureIsParsed(isolate());
hausner 2013/05/21 20:07:30 Does this mean you parse all classes that are in a
siva 2013/05/23 00:54:31 No this code is only used in isolate messages. Whe
}
ASSERT(!cls.IsNull());
return cls.raw();

Powered by Google App Engine
This is Rietveld 408576698