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

Unified Diff: runtime/vm/parser.cc

Issue 1493533002: Reset top-level class finalization (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index df88dbfe7dd7c3a665f32e5c0112221c6a9fa432..8d34e25d5982f48d942cd7ae9d7c2398b019a814 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -6192,6 +6192,9 @@ void Parser::ParseTopLevel() {
for (intptr_t i = 0; i < top_level.functions().length(); i++) {
toplevel_class.AddFunction(*top_level.functions()[i]);
}
+ if (toplevel_class.is_finalized()) {
+ toplevel_class.ResetFinalization();
+ }
pending_classes.Add(toplevel_class, Heap::kOld);
}
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698