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

Unified Diff: src/isolate.h

Issue 1049383004: Fix external-snapshot startup when snapshot is missing, but natives source is available (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 80c3daea746f6c6704c88ef58386cd469b4dacc8..e8576f5940d599b30617984b46342c1cffbc1dc7 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -986,7 +986,9 @@ class Isolate {
}
bool serializer_enabled() const { return serializer_enabled_; }
- bool snapshot_available() const { return snapshot_blob_ != NULL; }
+ bool snapshot_available() const {
+ return snapshot_blob_ != NULL && snapshot_blob_->raw_size != 0;
vogelheim 2015/04/01 17:02:13 When does this happen? I'm a bit surprised. I don
Erik Corry 2015/04/01 17:07:29 This isn't the embedder giving us an empty snapsho
vogelheim 2015/04/01 17:21:09 Oh. :-( I guess it shouldn't do that; but since i
+ }
bool IsDead() { return has_fatal_error_; }
void SignalFatalError() { has_fatal_error_ = true; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698