Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index ca324603f79bdbbab5b62972c72ab84f948fb31d..340edf4db3b3de610069bb48a38e5b3044a35633 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -39,6 +39,9 @@ |
#include "heap-profiler.h" |
#include "hydrogen.h" |
#include "isolate-inl.h" |
+#ifdef V8_USE_DEFAULT_PLATFORM |
tfarina
2014/02/18 16:49:02
separate this out, like we generally do in chromiu
jochen (gone - plz use gerrit)
2014/02/18 21:39:01
in v8 the headers are sorted regardless of defines
|
+#include "libplatform/default-platform.h" |
+#endif |
#include "lithium-allocator.h" |
#include "log.h" |
#include "messages.h" |
@@ -2017,7 +2020,12 @@ bool Isolate::Init(Deserializer* des) { |
max_available_threads_ = Max(Min(CPU::NumberOfProcessorsOnline(), 4), 1); |
} |
- if (!FLAG_job_based_sweeping) { |
+ if (FLAG_job_based_sweeping) { |
+#ifdef V8_USE_DEFAULT_PLATFORM |
+ static_cast<DefaultPlatform*>(V8::GetCurrentPlatform()) |
+ ->EnsureInitialized(); |
+#endif |
+ } else { |
num_sweeper_threads_ = |
SweeperThread::NumberOfThreads(max_available_threads_); |
} |