Index: src/optimizing-compile-dispatcher.cc |
diff --git a/src/optimizing-compile-dispatcher.cc b/src/optimizing-compile-dispatcher.cc |
index 491f52a2bb6c257b513b95391f09547273f59f61..a2f2970fc83299b27479b3f6c71262181cca3456 100644 |
--- a/src/optimizing-compile-dispatcher.cc |
+++ b/src/optimizing-compile-dispatcher.cc |
@@ -63,7 +63,8 @@ class OptimizingCompileDispatcher::CompileTask : public v8::Task { |
TimerEventScope<TimerEventRecompileConcurrent> timer(isolate_); |
if (dispatcher->recompilation_delay_ != 0) { |
- base::OS::Sleep(dispatcher->recompilation_delay_); |
+ base::OS::Sleep(base::TimeDelta::FromMilliseconds( |
+ dispatcher->recompilation_delay_)); |
} |
dispatcher->CompileNext(dispatcher->NextInput(true)); |