| Index: src/v8.cc
|
| diff --git a/src/v8.cc b/src/v8.cc
|
| index 394629cdda9804005099853ed18aa3ce21f69fa4..9a85e06a2ec7ac8b182bcf680fdc08d4926644d5 100644
|
| --- a/src/v8.cc
|
| +++ b/src/v8.cc
|
| @@ -42,7 +42,8 @@ bool V8::Initialize(Deserializer* des) {
|
| if (isolate->IsInitialized()) return true;
|
|
|
| #ifdef V8_USE_DEFAULT_PLATFORM
|
| - DefaultPlatform* platform = static_cast<DefaultPlatform*>(platform_);
|
| + platform::DefaultPlatform* platform =
|
| + static_cast<platform::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();
|
| @@ -63,7 +64,8 @@ void V8::TearDown() {
|
| Sampler::TearDown();
|
|
|
| #ifdef V8_USE_DEFAULT_PLATFORM
|
| - DefaultPlatform* platform = static_cast<DefaultPlatform*>(platform_);
|
| + platform::DefaultPlatform* platform =
|
| + static_cast<platform::DefaultPlatform*>(platform_);
|
| platform_ = NULL;
|
| delete platform;
|
| #endif
|
| @@ -93,7 +95,7 @@ void V8::InitializeOncePerProcessImpl() {
|
| base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap);
|
|
|
| #ifdef V8_USE_DEFAULT_PLATFORM
|
| - platform_ = new DefaultPlatform;
|
| + platform_ = new platform::DefaultPlatform;
|
| #endif
|
| Sampler::SetUp();
|
| CpuFeatures::Probe(false);
|
|
|