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

Unified Diff: tools/parser-shell.cc

Issue 1230173002: Fixes the parser-shell by adding a dependency to StartupDataUtil. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | 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 ead7777022fd52a7ff0646b8602f2c4694edecf7..17e32ad7132e1fb953aaf48cbc3a98f6b003d42c 100644
--- a/tools/parser-shell.cc
+++ b/tools/parser-shell.cc
@@ -43,6 +43,10 @@
#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 {
@@ -146,6 +150,9 @@ 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
Encoding encoding = LATIN1;
std::vector<std::string> fnames;
std::string benchmark;
« no previous file with comments | « no previous file | tools/parser-shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698