Index: src/serialize.cc |
diff --git a/src/serialize.cc b/src/serialize.cc |
index 1f7305a1faea4d7155da35755ddd47988007b8ec..76716a9a4b21a6b4ef5543adb01cb21dd120cf35 100644 |
--- a/src/serialize.cc |
+++ b/src/serialize.cc |
@@ -1346,7 +1346,7 @@ void Serializer::VisitPointers(Object** start, Object** end) { |
// deserialized objects. |
void SerializerDeserializer::Iterate(Isolate* isolate, |
ObjectVisitor* visitor) { |
- if (Serializer::enabled()) return; |
+ if (Serializer::enabled(isolate)) return; |
for (int i = 0; ; i++) { |
if (isolate->serialize_partial_snapshot_cache_length() <= i) { |
// Extend the array ready to get a value from the visitor when |