| Index: runtime/vm/snapshot.cc
|
| ===================================================================
|
| --- runtime/vm/snapshot.cc (revision 18015)
|
| +++ runtime/vm/snapshot.cc (working copy)
|
| @@ -7,6 +7,7 @@
|
| #include "platform/assert.h"
|
| #include "vm/bigint_operations.h"
|
| #include "vm/bootstrap.h"
|
| +#include "vm/class_finalizer.h"
|
| #include "vm/exceptions.h"
|
| #include "vm/heap.h"
|
| #include "vm/longjump.h"
|
| @@ -947,6 +948,7 @@
|
| ASSERT(isolate != NULL);
|
| ObjectStore* object_store = isolate->object_store();
|
| ASSERT(object_store != NULL);
|
| + ASSERT(ClassFinalizer::AllClassesFinalized());
|
|
|
| // Setup for long jump in case there is an exception while writing
|
| // the snapshot.
|
| @@ -1259,6 +1261,7 @@
|
| ASSERT(kind() == Snapshot::kScript);
|
| Isolate* isolate = Isolate::Current();
|
| ASSERT(isolate != NULL);
|
| + ASSERT(ClassFinalizer::AllClassesFinalized());
|
|
|
| // Setup for long jump in case there is an exception while writing
|
| // the snapshot.
|
|
|