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

Unified Diff: src/snapshot-external.cc

Issue 848023002: Store embed-script flag as metadata into snapshot blob. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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 | « src/snapshot-common.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot-external.cc
diff --git a/src/snapshot-external.cc b/src/snapshot-external.cc
index 2fda57125220085a12ff0bf78224ab5d7ff72ec5..8f1107cb9ff3c1ad5d3832bff838cb113272b2ac 100644
--- a/src/snapshot-external.cc
+++ b/src/snapshot-external.cc
@@ -26,9 +26,7 @@ void SetSnapshotFromFile(StartupData* snapshot_blob) {
DCHECK(snapshot_blob->data);
DCHECK(snapshot_blob->raw_size > 0);
DCHECK(!external_startup_blob.data);
- // Validate snapshot blob.
- DCHECK(!Snapshot::ExtractStartupData(snapshot_blob).is_empty());
- DCHECK(!Snapshot::ExtractContextData(snapshot_blob).is_empty());
+ DCHECK(Snapshot::SnapshotIsValid());
vogelheim 2015/01/13 14:45:32 This looks buggy, or maybe I'm just not getting it
external_startup_blob = *snapshot_blob;
}
« no previous file with comments | « src/snapshot-common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698