diff options
author | Clemens Backes <clemensb@chromium.org> | 2020-07-21 11:11:35 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2020-10-18 21:17:48 +0300 |
commit | b65e5aeaa7bd68a9a02530af3ec40616c468b2fd (patch) | |
tree | 0d43b12207306c0e3f67cf2b106fe8fa07740819 /src/node_platform.h | |
parent | 80e8aec4a5884adbc3bbf38ccde9674ac58ba326 (diff) |
src: implement NodePlatform::PostJob
V8 is starting to use the job API for Wasm compilation, so the node
platform should implement that.
PR-URL: https://github.com/nodejs/node/pull/35415
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'src/node_platform.h')
-rw-r--r-- | src/node_platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_platform.h b/src/node_platform.h index dc512ddf08f..a7139ebdcc2 100644 --- a/src/node_platform.h +++ b/src/node_platform.h @@ -154,6 +154,9 @@ class NodePlatform : public MultiIsolatePlatform { double CurrentClockTimeMillis() override; v8::TracingController* GetTracingController() override; bool FlushForegroundTasks(v8::Isolate* isolate) override; + std::unique_ptr<v8::JobHandle> PostJob( + v8::TaskPriority priority, + std::unique_ptr<v8::JobTask> job_task) override; void RegisterIsolate(v8::Isolate* isolate, uv_loop_t* loop) override; void RegisterIsolate(v8::Isolate* isolate, |