v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
startup-data-util.h
Go to the documentation of this file.
1// 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#ifndef V8_INIT_STARTUP_DATA_UTIL_H_
6#define V8_INIT_STARTUP_DATA_UTIL_H_
7
8namespace v8 {
9namespace internal {
10
11// Helper functions to load external startup data.
12//
13// This is meant as a convenience for stand-alone binaries like d8, cctest,
14// unittest. A V8 embedder would likely either handle startup data on their
15// own or just disable the feature if they don't want to handle it at all,
16// while tools like cctest need to work in either configuration.
17
18void InitializeExternalStartupData(const char* directory_path);
19void InitializeExternalStartupDataFromFile(const char* snapshot_blob);
20
21} // namespace internal
22} // namespace v8
23
24#endif // V8_INIT_STARTUP_DATA_UTIL_H_
void InitializeExternalStartupData(const char *directory_path)
void InitializeExternalStartupDataFromFile(const char *snapshot_blob)