Reviewers: jochen,

Description:
Fixes the parser-shell by adding a dependency to StartupDataUtil.

Please review this at https://codereview.chromium.org/1230173002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+9, -0 lines):
  M tools/parser-shell.cc
  M tools/parser-shell.gyp


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;
Index: tools/parser-shell.gyp
diff --git a/tools/parser-shell.gyp b/tools/parser-shell.gyp
index 77ed1eb246055f32ca7b9e06cd4f8305b699b675..9f66a8013325820d8cdee33a6e2a32a892c0b8cf 100644
--- a/tools/parser-shell.gyp
+++ b/tools/parser-shell.gyp
@@ -57,6 +57,8 @@
       'sources': [
         'parser-shell.cc',
         'shell-utils.h',
+        '../src/startup-data-util.h',
+        '../src/startup-data-util.cc',
       ],
     },
   ],


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to