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

Unified Diff: src/v8.cc

Issue 345903004: Split out libplatform into a separate libary (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
Index: src/v8.cc
diff --git a/src/v8.cc b/src/v8.cc
index 9a85e06a2ec7ac8b182bcf680fdc08d4926644d5..cc08d2f2bb2187b77a5d62513e75ca0425a7f439 100644
--- a/src/v8.cc
+++ b/src/v8.cc
@@ -15,9 +15,6 @@
#include "src/heap-profiler.h"
#include "src/hydrogen.h"
#include "src/isolate.h"
-#ifdef V8_USE_DEFAULT_PLATFORM
-#include "src/libplatform/default-platform.h"
-#endif
#include "src/lithium-allocator.h"
#include "src/objects.h"
#include "src/runtime-profiler.h"
@@ -41,14 +38,6 @@ bool V8::Initialize(Deserializer* des) {
if (isolate->IsDead()) return false;
if (isolate->IsInitialized()) return true;
-#ifdef V8_USE_DEFAULT_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();
-#endif
-
return isolate->Init(des);
}
@@ -62,13 +51,6 @@ void V8::TearDown() {
Isolate::GlobalTearDown();
Sampler::TearDown();
-
-#ifdef V8_USE_DEFAULT_PLATFORM
- platform::DefaultPlatform* platform =
- static_cast<platform::DefaultPlatform*>(platform_);
- platform_ = NULL;
- delete platform;
-#endif
}
@@ -94,9 +76,6 @@ void V8::InitializeOncePerProcessImpl() {
base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap);
-#ifdef V8_USE_DEFAULT_PLATFORM
- platform_ = new platform::DefaultPlatform;
-#endif
Sampler::SetUp();
CpuFeatures::Probe(false);
init_memcopy_functions();
« samples/process.cc ('K') | « src/mksnapshot.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698