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

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed)

Created:
5 years, 1 month ago by Camillo Bruni
Modified:
5 years, 1 month ago
CC:
neis, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap LOG=N BUG=v8:1543 Committed: https://crrev.com/24e058d0ede601c683b1128419c9f7775d546af8 Cr-Commit-Position: refs/heads/master@{#31983}

Patch Set 1 #

Total comments: 1

Patch Set 2 : more #

Patch Set 3 : Object::GetPrototype Proxy support #

Patch Set 4 : fixing and skipping some proxy tests #

Patch Set 5 : fixing tests #

Patch Set 6 : whitespace #

Patch Set 7 : adding proxy trap strings #

Total comments: 18

Patch Set 8 : adding more tests #

Patch Set 9 : skipping tests on ignition for now #

Total comments: 2

Patch Set 10 : fixing printing #

Patch Set 11 : using one friend less #

Total comments: 14

Patch Set 12 : merging with master #

Patch Set 13 : merging with master #

Patch Set 14 : removing unreachable code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+564 lines, -355 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -2 lines 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -3 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +111 lines, -99 lines 0 comments Download
M src/js/messages.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/js/proxy.js View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -15 lines 0 comments Download
M src/messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +14 lines, -10 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +81 lines, -6 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -6 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -4 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M src/runtime/runtime-proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +25 lines, -5 lines 0 comments Download
M test/mjsunit/es6/iteration-semantics.js View 1 2 3 4 5 6 7 1 chunk +27 lines, -26 lines 0 comments Download
M test/mjsunit/es6/regress/regress-cr493566.js View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M test/mjsunit/for-in-opt.js View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M test/mjsunit/harmony/proxies.js View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +82 lines, -88 lines 0 comments Download
M test/mjsunit/harmony/proxies-example-membrane.js View 1 2 3 4 5 6 chunks +6 lines, -6 lines 0 comments Download
M test/mjsunit/harmony/proxies-for.js View 1 2 3 4 4 chunks +8 lines, -6 lines 0 comments Download
M test/mjsunit/harmony/proxies-hash.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/proxies-json.js View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M test/mjsunit/harmony/proxies-symbols.js View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M test/mjsunit/harmony/proxies-with.js View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M test/mjsunit/harmony/proxies-with-unscopables.js View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
A test/mjsunit/harmony/proxy/proxy-getPrototypeOf.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +39 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/reflect-enumerate-opt.js View 1 2 3 4 5 6 7 1 chunk +27 lines, -26 lines 0 comments Download
M test/mjsunit/harmony/regress/regress-2219.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/regress/regress-2225.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/regress/regress-405844.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -9 lines 0 comments Download
M test/mjsunit/harmony/regress/regress-crbug-448730.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/regress/regress-crbug-461520.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/regress/regress-lookup-transition.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +26 lines, -0 lines 0 comments Download
M test/mjsunit/readonly.js View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-crbug-493568.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-crbug-505907.js View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-crbug-506956.js View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M test/mjsunit/strong/load-proxy.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 43 (19 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417063011/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417063011/1
5 years, 1 month ago (2015-11-09 12:58:38 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_rel/builds/11586)
5 years, 1 month ago (2015-11-09 13:09:11 UTC) #4
Camillo Bruni
PTAL For now I skip the membrane example. The main issues is that we try ...
5 years, 1 month ago (2015-11-11 12:38:21 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417063011/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417063011/120001
5 years, 1 month ago (2015-11-11 13:39:58 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_dbg on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_dbg/builds/10632)
5 years, 1 month ago (2015-11-11 14:10:30 UTC) #10
Jakob Kummerow
Looking good, bunch o' comments, mostly nits. And you probably want to take a look ...
5 years, 1 month ago (2015-11-12 12:04:24 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417063011/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417063011/140001
5 years, 1 month ago (2015-11-12 15:50:47 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417063011/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417063011/160001
5 years, 1 month ago (2015-11-12 16:20:03 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417063011/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417063011/200001
5 years, 1 month ago (2015-11-12 16:34:38 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-12 16:57:39 UTC) #19
rossberg
Looks mostly okay, but I would prefer waiting with landing this CL until Georg has ...
5 years, 1 month ago (2015-11-12 17:04:39 UTC) #20
Toon Verwaest
https://codereview.chromium.org/1417063011/diff/200001/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1417063011/diff/200001/src/builtins.cc#newcode1581 src/builtins.cc:1581: Object::GetPrototype(isolate, target)); On 2015/11/12 17:04:39, rossberg wrote: > That ...
5 years, 1 month ago (2015-11-12 19:39:05 UTC) #22
Camillo Bruni
thanks for the feedback. I'll merge tomorrow after Georg has landed his CL. https://codereview.chromium.org/1417063011/diff/120001/src/js/proxy.js File ...
5 years, 1 month ago (2015-11-12 20:20:56 UTC) #24
neis
https://codereview.chromium.org/1417063011/diff/200001/src/js/proxy.js File src/js/proxy.js (right): https://codereview.chromium.org/1417063011/diff/200001/src/js/proxy.js#newcode190 src/js/proxy.js:190: %FunctionSetPrototype(GlobalProxy, new GlobalObject()); "Proxy" shouldn't have a "prototype" property. ...
5 years, 1 month ago (2015-11-12 23:22:51 UTC) #26
Jakob Kummerow
LGTM with two more nits. I'm still a bit torn on the tests issue. I ...
5 years, 1 month ago (2015-11-13 10:47:51 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417063011/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417063011/260001
5 years, 1 month ago (2015-11-13 13:39:27 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-13 13:59:03 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417063011/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417063011/260001
5 years, 1 month ago (2015-11-13 13:59:47 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/7705)
5 years, 1 month ago (2015-11-13 14:02:37 UTC) #36
Camillo Bruni
PTAL - heap.h for adding internalized strings for all the Proxy traps.
5 years, 1 month ago (2015-11-13 14:06:11 UTC) #38
Michael Starzinger
LGTM (rubber-stamped "heap", didn't look at the rest at all).
5 years, 1 month ago (2015-11-13 14:12:14 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417063011/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417063011/260001
5 years, 1 month ago (2015-11-13 14:12:54 UTC) #41
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 1 month ago (2015-11-13 14:13:55 UTC) #42
commit-bot: I haz the power
5 years, 1 month ago (2015-11-14 23:21:32 UTC) #43
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/24e058d0ede601c683b1128419c9f7775d546af8
Cr-Commit-Position: refs/heads/master@{#31983}

Powered by Google App Engine
This is Rietveld 408576698