Index: gin/public/isolate_holder.h |
diff --git a/gin/public/isolate_holder.h b/gin/public/isolate_holder.h |
index b12734c4413c377ebcd6318b41fddd2b3ba721dd..44d1d89a7a164dc99fbeffae7fd0cc5b0909c3e2 100644 |
--- a/gin/public/isolate_holder.h |
+++ b/gin/public/isolate_holder.h |
@@ -33,7 +33,7 @@ class GIN_EXPORT IsolateHolder { |
// Should be invoked once before creating IsolateHolder instances to |
// initialize V8 and Gin. In case V8_USE_EXTERNAL_STARTUP_DATA is defined, |
// V8's initial snapshot should be loaded (by calling LoadV8Snapshot or |
- // LoadV8SnapshotFD) before calling Initialize. |
+ // LoadV8SnapshotFd) before calling Initialize. |
static void Initialize(ScriptMode mode, |
v8::ArrayBuffer::Allocator* allocator); |
@@ -51,8 +51,16 @@ class GIN_EXPORT IsolateHolder { |
// thread. |
void RemoveRunMicrotasksObserver(); |
-#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
- static bool LoadV8SnapshotFD(int natives_fd, int snapshot_fd); |
+#if defined(V8_USE_EXTERNAL_STARTUP_DATA) |
+ static const char kNativesFileName[]; |
+ static const char kSnapshotFileName[]; |
+ |
+ static bool LoadV8SnapshotFd(int natives_fd, |
+ int64 natives_offset, |
+ int64 natives_size, |
+ int snapshot_fd, |
+ int64 snapshot_offset, |
+ int64 snapshot_size); |
static bool LoadV8Snapshot(); |
#endif // V8_USE_EXTERNAL_STARTUP_DATA |
static void GetV8ExternalSnapshotData(const char** natives_data_out, |