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

Unified Diff: runtime/vm/object_reload.cc

Issue 2049833002: Enable on stack reload in standalone embedder (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/isolate_reload.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_reload.cc
diff --git a/runtime/vm/object_reload.cc b/runtime/vm/object_reload.cc
index 405854db24770010541fb867e141835677a1248f..2a49fc2915d1ec9a3caff26d5b2beeca19cbf85f 100644
--- a/runtime/vm/object_reload.cc
+++ b/runtime/vm/object_reload.cc
@@ -423,6 +423,9 @@ bool Class::CanReload(const Class& replacement) const {
TIR_Print("Finalized replacement class for %s\n", ToCString());
}
+ // At this point the original and replacement must be in the same state.
+ ASSERT(is_finalized() == replacement.is_finalized());
+
if (is_finalized()) {
// Get the field maps for both classes. These field maps walk the class
// hierarchy.
« no previous file with comments | « runtime/vm/isolate_reload.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698