Fix assertion when creating custom startup snapshots.

R=vogelheim@chromium.org

Review URL: https://codereview.chromium.org/960513002

Cr-Commit-Position: refs/heads/master@{#26850}
This commit is contained in:
yangguo 2015-02-25 05:56:01 -08:00 committed by Commit bot
parent 9da259fb1f
commit f9fd33c10f

View File

@ -149,7 +149,7 @@ v8::StartupData Snapshot::CreateSnapshotBlob(
uint32_t first_page_sizes[kNumPagedSpaces];
CalculateFirstPageSizes(metadata.embeds_script(), startup_snapshot,
CalculateFirstPageSizes(!metadata.embeds_script(), startup_snapshot,
context_snapshot, first_page_sizes);
int startup_length = startup_data.length();