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

Issue 1156573002: [strong] Implement per-object restrictions behaviour of delete operator (Closed)

Created:
5 years, 7 months ago by conradw
Modified:
5 years, 6 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[strong] Implement per-object restrictions behaviour of delete operator Implements the strong mode proposal's restrictions on the behaviour of the delete operator for strong objects. Setting the strong bit is still wip, so this change will only affect those objects that have the bit correctly set. The tests reflect this, and will be expanded as more objects can be marked as strong. Attempt 2, last version did not work with API. BUG=v8:3956 LOG=N Committed: https://crrev.com/b14305c1617eda1bcc59e2b1a9bbb0e7c4e55f82 Cr-Commit-Position: refs/heads/master@{#28724}

Patch Set 1 #

Patch Set 2 : actually invoke main test function #

Patch Set 3 : trim linebreaks #

Total comments: 12

Patch Set 4 : cl feedback #

Total comments: 6

Patch Set 5 : cl feedback, rebase, and fixed the tests, were completely broken #

Patch Set 6 : Fix edge case with elements, tests more exhaustive, rebase was needed #

Patch Set 7 : remove print #

Patch Set 8 : move redundant delete #

Total comments: 8

Patch Set 9 : cl feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -8 lines) Patch
M src/elements.cc View 1 2 3 4 5 6 7 8 3 chunks +25 lines, -6 lines 0 comments Download
M src/messages.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 1 chunk +9 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
A test/mjsunit/strong/object-delete.js View 1 2 3 4 5 6 7 8 1 chunk +255 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
conradw
PTAL
5 years, 7 months ago (2015-05-21 22:48:58 UTC) #2
rossberg
https://codereview.chromium.org/1156573002/diff/40001/src/messages.h File src/messages.h (right): https://codereview.chromium.org/1156573002/diff/40001/src/messages.h#newcode229 src/messages.h:229: T(StrongDeleteProperty, \ Perhaps we should stylise strong object error ...
5 years, 7 months ago (2015-05-22 11:34:51 UTC) #3
conradw
https://codereview.chromium.org/1156573002/diff/40001/src/messages.h File src/messages.h (right): https://codereview.chromium.org/1156573002/diff/40001/src/messages.h#newcode229 src/messages.h:229: T(StrongDeleteProperty, \ On 2015/05/22 11:34:50, rossberg wrote: > Perhaps ...
5 years, 7 months ago (2015-05-22 13:37:57 UTC) #4
rossberg
https://codereview.chromium.org/1156573002/diff/60001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/1156573002/diff/60001/src/elements.cc#newcode1405 src/elements.cc:1405: dictionary, entry, obj->map()->is_strong()); Do we have to pass down ...
5 years, 7 months ago (2015-05-22 14:01:26 UTC) #5
conradw
https://codereview.chromium.org/1156573002/diff/60001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/1156573002/diff/60001/src/elements.cc#newcode1405 src/elements.cc:1405: dictionary, entry, obj->map()->is_strong()); On 2015/05/22 14:01:26, rossberg wrote: > ...
5 years, 7 months ago (2015-05-27 18:09:33 UTC) #6
conradw
On 2015/05/27 18:09:33, conradw wrote: > https://codereview.chromium.org/1156573002/diff/60001/src/elements.cc > File src/elements.cc (right): > > https://codereview.chromium.org/1156573002/diff/60001/src/elements.cc#newcode1405 > ...
5 years, 7 months ago (2015-05-27 18:11:31 UTC) #7
arv (Not doing code reviews)
LGTM Just a few style nits. If Toon is around you should probably have him ...
5 years, 6 months ago (2015-05-28 15:46:17 UTC) #8
conradw
https://codereview.chromium.org/1156573002/diff/140001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/1156573002/diff/140001/src/elements.cc#newcode940 src/elements.cc:940: if (obj->map()->is_strong() && !backing_store->is_the_hole(key)) { On 2015/05/28 15:46:17, arv ...
5 years, 6 months ago (2015-05-28 16:36:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156573002/160001
5 years, 6 months ago (2015-06-01 10:57:27 UTC) #13
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 6 months ago (2015-06-01 11:39:06 UTC) #14
commit-bot: I haz the power
5 years, 6 months ago (2015-06-01 11:39:26 UTC) #15
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b14305c1617eda1bcc59e2b1a9bbb0e7c4e55f82
Cr-Commit-Position: refs/heads/master@{#28724}

Powered by Google App Engine
This is Rietveld 408576698