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>2021-01-28 19:04:22 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2021-02-05 15:18:47 +0300
commit2e769a92ff1e600f56deb3a65ff9823816aff330 (patch)
tree2711607c7aac8798151f3e35b2791d9a38421f40 /src/node_main_instance.cc
parent9aeb83643486328cbdffb55a23efe953f6ee54e0 (diff)
src: put (de)serialization code into node_snapshotable.h/cc
So that it's easier to find the corresponding code. PR-URL: https://github.com/nodejs/node/pull/37114 Refs: https://github.com/nodejs/node/pull/36943 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Diffstat (limited to 'src/node_main_instance.cc')
-rw-r--r--src/node_main_instance.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/node_main_instance.cc b/src/node_main_instance.cc
index 8ffeef0e8ae..9cbb3e7e05b 100644
--- a/src/node_main_instance.cc
+++ b/src/node_main_instance.cc
@@ -5,6 +5,7 @@
#include "node_external_reference.h"
#include "node_internals.h"
#include "node_options-inl.h"
+#include "node_snapshotable.h"
#include "node_v8_platform-inl.h"
#include "util-inl.h"
#if defined(LEAK_SANITIZER)
@@ -22,7 +23,6 @@ using v8::HandleScope;
using v8::Isolate;
using v8::Local;
using v8::Locker;
-using v8::Object;
std::unique_ptr<ExternalReferenceRegistry> NodeMainInstance::registry_ =
nullptr;
@@ -167,18 +167,6 @@ int NodeMainInstance::Run(const EnvSerializeInfo* env_info) {
return exit_code;
}
-void DeserializeNodeInternalFields(Local<Object> holder,
- int index,
- v8::StartupData payload,
- void* env) {
- if (payload.raw_size == 0) {
- holder->SetAlignedPointerInInternalField(index, nullptr);
- return;
- }
- // No embedder object in the builtin snapshot yet.
- UNREACHABLE();
-}
-
DeleteFnPtr<Environment, FreeEnvironment>
NodeMainInstance::CreateMainEnvironment(int* exit_code,
const EnvSerializeInfo* env_info) {