c69e2eae54
- Make the API look like v8::V8::InitializeICU. (That is: A static method call, not an object to be created on the stack.) - Fix path separator on Windows, by calling base::OS::isPathSeparator. - Move into API, so that it can be called by hello-world & friends. - Actually call it from hello-world and friends. R=jochen@chromium.org BUG= Review URL: https://codereview.chromium.org/1292053002 Cr-Commit-Position: refs/heads/master@{#30174}
30 lines
913 B
C++
30 lines
913 B
C++
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
|
|
#ifndef V8_STARTUP_DATA_UTIL_H_
|
|
#define V8_STARTUP_DATA_UTIL_H_
|
|
|
|
#include "include/v8.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
|
|
// Helper functions to load external startup data.
|
|
//
|
|
// This is meant as a convenience for stand-alone binaries like d8, cctest,
|
|
// unittest. A V8 embedder would likely either handle startup data on their
|
|
// own or just disable the feature if they don't want to handle it at all,
|
|
// while tools like cctest need to work in either configuration.
|
|
|
|
void InitializeExternalStartupData(const char* directory_path);
|
|
|
|
void InitializeExternalStartupData(const char* natives_blob,
|
|
const char* snapshot_blob);
|
|
|
|
} // namespace internal
|
|
} // namespace v8
|
|
|
|
#endif // V8_STARTUP_DATA_UTIL_H_
|