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

Unified Diff: tools/lexer-shell.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: tools/lexer-shell.cc
diff --git a/tools/lexer-shell.cc b/tools/lexer-shell.cc
index 276a47315fe9b93ae29f383ef6e23821439ea225..ae3dbd2745d5a6bf7f0090eb4327fad4bd2d6f29 100644
--- a/tools/lexer-shell.cc
+++ b/tools/lexer-shell.cc
@@ -33,6 +33,7 @@
#include <vector>
#include "src/v8.h"
+#include "include/libplatform/libplatform.h"
#include "src/api.h"
#include "src/base/platform/platform.h"
#include "src/messages.h"
@@ -180,6 +181,9 @@ v8::base::TimeDelta ProcessFile(
int main(int argc, char* argv[]) {
v8::V8::InitializeICU();
+ v8::Platform* platform = v8::platform::CreateDefaultPlatform(
+ v8::base::OS::NumberOfProcessorsOnline());
+ v8::V8::InitializePlatform(platform);
v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
Encoding encoding = LATIN1;
bool print_tokens = false;
@@ -226,5 +230,7 @@ int main(int argc, char* argv[]) {
}
}
v8::V8::Dispose();
+ v8::V8::ShutdownPlatform();
+ delete platform;
return 0;
}
« samples/process.cc ('K') | « tools/gyp/v8.gyp ('k') | tools/lexer-shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698