Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: include/v8.h

Issue 1292053002: Rework startup-data-util. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Same as Patch Set 3, but revert the "Test for all platforms" bits. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | samples/hello-world.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index fc3381042a7c42cfb1c623db136a033adf6af6d8..6930c7bfe044e29c0b0775322e2e1335b9f8001d 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -6220,6 +6220,25 @@ class V8_EXPORT V8 {
static bool InitializeICU(const char* icu_data_file = NULL);
/**
+ * Initialize the external startup data. The embedder only needs to
+ * invoke this method when external startup data was enabled in a build.
+ *
+ * If V8 was compiled with the startup data in an external file, then
+ * V8 needs to be given those external files during startup. There are
+ * three ways to do this:
+ * - InitializeExternalStartupData(const char*)
+ * This will look in the given directory for files "natives_blob.bin"
+ * and "snapshot_blob.bin" - which is what the default build calls them.
+ * - InitializeExternalStartupData(const char*, const char*)
+ * As above, but will directly use the two given file names.
+ * - Call SetNativesDataBlob, SetNativesDataBlob.
+ * This will read the blobs from the given data structures and will
+ * not perform any file IO.
+ */
+ static void InitializeExternalStartupData(const char* directory_path);
+ static void InitializeExternalStartupData(const char* natives_blob,
+ const char* snapshot_blob);
+ /**
* Sets the v8::Platform to use. This should be invoked before V8 is
* initialized.
*/
« no previous file with comments | « BUILD.gn ('k') | samples/hello-world.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698