Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: src/v8.cc

Issue 336313017: Move libplatform files into v8::platform namespace (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/libplatform/worker-thread.cc ('k') | test/cctest/test-libplatform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/libplatform/worker-thread.cc ('k') | test/cctest/test-libplatform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698