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

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
« runtime/vm/object.cc ('K') | « 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..237704fbb34dd6ab61800b05060a1aa62fed8a26 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -6188,9 +6188,11 @@ void Parser::ParseTopLevel() {
if (top_level.fields().length() > 0) {
toplevel_class.AddFields(top_level.fields());
+ toplevel_class.ResetFinalization();
}
for (intptr_t i = 0; i < top_level.functions().length(); i++) {
toplevel_class.AddFunction(*top_level.functions()[i]);
+ toplevel_class.ResetFinalization();
}
pending_classes.Add(toplevel_class, Heap::kOld);
}
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698