diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2020-04-21 21:57:16 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2020-07-18 06:23:21 +0300 |
commit | 7a447bcd54f5e153d14da377963541349d7bda09 (patch) | |
tree | f2a91589e92c88d10c2a73919847a5c056599089 /src/node_external_reference.h | |
parent | b1c3909bd766327a569c2e4279a4670454f3f9db (diff) |
src: snapshot node
This runs `lib/internal/bootstrap/node.js` before creating
the builtin snapshot and deserialize the loaders from the
snapshot in deserialization mode.
PR-URL: https://github.com/nodejs/node/pull/32984
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'src/node_external_reference.h')
-rw-r--r-- | src/node_external_reference.h | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/src/node_external_reference.h b/src/node_external_reference.h index 8c97eca2264..f332103c3f5 100644 --- a/src/node_external_reference.h +++ b/src/node_external_reference.h @@ -47,12 +47,41 @@ class ExternalReferenceRegistry { }; #define EXTERNAL_REFERENCE_BINDING_LIST_BASE(V) \ + V(async_wrap) \ V(binding) \ + V(buffer) \ + V(credentials) \ + V(env_var) \ + V(errors) \ + V(handle_wrap) \ + V(messaging) \ V(native_module) \ - V(process_object) + V(process_methods) \ + V(process_object) \ + V(task_queue) \ + V(url) \ + V(util) \ + V(string_decoder) \ + V(trace_events) \ + V(timers) \ + V(types) + +#if NODE_HAVE_I18N_SUPPORT +#define EXTERNAL_REFERENCE_BINDING_LIST_I18N(V) V(icu) +#else +#define EXTERNAL_REFERENCE_BINDING_LIST_I18N(V) +#endif // NODE_HAVE_I18N_SUPPORT + +#if HAVE_INSPECTOR +#define EXTERNAL_REFERENCE_BINDING_LIST_INSPECTOR(V) V(inspector) +#else +#define EXTERNAL_REFERENCE_BINDING_LIST_INSPECTOR(V) +#endif // HAVE_INSPECTOR #define EXTERNAL_REFERENCE_BINDING_LIST(V) \ - EXTERNAL_REFERENCE_BINDING_LIST_BASE(V) + EXTERNAL_REFERENCE_BINDING_LIST_BASE(V) \ + EXTERNAL_REFERENCE_BINDING_LIST_INSPECTOR(V) \ + EXTERNAL_REFERENCE_BINDING_LIST_I18N(V) } // namespace node |