summaryrefslogtreecommitdiff
path: root/deps/v8/src/libplatform
diff options
context:
space:
mode:
authorMatt Loring <mattloring@google.com>2017-08-19 10:17:09 -0700
committerMatt Loring <mattloring@google.com>2017-08-22 09:48:49 -0700
commitd3485121f9d30e482067e751918e7a871bfcf884 (patch)
treea0b989628b57f1887d32edd0c80bf5ba2d9e7c1f /deps/v8/src/libplatform
parent9dfb2d14cb315ed841658195347095aa879dae8b (diff)
downloadnode-new-d3485121f9d30e482067e751918e7a871bfcf884.tar.gz
deps: backport d727680 from V8 upstream
Original commit message: [d8] Bring PredictablePlatform in line with default platform This removes a lot of special handling for the predictable platform. Instead of executing spawned foreground and background tasks immediately (i.e. inside the scope that spawns the tasks), just add both to the foreground task queue. This avoids existing special handling for predictable mode in wasm async compilation, and should fix current failures on the predictable bot. BUG=v8:6427 Change-Id: Idbaa764a3dc8c230c29f3937d885e12174691ac4 Reviewed-on: https://chromium-review.googlesource.com/509694 Reviewed-by: Jochen Eisinger <jochen@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#45538} PR-URL: https://github.com/nodejs/node/pull/14947 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'deps/v8/src/libplatform')
-rw-r--r--deps/v8/src/libplatform/default-platform.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/src/libplatform/default-platform.cc b/deps/v8/src/libplatform/default-platform.cc
index f873a7bb62..34cda33b43 100644
--- a/deps/v8/src/libplatform/default-platform.cc
+++ b/deps/v8/src/libplatform/default-platform.cc
@@ -47,25 +47,25 @@ v8::Platform* CreateDefaultPlatform(int thread_pool_size,
bool PumpMessageLoop(v8::Platform* platform, v8::Isolate* isolate,
MessageLoopBehavior behavior) {
- return reinterpret_cast<DefaultPlatform*>(platform)->PumpMessageLoop(
- isolate, behavior);
+ return static_cast<DefaultPlatform*>(platform)->PumpMessageLoop(isolate,
+ behavior);
}
void EnsureEventLoopInitialized(v8::Platform* platform, v8::Isolate* isolate) {
- return reinterpret_cast<DefaultPlatform*>(platform)
- ->EnsureEventLoopInitialized(isolate);
+ return static_cast<DefaultPlatform*>(platform)->EnsureEventLoopInitialized(
+ isolate);
}
void RunIdleTasks(v8::Platform* platform, v8::Isolate* isolate,
double idle_time_in_seconds) {
- reinterpret_cast<DefaultPlatform*>(platform)->RunIdleTasks(
- isolate, idle_time_in_seconds);
+ static_cast<DefaultPlatform*>(platform)->RunIdleTasks(isolate,
+ idle_time_in_seconds);
}
void SetTracingController(
v8::Platform* platform,
v8::platform::tracing::TracingController* tracing_controller) {
- return reinterpret_cast<DefaultPlatform*>(platform)->SetTracingController(
+ return static_cast<DefaultPlatform*>(platform)->SetTracingController(
tracing_controller);
}