Index: runtime/vm/raw_object_snapshot.cc |
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
index 95a71c1f28e8720698a148113a6ed5b030309ba3..db9d539b9bd5d601008f97521a56f96fadb3f537 100644 |
--- a/runtime/vm/raw_object_snapshot.cc |
+++ b/runtime/vm/raw_object_snapshot.cc |
@@ -872,7 +872,7 @@ RawField* Field::ReadFrom(SnapshotReader* reader, |
kAsReference); |
field.StorePointer(&field.raw_ptr()->dependent_code_, Array::null()); |
- if (!FLAG_use_field_guards) { |
+ if (!reader->isolate()->use_field_guards()) { |
field.set_guarded_cid(kDynamicCid); |
field.set_is_nullable(true); |
field.set_guarded_list_length(Field::kNoFixedLength); |