5 #ifndef V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ 6 #define V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ 8 #include "src/address-map.h" 9 #include "src/contexts.h" 10 #include "src/snapshot/serializer.h" 15 class StartupSerializer;
20 v8::SerializeEmbedderFieldsCallback callback);
25 void Serialize(
Context* o,
bool include_global_proxy);
27 bool can_be_rehashed()
const {
return can_be_rehashed_; }
30 void SerializeObject(
HeapObject* o, HowToCode how_to_code,
31 WhereToPoint where_to_point,
int skip)
override;
33 bool ShouldBeInThePartialSnapshotCache(
HeapObject* o);
35 bool SerializeJSObjectWithEmbedderFields(
Object* obj, HowToCode how_to_code,
36 WhereToPoint where_to_point);
41 v8::SerializeEmbedderFieldsCallback serialize_embedder_fields_;
44 bool can_be_rehashed_;
55 #endif // V8_SNAPSHOT_PARTIAL_SERIALIZER_H_