projects
/
platform
/
upstream
/
v8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa32d46
)
External snapshot: allow empty snapshot for external snapshot.
author
yangguo
<yangguo@chromium.org>
Fri, 12 Jun 2015 09:36:58 +0000
(
02:36
-0700)
committer
Commit bot
<commit-bot@chromium.org>
Fri, 12 Jun 2015 09:37:11 +0000
(09:37 +0000)
R=vogelheim@chromium.org
Review URL: https://codereview.chromium.org/
1180043003
Cr-Commit-Position: refs/heads/master@{#28989}
src/snapshot/snapshot.h
patch
|
blob
|
history
diff --git
a/src/snapshot/snapshot.h
b/src/snapshot/snapshot.h
index
371afef
..
7f89213
100644
(file)
--- a/
src/snapshot/snapshot.h
+++ b/
src/snapshot/snapshot.h
@@
-38,7
+38,8
@@
class Snapshot : public AllStatic {
static bool HaveASnapshotToStartFrom(Isolate* isolate) {
// Do not use snapshots if the isolate is used to create snapshots.
- return isolate->snapshot_blob() != NULL;
+ return isolate->snapshot_blob() != NULL &&
+ isolate->snapshot_blob()->data != NULL;
}
static bool EmbedsScript(Isolate* isolate);