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

Unified Diff: runtime/vm/object.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.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index a0e5ccad6ab86b51695b00d14d19e32f8f042380..ad309daa27eed48a28f0af904eee4da571a7c3a4 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -3537,6 +3537,14 @@ void Class::set_is_finalized() const {
}
+void Class::ResetFinalization() const {
+ ASSERT(IsTopLevel());
+ set_state_bits(ClassFinalizedBits::update(RawClass::kAllocated,
+ raw_ptr()->state_bits_));
+ set_state_bits(TypeFinalizedBit::update(false, raw_ptr()->state_bits_));
+}
+
+
void Class::set_is_prefinalized() const {
ASSERT(!is_finalized());
set_state_bits(ClassFinalizedBits::update(RawClass::kPreFinalized,
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698