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

Unified Diff: include/v8.h

Issue 949623006: Attach snapshot data blob to the isolate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | src/api.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 fa32ba3cdfb3cf77c803da527e480832230c591b..aa077cda239ab935d0188da30752f609be1465a4 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -92,6 +92,7 @@ class Promise;
class RawOperationDescriptor;
class Script;
class Signature;
+class StartupData;
class StackFrame;
class StackTrace;
class String;
@@ -4644,9 +4645,7 @@ class V8_EXPORT Isolate {
*/
struct CreateParams {
CreateParams()
- : entry_hook(NULL),
- code_event_handler(NULL),
- enable_serializer(false) {}
+ : entry_hook(NULL), code_event_handler(NULL), snapshot_blob(NULL) {}
/**
* The optional entry_hook allows the host application to provide the
@@ -4669,9 +4668,9 @@ class V8_EXPORT Isolate {
ResourceConstraints constraints;
/**
- * This flag currently renders the Isolate unusable.
+ * Explicitly specify a startup snapshot blob. The embedder owns the blob.
*/
- bool enable_serializer;
+ StartupData* snapshot_blob;
};
@@ -5397,7 +5396,7 @@ class V8_EXPORT V8 {
* Returns { NULL, 0 } on failure.
* The caller owns the data array in the return value.
*/
- static StartupData CreateSnapshotDataBlob(char* custom_source = NULL);
+ static StartupData CreateSnapshotDataBlob(const char* custom_source = NULL);
/**
* Adds a message listener.
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698