5 #ifndef V8_SNAPSHOT_STARTUP_SERIALIZER_H_ 6 #define V8_SNAPSHOT_STARTUP_SERIALIZER_H_ 8 #include <unordered_set> 10 #include "src/snapshot/roots-serializer.h" 16 class SnapshotByteSink;
17 class ReadOnlySerializer;
29 void SerializeStrongReferences();
30 void SerializeWeakReferencesAndDeferred();
38 WhereToPoint where_to_point,
int skip);
44 HowToCode how_to_code,
45 WhereToPoint where_to_point,
49 void SerializeObject(
HeapObject* o, HowToCode how_to_code,
50 WhereToPoint where_to_point,
int skip)
override;
53 std::vector<AccessorInfo*> accessor_infos_;
54 std::vector<CallHandlerInfo*> call_handler_infos_;
62 void VisitRootPointers(Root root,
const char* description,
ObjectSlot start,
64 bool CheckGlobalAndEternalHandles();
70 std::unordered_set<Object*> serialized_;
77 #endif // V8_SNAPSHOT_STARTUP_SERIALIZER_H_