src: move public C++ APIs into src/api/*.cc
src: move v8_platform implementation into node_v8_platform-inl.h
So that the v8_platform global variable can be referenced in other files.
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.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines