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.cc
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.cc')
-rw-r--r--src/node.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node.cc b/src/node.cc
index b43f915c5d5..892615f1d8e 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -25,8 +25,8 @@
#include "debug_utils-inl.h"
#include "env-inl.h"
-#include "memory_tracker-inl.h"
#include "histogram-inl.h"
+#include "memory_tracker-inl.h"
#include "node_binding.h"
#include "node_errors.h"
#include "node_internals.h"
@@ -38,6 +38,7 @@
#include "node_process-inl.h"
#include "node_report.h"
#include "node_revert.h"
+#include "node_snapshot_builder.h"
#include "node_v8_platform-inl.h"
#include "node_version.h"
@@ -1171,7 +1172,7 @@ int Start(int argc, char** argv) {
bool use_node_snapshot =
per_process::cli_options->per_isolate->node_snapshot;
const SnapshotData* snapshot_data =
- use_node_snapshot ? NodeMainInstance::GetEmbeddedSnapshotData()
+ use_node_snapshot ? SnapshotBuilder::GetEmbeddedSnapshotData()
: nullptr;
uv_loop_configure(uv_default_loop(), UV_METRICS_IDLE_TIME);