| Index: src/d8.cc
|
| diff --git a/src/d8.cc b/src/d8.cc
|
| index 7db6f3ed9e442081528e05140bd25b8911e26cb6..45bf33167fd0149cf19e869d651fbf2f32b088b2 100644
|
| --- a/src/d8.cc
|
| +++ b/src/d8.cc
|
| @@ -50,10 +50,6 @@
|
| #include "src/v8.h"
|
| #endif // !V8_SHARED
|
|
|
| -#ifdef V8_USE_EXTERNAL_STARTUP_DATA
|
| -#include "src/startup-data-util.h"
|
| -#endif // V8_USE_EXTERNAL_STARTUP_DATA
|
| -
|
| #if !defined(_WIN32) && !defined(_WIN64)
|
| #include <unistd.h> // NOLINT
|
| #else
|
| @@ -2316,10 +2312,12 @@ int Shell::Main(int argc, char* argv[]) {
|
| g_platform = v8::platform::CreateDefaultPlatform();
|
| v8::V8::InitializePlatform(g_platform);
|
| v8::V8::Initialize();
|
| -#ifdef V8_USE_EXTERNAL_STARTUP_DATA
|
| - v8::StartupDataHandler startup_data(argv[0], options.natives_blob,
|
| - options.snapshot_blob);
|
| -#endif
|
| + if (options.natives_blob || options.snapshot_blob) {
|
| + v8::V8::InitializeExternalStartupData(options.natives_blob,
|
| + options.snapshot_blob);
|
| + } else {
|
| + v8::V8::InitializeExternalStartupData(argv[0]);
|
| + }
|
| SetFlagsFromString("--trace-hydrogen-file=hydrogen.cfg");
|
| SetFlagsFromString("--trace-turbo-cfg-file=turbo.cfg");
|
| SetFlagsFromString("--redirect-code-traces-to=code.asm");
|
|
|