5#ifndef INCLUDE_V8_SNAPSHOT_H_
6#define INCLUDE_V8_SNAPSHOT_H_
18class SnapshotCreatorImpl;
51 void* data_arg =
nullptr)
65 void* data_arg =
nullptr)
79 void* data_arg =
nullptr)
94 void* data_arg =
nullptr)
124 const intptr_t* external_references =
nullptr,
126 bool owns_isolate = true);
164 const
v8::
Isolate::CreateParams& params);
191 void SetDefaultContext(
247 size_t AddData(
Local<
Context> context, internal::Address
object);
248 size_t AddData(internal::Address
object);
250 internal::SnapshotCreatorImpl* impl_;
251 friend class internal::SnapshotCreatorImpl;
256 return AddData(context, internal::ValueHelper::ValueAsAddress(*
object));
261 return AddData(internal::ValueHelper::ValueAsAddress(*
object));
bool CanBeRehashed() const
DeserializeContextDataCallback(CallbackFunction function=nullptr, void *data_arg=nullptr)
void(*)(Local< Context > holder, int index, StartupData payload, void *data) CallbackFunction
CallbackFunction callback
void(*)(Local< Object > holder, int index, StartupData payload, void *data) CallbackFunction
DeserializeInternalFieldsCallback(CallbackFunction function=nullptr, void *data_arg=nullptr)
CallbackFunction callback
StartupData(*)(Local< Context > holder, int index, void *data) CallbackFunction
SerializeContextDataCallback(CallbackFunction function=nullptr, void *data_arg=nullptr)
CallbackFunction callback
StartupData(*)(Local< Object > holder, int index, void *data) CallbackFunction
SerializeInternalFieldsCallback(CallbackFunction function=nullptr, void *data_arg=nullptr)
CallbackFunction callback
#define V8_DEPRECATE_SOON(message)