diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-02 22:14:23 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-06 02:15:47 +0100 |
commit | f6a1d88c5d1c813c8d55933436b4b834a29f449f (patch) | |
tree | 29f12ee52775baecaa76c8a518f9a67557af8fd4 /src/env.h | |
parent | 728505acd5452c6682e9756bc0bd8d31df5c764c (diff) | |
download | android-node-v8-f6a1d88c5d1c813c8d55933436b4b834a29f449f.tar.gz android-node-v8-f6a1d88c5d1c813c8d55933436b4b834a29f449f.tar.bz2 android-node-v8-f6a1d88c5d1c813c8d55933436b4b834a29f449f.zip |
src: split `LoadEnvironment()` at `startExecution()`
This makes it easier to cater to embedders which wish to skip
the `startExecution()` part.
PR-URL: https://github.com/nodejs/node/pull/25320
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -371,6 +371,7 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2; V(script_data_constructor_function, v8::Function) \ V(secure_context_constructor_template, v8::FunctionTemplate) \ V(shutdown_wrap_template, v8::ObjectTemplate) \ + V(start_execution_function, v8::Function) \ V(tcp_constructor_template, v8::FunctionTemplate) \ V(tick_callback_function, v8::Function) \ V(timers_callback_function, v8::Function) \ @@ -755,6 +756,9 @@ class Environment { inline bool can_call_into_js() const; inline void set_can_call_into_js(bool can_call_into_js); + inline bool has_run_bootstrapping_code() const; + inline void set_has_run_bootstrapping_code(bool has_run_bootstrapping_code); + inline bool is_main_thread() const; inline uint64_t thread_id() const; inline void set_thread_id(uint64_t id); @@ -980,6 +984,7 @@ class Environment { std::unique_ptr<performance::performance_state> performance_state_; std::unordered_map<std::string, uint64_t> performance_marks_; + bool has_run_bootstrapping_code_ = false; bool can_call_into_js_ = true; uint64_t thread_id_ = 0; std::unordered_set<worker::Worker*> sub_worker_contexts_; |