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

Issue 2830093002: [builtins] DeleteProperty: Handle last-added fast properties (Closed)

Created:
3 years, 8 months ago by Jakob Kummerow
Modified:
3 years, 8 months ago
Reviewers:
Igor Sheludko
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] DeleteProperty: Handle last-added fast properties In general, deleting a property from a fast-properties object requires transitioning the object to dictionary mode. However, when the most-recently-added property is deleted, we can simply roll back the last map transition that the object went through. This is a performance experiment: it should make things faster, but if it turns out to have more negative than positive impact, we will have to revert it. TBR=bmeurer@chromium.org (just adding a comment) Review-Url: https://codereview.chromium.org/2830093002 Cr-Commit-Position: refs/heads/master@{#44799} Committed: https://chromium.googlesource.com/v8/v8/+/98acfb36e1acf2ab52ab6b6439eb6356c83dcda6

Patch Set 1 #

Total comments: 8

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -16 lines) Patch
M src/builtins/builtins-internal-gen.cc View 1 2 chunks +81 lines, -2 lines 0 comments Download
M src/compiler/js-native-context-specialization.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M src/ic/accessor-assembler.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ic/accessor-assembler.cc View 1 4 chunks +19 lines, -10 lines 0 comments Download
M src/objects.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M test/mjsunit/dictionary-properties.js View 2 chunks +2 lines, -0 lines 0 comments Download
M test/mjsunit/regress/regress-252797.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
Jakob Kummerow
PTAL.
3 years, 8 months ago (2017-04-20 18:21:25 UTC) #2
Igor Sheludko
lgtm with nits: https://codereview.chromium.org/2830093002/diff/1/src/builtins/builtins-internal-gen.cc File src/builtins/builtins-internal-gen.cc (right): https://codereview.chromium.org/2830093002/diff/1/src/builtins/builtins-internal-gen.cc#newcode206 src/builtins/builtins-internal-gen.cc:206: // (and not e.g. an elements ...
3 years, 8 months ago (2017-04-21 14:17:50 UTC) #3
Igor Sheludko
https://codereview.chromium.org/2830093002/diff/1/src/builtins/builtins-internal-gen.cc File src/builtins/builtins-internal-gen.cc (right): https://codereview.chromium.org/2830093002/diff/1/src/builtins/builtins-internal-gen.cc#newcode235 src/builtins/builtins-internal-gen.cc:235: StoreObjectField(receiver, field_offset, filler); ... and here.
3 years, 8 months ago (2017-04-21 14:20:49 UTC) #4
Jakob Kummerow
Thanks for the review! All comments addressed. https://codereview.chromium.org/2830093002/diff/1/src/builtins/builtins-internal-gen.cc File src/builtins/builtins-internal-gen.cc (right): https://codereview.chromium.org/2830093002/diff/1/src/builtins/builtins-internal-gen.cc#newcode206 src/builtins/builtins-internal-gen.cc:206: // (and ...
3 years, 8 months ago (2017-04-21 17:49:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2830093002/20001
3 years, 8 months ago (2017-04-24 12:44:54 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/39626)
3 years, 8 months ago (2017-04-24 12:47:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2830093002/20001
3 years, 8 months ago (2017-04-24 13:22:46 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/98acfb36e1acf2ab52ab6b6439eb6356c83dcda6
3 years, 8 months ago (2017-04-24 13:27:49 UTC) #20
Michael Achenbach
3 years, 8 months ago (2017-04-24 14:52:38 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2843473002/ by machenbach@chromium.org.

The reason for reverting is: Breaks: 
https://build.chromium.org/p/client.v8/builders/V8%20Mac%20GC%20Stress/builds...
and
https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20gc%20stress/....

Powered by Google App Engine
This is Rietveld 408576698