Index: src/snapshot/code-serializer.cc |
diff --git a/src/snapshot/code-serializer.cc b/src/snapshot/code-serializer.cc |
index 7e1e545759ce021d2062bbcf04df85a4ede0c252..1481eb6a30b69e71e738a967494b7bcc66fb43ad 100644 |
--- a/src/snapshot/code-serializer.cc |
+++ b/src/snapshot/code-serializer.cc |
@@ -100,8 +100,8 @@ void CodeSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code, |
} |
if (ElideObject(obj)) { |
- return SerializeObject(*isolate()->factory()->undefined_value(), |
- how_to_code, where_to_point, skip); |
+ return SerializeObject(isolate()->heap()->undefined_value(), how_to_code, |
+ where_to_point, skip); |
} |
// Past this point we should not see any (context-specific) maps anymore. |
CHECK(!obj->IsMap()); |