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 namespace v8 { 9 namespace 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 18 void InitializeExternalStartupData(const char* directory_path); 19 void InitializeExternalStartupDataFromFile(const char* snapshot_blob); 20 21 } // namespace internal 22 } // namespace v8 23 24 #endif // V8_INIT_STARTUP_DATA_UTIL_H_ 25