11cb0ef41Sopenharmony_ci// Copyright 2015 the V8 project authors. All rights reserved. 21cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be 31cb0ef41Sopenharmony_ci// found in the LICENSE file. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci#ifndef V8_INIT_STARTUP_DATA_UTIL_H_ 61cb0ef41Sopenharmony_ci#define V8_INIT_STARTUP_DATA_UTIL_H_ 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_cinamespace v8 { 91cb0ef41Sopenharmony_cinamespace internal { 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ci// Helper functions to load external startup data. 121cb0ef41Sopenharmony_ci// 131cb0ef41Sopenharmony_ci// This is meant as a convenience for stand-alone binaries like d8, cctest, 141cb0ef41Sopenharmony_ci// unittest. A V8 embedder would likely either handle startup data on their 151cb0ef41Sopenharmony_ci// own or just disable the feature if they don't want to handle it at all, 161cb0ef41Sopenharmony_ci// while tools like cctest need to work in either configuration. 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_civoid InitializeExternalStartupData(const char* directory_path); 191cb0ef41Sopenharmony_civoid InitializeExternalStartupDataFromFile(const char* snapshot_blob); 201cb0ef41Sopenharmony_ci 211cb0ef41Sopenharmony_ci} // namespace internal 221cb0ef41Sopenharmony_ci} // namespace v8 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_ci#endif // V8_INIT_STARTUP_DATA_UTIL_H_ 25