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

Unified Diff: src/mksnapshot.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/mksnapshot.cc
diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc
index 69306e14dc5ee79b9d72b7e7b7a0a6e154d7293f..03c693568eac85357099ad1927cd1feb3c5eace2 100644
--- a/src/mksnapshot.cc
+++ b/src/mksnapshot.cc
@@ -11,6 +11,7 @@
#include "src/v8.h"
+#include "include/libplatform/libplatform.h"
#include "src/assembler.h"
#include "src/base/platform/platform.h"
#include "src/bootstrapper.h"
@@ -317,6 +318,9 @@ void DumpException(Handle<Message> message) {
int main(int argc, char** argv) {
V8::InitializeICU();
+ v8::Platform* platform =
+ v8::platform::CreateDefaultPlatform(base::OS::NumberOfProcessorsOnline());
+ v8::V8::InitializePlatform(platform);
i::Isolate::SetCrashIfDefaultIsolateInitialized();
i::CpuFeatures::Probe(true);
@@ -441,5 +445,7 @@ int main(int argc, char** argv) {
isolate->Dispose();
V8::Dispose();
+ V8::ShutdownPlatform();
+ delete platform;
return 0;
}
« samples/process.cc ('K') | « src/libplatform/default-platform.cc ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698