diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2022-04-12 00:38:57 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2022-04-20 02:21:24 +0800 |
commit | 43d2e247c7c198fcbbded3e13fa3996687848660 (patch) | |
tree | 8c7fb864301760019572f3824ef5fc3e02b082ba /src/node_main_instance.h | |
parent | 77373aa5d69a64f4bd9842163043dce260c30c49 (diff) | |
download | node-new-43d2e247c7c198fcbbded3e13fa3996687848660.tar.gz |
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_main_instance.h')
-rw-r--r-- | src/node_main_instance.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/node_main_instance.h b/src/node_main_instance.h index fa4c4db0a8..fc44bc9df6 100644 --- a/src/node_main_instance.h +++ b/src/node_main_instance.h @@ -65,11 +65,6 @@ class NodeMainInstance { DeleteFnPtr<Environment, FreeEnvironment> CreateMainEnvironment( int* exit_code); - // If nullptr is returned, the binary is not built with embedded - // snapshot. - static const SnapshotData* GetEmbeddedSnapshotData(); - static const std::vector<intptr_t>& CollectExternalReferences(); - static const size_t kNodeContextIndex = 0; NodeMainInstance(const NodeMainInstance&) = delete; NodeMainInstance& operator=(const NodeMainInstance&) = delete; |