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

Unified Diff: gin/v8_initializer.h

Issue 1164483003: Allow startup with missing V8 snapshot file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: gin/v8_initializer.h
diff --git a/gin/v8_initializer.h b/gin/v8_initializer.h
index 0189f594f939322a7b5ec65d2f2612afa5660d4e..244101f80330481d9fc5db16d52e5e6c6475d932 100644
--- a/gin/v8_initializer.h
+++ b/gin/v8_initializer.h
@@ -33,17 +33,21 @@ class GIN_EXPORT V8Initializer {
// The offset and size arguments, if non-zero, specify the portions
// of the files to be loaded. This methods returns true on success
// (or if snapshot is already loaded), false otherwise.
- static bool LoadV8SnapshotFromFD(base::PlatformFile natives_fd,
- int64 natives_offset,
- int64 natives_size,
- base::PlatformFile snapshot_fd,
+ static bool LoadV8SnapshotFromFD(base::PlatformFile snapshot_fd,
int64 snapshot_offset,
int64 snapshot_size);
+ static bool LoadV8NativesFromFD(base::PlatformFile natives_fd,
rmcilroy 2015/06/01 14:06:31 could you add WARN_UNUSED_RESULT on this (and poss
Erik Corry Chromium.org 2015/06/02 11:18:52 See below
+ int64 natives_offset,
+ int64 natives_size);
// Load V8 snapshot from default resources. Returns true on success or
// snapshot is already loaded, false otherwise.
static bool LoadV8Snapshot();
+ // Load V8 natives source from default resources. Returns true on success or
+ // natives are already loaded, false otherwise.
+ static bool LoadV8Natives();
rmcilroy 2015/06/01 14:06:31 WARN_UNUSED_RESULT here too.
Erik Corry Chromium.org 2015/06/02 11:18:52 IT currently contains a LOG(FATAL) if it doesn't r
rmcilroy 2015/06/02 11:27:07 Right makes sense. OK, let's get rid of the return
+
// Opens the V8 snapshot data files and returns open file descriptors to these
// files in |natives_fd_out| and |snapshot_fd_out|, which can be passed to
// child processes.

Powered by Google App Engine
This is Rietveld 408576698