Index: src/v8.cc |
diff --git a/src/v8.cc b/src/v8.cc |
index 004a33946148cc2a4f9c71591c5463606726d348..e1457fcae9a5289d850a7255c7d6f0cfd7c8ff92 100644 |
--- a/src/v8.cc |
+++ b/src/v8.cc |
@@ -32,13 +32,13 @@ |
#include "elements.h" |
#include "bootstrapper.h" |
#include "debug.h" |
-#ifdef V8_USE_DEFAULT_PLATFORM |
-#include "default-platform.h" |
-#endif |
#include "deoptimizer.h" |
#include "frames.h" |
#include "heap-profiler.h" |
#include "hydrogen.h" |
+#ifdef V8_USE_DEFAULT_PLATFORM |
+#include "libplatform/default-platform.h" |
+#endif |
#include "lithium-allocator.h" |
#include "objects.h" |
#include "once.h" |
@@ -79,6 +79,11 @@ bool V8::Initialize(Deserializer* des) { |
if (isolate->IsDead()) return false; |
if (isolate->IsInitialized()) return true; |
+#ifdef V8_USE_DEFAULT_PLATFORM |
+ DefaultPlatform* platform = static_cast<DefaultPlatform*>(platform_); |
+ platform->SetThreadPoolSize(isolate->max_available_threads()); |
+#endif |
+ |
return isolate->Init(des); |
} |