blob: 7cb51e362a9010597ce2ae561472145ea7cfcfb4 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5
6#ifndef V8_STARTUP_DATA_UTIL_H_
7#define V8_STARTUP_DATA_UTIL_H_
8
9#include "include/v8.h"
10
11namespace v8 {
12namespace internal {
13
14// Helper functions to load external startup data.
15//
16// This is meant as a convenience for stand-alone binaries like d8, cctest,
17// unittest. A V8 embedder would likely either handle startup data on their
18// own or just disable the feature if they don't want to handle it at all,
19// while tools like cctest need to work in either configuration.
20
21void InitializeExternalStartupData(const char* directory_path);
22
23void InitializeExternalStartupData(const char* natives_blob,
24 const char* snapshot_blob);
25
26} // namespace internal
27} // namespace v8
28
29#endif // V8_STARTUP_DATA_UTIL_H_