Index: runtime/vm/raw_object_snapshot.cc |
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
index 304f11dcb2ce3a1fd65c42b08c60ff40ea19cabc..3e03b9d0192143850037a8ee398896c8ef4b1b67 100644 |
--- a/runtime/vm/raw_object_snapshot.cc |
+++ b/runtime/vm/raw_object_snapshot.cc |
@@ -733,7 +733,8 @@ 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_was_compiled(false); |
+ func.set_kernel_offset(0); |
+ func.SetWasCompiled(false); |
// Set all the object fields. |
READ_OBJECT_FIELDS(func, func.raw()->from(), func.raw()->to_snapshot(kind), |