Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2022-04-11 19:38:57 +0300
committerMichaël Zasso <targos@protonmail.com>2022-04-28 07:56:12 +0300
commit29c8411f992a74682fad4a6715452161b64a739b (patch)
treea95e175680861e3b2e26b17a708102e7f5360ac5 /src/node_snapshotable.h
parent962d80b7a12c01b49033511989a1af89b9a3fa2f (diff)
bootstrap: move embedded snapshot to SnapshotBuilder
So that the embedded snapshot can be reused by the worker. PR-URL: https://github.com/nodejs/node/pull/42702 Refs: https://github.com/nodejs/node/issues/35711 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_snapshotable.h')
-rw-r--r--src/node_snapshotable.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/node_snapshotable.h b/src/node_snapshotable.h
index 30b684eb68a..f0a8bce215e 100644
--- a/src/node_snapshotable.h
+++ b/src/node_snapshotable.h
@@ -12,6 +12,7 @@ namespace node {
class Environment;
struct EnvSerializeInfo;
struct SnapshotData;
+class ExternalReferenceRegistry;
#define SERIALIZABLE_OBJECT_TYPES(V) \
V(fs_binding_data, fs::BindingData) \
@@ -122,17 +123,6 @@ void SerializeBindingData(Environment* env,
EnvSerializeInfo* info);
bool IsSnapshotableType(FastStringKey key);
-
-class SnapshotBuilder {
- public:
- static std::string Generate(const std::vector<std::string> args,
- const std::vector<std::string> exec_args);
-
- // Generate the snapshot into out.
- static void Generate(SnapshotData* out,
- const std::vector<std::string> args,
- const std::vector<std::string> exec_args);
-};
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS