Index: src/snapshot/startup-serializer.cc |
diff --git a/src/snapshot/startup-serializer.cc b/src/snapshot/startup-serializer.cc |
index 573e73d174ddb6e09ef780b1d8e98d3faf2e9952..80598e80bd04aa30a6b0c949feb8df69a7a53a44 100644 |
--- a/src/snapshot/startup-serializer.cc |
+++ b/src/snapshot/startup-serializer.cc |
@@ -50,6 +50,8 @@ void StartupSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code, |
} |
} |
+ if (SerializeHotObject(obj, how_to_code, where_to_point, skip)) return; |
+ |
int root_index = root_index_map_.Lookup(obj); |
// We can only encode roots as such if it has already been serialized. |
// That applies to root indices below the wave front. |
@@ -60,7 +62,7 @@ void StartupSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code, |
} |
} |
- if (SerializeKnownObject(obj, how_to_code, where_to_point, skip)) return; |
+ if (SerializeBackReference(obj, how_to_code, where_to_point, skip)) return; |
FlushSkip(skip); |