Commit 3c7d5820 authored by epertoso's avatar epertoso Committed by Commit bot

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

Review URL: https://codereview.chromium.org/1230173002

Cr-Commit-Position: refs/heads/master@{#29566}
parent a5616e5d
......@@ -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;
......
......@@ -57,6 +57,8 @@
'sources': [
'parser-shell.cc',
'shell-utils.h',
'../src/startup-data-util.h',
'../src/startup-data-util.cc',
],
},
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment