From cab1dc5bb346b6c4d0e02e6785715af6ff6fb090 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sun, 14 Apr 2019 14:41:04 +0800 Subject: src: use RAII to manage the main isolate data This patch encapsulates the main isolate management into a NodeMainInstance class that manages the resources with RAII and controls the Isolate::CreateParams (which is necessary for deserializing snapshots with external references) PR-URL: https://github.com/nodejs/node/pull/27220 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Daniel Bevenius Reviewed-By: Ben Noordhuis --- node.gyp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index 6e792c907b..ead1d67ff2 100644 --- a/node.gyp +++ b/node.gyp @@ -460,6 +460,7 @@ 'src/node_http_parser_traditional.cc', 'src/node_http2.cc', 'src/node_i18n.cc', + 'src/node_main_instance.cc', 'src/node_messaging.cc', 'src/node_metadata.cc', 'src/node_native_module.cc', @@ -540,6 +541,7 @@ 'src/node_http2_state.h', 'src/node_i18n.h', 'src/node_internals.h', + 'src/node_main_instance.h', 'src/node_messaging.h', 'src/node_metadata.h', 'src/node_mutex.h', -- cgit v1.2.3