summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-01-17 03:00:55 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-02-01 07:43:27 +0800
commitca9e24e8b43b89dc705227a4ed29172c2a95f57f (patch)
treedaba09ee200dab1bff3fb7bc02124b88756b133d /src/node_internals.h
parent99c3243b229d4e552eadf1abf296440e20c604f8 (diff)
downloadandroid-node-v8-ca9e24e8b43b89dc705227a4ed29172c2a95f57f.tar.gz
android-node-v8-ca9e24e8b43b89dc705227a4ed29172c2a95f57f.tar.bz2
android-node-v8-ca9e24e8b43b89dc705227a4ed29172c2a95f57f.zip
src: move public C++ APIs into src/api/*.cc
This patch moves most of the public C++ APIs into src/api/*.cc so that it's easier to tell that we need to be careful about the compatibility of these code. Some APIs, like `node::LoadEnvironmet()`, `node::Start()` and `node::Init()` still stay in `node.cc` because they are still very specific to our use cases and do not work quite well yet for embedders anyway - we could not even manage to write cctest for them at the moment. PR-URL: https://github.com/nodejs/node/pull/25541 Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index d972e2e5bd..b34e6f90e7 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -56,6 +56,7 @@ class NativeModuleLoader;
namespace per_process {
extern Mutex env_var_mutex;
extern double prog_start_time;
+extern bool v8_is_profiling;
} // namespace per_process
// Forward declaration