• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
8 #include "include/v8.h"
9 
10 namespace v8 {
11 namespace internal {
12 
13 // Helper functions to load external startup data.
14 //
15 // This is meant as a convenience for stand-alone binaries like d8, cctest,
16 // unittest. A V8 embedder would likely either handle startup data on their
17 // own or just disable the feature if they don't want to handle it at all,
18 // while tools like cctest need to work in either configuration.
19 
20 void InitializeExternalStartupData(const char* directory_path);
21 void InitializeExternalStartupDataFromFile(const char* snapshot_blob);
22 
23 }  // namespace internal
24 }  // namespace v8
25 
26 #endif  // V8_INIT_STARTUP_DATA_UTIL_H_
27