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

Issue 1142393003: [strong] Implement per-object restrictions behaviour of property freezing (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 property freezing Implements the strong mode proposal's restrictions on changing a strong object's writable, non-configurable property to non-writable. 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. BUG=v8:3956 LOG=N Committed: https://crrev.com/6edc3e317912d8ea66bdfc031b06755404e83956 Cr-Commit-Position: refs/heads/master@{#28698}

Patch Set 1 #

Patch Set 2 : fix test, improve error message #

Total comments: 20

Patch Set 3 : cl feedback #

Total comments: 2

Patch Set 4 : fix Object.freeze #

Total comments: 6

Patch Set 5 : cl feedback #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -8 lines) Patch
M src/messages.h View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M src/v8natives.js View 1 2 3 4 5 2 chunks +15 lines, -7 lines 0 comments Download
A test/mjsunit/strong/object-freeze-property.js View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
conradw
PTAL
5 years, 7 months ago (2015-05-21 22:49:25 UTC) #2
conradw
On 2015/05/21 22:49:25, conradw wrote: > PTAL Actually I think this might be broken just ...
5 years, 7 months ago (2015-05-21 23:09:25 UTC) #3
conradw
On 2015/05/21 23:09:25, conradw wrote: > On 2015/05/21 22:49:25, conradw wrote: > > PTAL > ...
5 years, 7 months ago (2015-05-22 10:51:10 UTC) #4
conradw
On 2015/05/21 23:09:25, conradw wrote: > On 2015/05/21 22:49:25, conradw wrote: > > PTAL > ...
5 years, 7 months ago (2015-05-22 10:51:11 UTC) #5
rossberg
lgtm https://codereview.chromium.org/1142393003/diff/20001/src/messages.h File src/messages.h (right): https://codereview.chromium.org/1142393003/diff/20001/src/messages.h#newcode231 src/messages.h:231: "Cannot redefine non-configurable property '%' of strong object ...
5 years, 7 months ago (2015-05-22 13:10:29 UTC) #6
conradw
https://codereview.chromium.org/1142393003/diff/20001/src/messages.h File src/messages.h (right): https://codereview.chromium.org/1142393003/diff/20001/src/messages.h#newcode231 src/messages.h:231: "Cannot redefine non-configurable property '%' of strong object % ...
5 years, 7 months ago (2015-05-22 14:07:08 UTC) #7
rossberg
https://codereview.chromium.org/1142393003/diff/20001/test/mjsunit/strong/object-freeze-property.js File test/mjsunit/strong/object-freeze-property.js (right): https://codereview.chromium.org/1142393003/diff/20001/test/mjsunit/strong/object-freeze-property.js#newcode33 test/mjsunit/strong/object-freeze-property.js:33: Object.defineProperty(o, "foo", { enumerable:true, writable:true }); On 2015/05/22 14:07:08, ...
5 years, 7 months ago (2015-05-22 14:15:29 UTC) #8
conradw
For the Object.freeze fix, not confident that forcing strong objects to always take the slow ...
5 years, 7 months ago (2015-05-27 18:15:45 UTC) #9
arv (Not doing code reviews)
LGTM It is not clear to me why the fast path does not work? Can ...
5 years, 6 months ago (2015-05-28 15:51:51 UTC) #10
conradw
Just now, the fast path assumes you never throw, and you don't care much about ...
5 years, 6 months ago (2015-05-28 17:00:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1142393003/100001
5 years, 6 months ago (2015-05-29 11:24:33 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 6 months ago (2015-05-29 11:33:21 UTC) #15
commit-bot: I haz the power
5 years, 6 months ago (2015-05-29 11:33:41 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6edc3e317912d8ea66bdfc031b06755404e83956
Cr-Commit-Position: refs/heads/master@{#28698}

Powered by Google App Engine
This is Rietveld 408576698