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

Unified Diff: tools/parser-shell.cc

Issue 1292053002: Rework startup-data-util. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Same as Patch Set 3, but revert the "Test for all platforms" bits. Created 5 years, 4 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 | « tools/gyp/v8.gyp ('k') | tools/parser-shell.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/parser-shell.cc
diff --git a/tools/parser-shell.cc b/tools/parser-shell.cc
index 17e32ad7132e1fb953aaf48cbc3a98f6b003d42c..da874595de4bb1c4cfa8be18bb5b7b747b3a015a 100644
--- a/tools/parser-shell.cc
+++ b/tools/parser-shell.cc
@@ -43,10 +43,6 @@
#include "src/preparse-data.h"
#include "src/preparser.h"
-#ifdef V8_USE_EXTERNAL_STARTUP_DATA
-#include "src/startup-data-util.h"
-#endif // V8_USE_EXTERNAL_STARTUP_DATA
-
using namespace v8::internal;
class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
@@ -150,9 +146,8 @@ int main(int argc, char* argv[]) {
v8::Platform* platform = v8::platform::CreateDefaultPlatform();
v8::V8::InitializePlatform(platform);
v8::V8::Initialize();
-#ifdef V8_USE_EXTERNAL_STARTUP_DATA
- v8::StartupDataHandler startup_data(argv[0], NULL, NULL);
-#endif // V8_USE_EXTERNAL_STARTUP_DATA
+ v8::V8::InitializeExternalStartupData(argv[0]);
+
Encoding encoding = LATIN1;
std::vector<std::string> fnames;
std::string benchmark;
« no previous file with comments | « tools/gyp/v8.gyp ('k') | tools/parser-shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698