Index: runtime/vm/raw_object_snapshot.cc |
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
index f345a19deba1972574eaaeb0291e4163b803c7d3..804c376b9c1242bf6efd4a123a655deab011ecc7 100644 |
--- a/runtime/vm/raw_object_snapshot.cc |
+++ b/runtime/vm/raw_object_snapshot.cc |
@@ -714,6 +714,7 @@ RawFunction* Function::ReadFrom(SnapshotReader* reader, |
func.set_deoptimization_counter(reader->Read<int8_t>()); |
func.set_optimized_instruction_count(reader->Read<uint16_t>()); |
func.set_optimized_call_site_count(reader->Read<uint16_t>()); |
+ func.set_kernel_function(NULL); |
func.set_was_compiled(false); |
// Set all the object fields. |
@@ -820,6 +821,7 @@ RawField* Field::ReadFrom(SnapshotReader* reader, |
field.set_guarded_cid(reader->Read<int32_t>()); |
field.set_is_nullable(reader->Read<int32_t>()); |
field.set_kind_bits(reader->Read<uint8_t>()); |
+ field.set_kernel_field(NULL); |
// Set all the object fields. |
READ_OBJECT_FIELDS(field, |