| Index: src/v8.cc
|
| diff --git a/src/v8.cc b/src/v8.cc
|
| index a415f26197b7f5cf9d001823c39021bef4d7703c..b89bb7a69bb48afaab13dca1916c983fb7762cef 100644
|
| --- a/src/v8.cc
|
| +++ b/src/v8.cc
|
| @@ -82,8 +82,6 @@ bool V8::Initialize(Deserializer* des) {
|
| #ifdef V8_USE_DEFAULT_PLATFORM
|
| DefaultPlatform* platform = static_cast<DefaultPlatform*>(platform_);
|
| platform->SetThreadPoolSize(isolate->max_available_threads());
|
| - // We currently only start the threads early, if we know that we'll use them.
|
| - if (FLAG_job_based_sweeping) platform->EnsureInitialized();
|
| #endif
|
|
|
| return isolate->Init(des);
|
| @@ -150,16 +148,15 @@ void V8::RemoveCallCompletedCallback(CallCompletedCallback callback) {
|
|
|
| void V8::FireCallCompletedCallback(Isolate* isolate) {
|
| bool has_call_completed_callbacks = call_completed_callbacks_ != NULL;
|
| - bool run_microtasks = isolate->autorun_microtasks() &&
|
| - isolate->microtask_pending();
|
| - if (!has_call_completed_callbacks && !run_microtasks) return;
|
| + bool microtask_pending = isolate->microtask_pending();
|
| + if (!has_call_completed_callbacks && !microtask_pending) return;
|
|
|
| HandleScopeImplementer* handle_scope_implementer =
|
| isolate->handle_scope_implementer();
|
| if (!handle_scope_implementer->CallDepthIsZero()) return;
|
| // Fire callbacks. Increase call depth to prevent recursive callbacks.
|
| handle_scope_implementer->IncrementCallDepth();
|
| - if (run_microtasks) Execution::RunMicrotasks(isolate);
|
| + if (microtask_pending) Execution::RunMicrotasks(isolate);
|
| if (has_call_completed_callbacks) {
|
| for (int i = 0; i < call_completed_callbacks_->length(); i++) {
|
| call_completed_callbacks_->at(i)();
|
| @@ -169,21 +166,6 @@ void V8::FireCallCompletedCallback(Isolate* isolate) {
|
| }
|
|
|
|
|
| -void V8::RunMicrotasks(Isolate* isolate) {
|
| - if (!isolate->microtask_pending())
|
| - return;
|
| -
|
| - HandleScopeImplementer* handle_scope_implementer =
|
| - isolate->handle_scope_implementer();
|
| - ASSERT(handle_scope_implementer->CallDepthIsZero());
|
| -
|
| - // Increase call depth to prevent recursive callbacks.
|
| - handle_scope_implementer->IncrementCallDepth();
|
| - Execution::RunMicrotasks(isolate);
|
| - handle_scope_implementer->DecrementCallDepth();
|
| -}
|
| -
|
| -
|
| void V8::InitializeOncePerProcessImpl() {
|
| FlagList::EnforceFlagImplications();
|
|
|
|
|