| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 54c34092f7527b5fd038b0e94d201c1d7cdb2368..40c7b1a3cb5941033bfa70f55eea32a3ce548023 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -42,7 +42,6 @@
|
| #include "isolate-inl.h"
|
| #include "lithium-allocator.h"
|
| #include "log.h"
|
| -#include "marking-thread.h"
|
| #include "messages.h"
|
| #include "platform.h"
|
| #include "regexp-stack.h"
|
| @@ -121,14 +120,8 @@ void ThreadLocalTop::InitializeInternal() {
|
| void ThreadLocalTop::Initialize() {
|
| InitializeInternal();
|
| #ifdef USE_SIMULATOR
|
| -#if V8_TARGET_ARCH_A64
|
| - simulator_ = Simulator::current(isolate_);
|
| -#elif V8_TARGET_ARCH_ARM
|
| - simulator_ = Simulator::current(isolate_);
|
| -#elif V8_TARGET_ARCH_MIPS
|
| simulator_ = Simulator::current(isolate_);
|
| #endif
|
| -#endif
|
| thread_id_ = ThreadId::Current();
|
| }
|
|
|
| @@ -149,8 +142,6 @@ int SystemThreadManager::NumberOfParallelSystemThreads(
|
| return number_of_threads;
|
| } else if (type == CONCURRENT_SWEEPING) {
|
| return number_of_threads - 1;
|
| - } else if (type == PARALLEL_MARKING) {
|
| - return number_of_threads;
|
| }
|
| return 1;
|
| }
|
| @@ -1675,13 +1666,7 @@ char* Isolate::RestoreThread(char* from) {
|
| // This might be just paranoia, but it seems to be needed in case a
|
| // thread_local_top_ is restored on a separate OS thread.
|
| #ifdef USE_SIMULATOR
|
| -#if V8_TARGET_ARCH_A64
|
| thread_local_top()->simulator_ = Simulator::current(this);
|
| -#elif V8_TARGET_ARCH_ARM
|
| - thread_local_top()->simulator_ = Simulator::current(this);
|
| -#elif V8_TARGET_ARCH_MIPS
|
| - thread_local_top()->simulator_ = Simulator::current(this);
|
| -#endif
|
| #endif
|
| ASSERT(context() == NULL || context()->IsContext());
|
| return from + sizeof(ThreadLocalTop);
|
| @@ -1804,7 +1789,6 @@ Isolate::Isolate()
|
| function_entry_hook_(NULL),
|
| deferred_handles_head_(NULL),
|
| optimizing_compiler_thread_(NULL),
|
| - marking_thread_(NULL),
|
| sweeper_thread_(NULL),
|
| stress_deopt_count_(0) {
|
| id_ = NoBarrier_AtomicIncrement(&isolate_counter_, 1);
|
| @@ -1912,14 +1896,6 @@ void Isolate::Deinit() {
|
| delete[] sweeper_thread_;
|
| }
|
|
|
| - if (FLAG_marking_threads > 0) {
|
| - for (int i = 0; i < FLAG_marking_threads; i++) {
|
| - marking_thread_[i]->Stop();
|
| - delete marking_thread_[i];
|
| - }
|
| - delete[] marking_thread_;
|
| - }
|
| -
|
| if (FLAG_hydrogen_stats) GetHStatistics()->Print();
|
|
|
| if (FLAG_print_deopt_stress) {
|
| @@ -2346,6 +2322,7 @@ bool Isolate::Init(Deserializer* des) {
|
| DONT_TRACK_ALLOCATION_SITE, 0);
|
| stub.InitializeInterfaceDescriptor(
|
| this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray));
|
| + BinaryOpStub::InitializeForIsolate(this);
|
| CompareNilICStub::InitializeForIsolate(this);
|
| ToBooleanStub::InitializeForIsolate(this);
|
| ArrayConstructorStubBase::InstallDescriptors(this);
|
| @@ -2353,14 +2330,6 @@ bool Isolate::Init(Deserializer* des) {
|
| FastNewClosureStub::InstallDescriptors(this);
|
| }
|
|
|
| - if (FLAG_marking_threads > 0) {
|
| - marking_thread_ = new MarkingThread*[FLAG_marking_threads];
|
| - for (int i = 0; i < FLAG_marking_threads; i++) {
|
| - marking_thread_[i] = new MarkingThread(this);
|
| - marking_thread_[i]->Start();
|
| - }
|
| - }
|
| -
|
| if (FLAG_sweeper_threads > 0) {
|
| sweeper_thread_ = new SweeperThread*[FLAG_sweeper_threads];
|
| for (int i = 0; i < FLAG_sweeper_threads; i++) {
|
|
|