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

Issue 1991033003: [serializer] do not copy code if snapshot is not required to be deterministic. (Closed)

Created:
4 years, 7 months ago by Yang
Modified:
4 years, 7 months ago
Reviewers:
vogelheim
CC:
v8-reviews_googlegroups.com, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[serializer] do not copy code if snapshot is not required to be deterministic. Code in V8 embeds memory addresses. Upon deserialization, those addresses will be updated anyways, so it's not important whether the serializer records those addresses. In order to have a deterministic build, we create a copy of the code and null out memory addresses and serialize this copy. For the code cache, we do not care about determinism. By avoiding the copy we can save some time spent on serialization. For the mandreel script in Octane, this reduces the serialization time from ~85ms to ~75ms. R=vogelheim@chromium.org Committed: https://crrev.com/5a88c04741476fbb97f0adbdb630a9215aad0ca1 Cr-Commit-Position: refs/heads/master@{#36350}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -17 lines) Patch
M src/snapshot/serializer.cc View 1 chunk +19 lines, -17 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Yang
4 years, 7 months ago (2016-05-19 05:54:31 UTC) #1
vogelheim
lgtm Wow, that's >10% only for that copy!!
4 years, 7 months ago (2016-05-19 06:58:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991033003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1991033003/1
4 years, 7 months ago (2016-05-19 07:19:45 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-19 08:15:08 UTC) #7
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 08:18:10 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5a88c04741476fbb97f0adbdb630a9215aad0ca1
Cr-Commit-Position: refs/heads/master@{#36350}

Powered by Google App Engine
This is Rietveld 408576698