• 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 
6 #ifndef V8_STARTUP_DATA_UTIL_H_
7 #define V8_STARTUP_DATA_UTIL_H_
8 
9 #include "include/v8.h"
10 
11 namespace v8 {
12 namespace 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 
21 void InitializeExternalStartupData(const char* directory_path);
22 
23 void 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_
30