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

Issue 1530293004: [proxies] Better print for proxies in d8 (Closed)

Created:
5 years ago by Camillo Bruni
Modified:
5 years ago
Reviewers:
caitp (gmail), neis, Yang
CC:
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

[proxies] Better print for proxies in d8 Function proxies would not be printed so far since they ended up in Function.prototype.toString which only works with Function as a receiver but no Proxy. Additionally added support for more gracefully dealing with recursive __proto__ structures introduced by proxies. drive-by-fix: use IS_PROXY if possible in .js files. BUG=v8:1543 LOG=n Committed: https://crrev.com/8bfb7189a3472bc9d0820a1bd4534eaaf78ff847 Cr-Commit-Position: refs/heads/master@{#32985} Committed: https://crrev.com/b7ff2bd5cdfdd22cbfaa510e1c42e70f4ea1d8a3 Cr-Commit-Position: refs/heads/master@{#33010}

Patch Set 1 #

Patch Set 2 : adding macro and fixing printing for infinite __proto__ proxies #

Total comments: 1

Patch Set 3 : fixing recursive __proto__ printing #

Patch Set 4 : using IS_PROXY everywhere #

Patch Set 5 : removing unused helper #

Patch Set 6 : merge with master #

Patch Set 7 : do not expose intrinsics directly #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -37 lines) Patch
M src/d8.js View 1 2 3 4 5 6 2 chunks +27 lines, -1 line 1 comment Download
M src/js/collection.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/js/json.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/js/macros.py View 1 2 3 4 5 1 chunk +24 lines, -23 lines 0 comments Download
M src/js/messages.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/js/object-observe.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/js/proxy.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/js/v8natives.js View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/runtime/runtime-proxy.cc View 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (20 generated)
Camillo Bruni
PTAL
5 years ago (2015-12-17 09:47:23 UTC) #2
Camillo Bruni
https://codereview.chromium.org/1530293004/diff/20001/src/js/macros.py File src/js/macros.py (right): https://codereview.chromium.org/1530293004/diff/20001/src/js/macros.py#newcode122 src/js/macros.py:122: macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet'); I sorted the ...
5 years ago (2015-12-17 10:43:08 UTC) #3
neis
On 2015/12/17 at 10:43:08, cbruni wrote: > https://codereview.chromium.org/1530293004/diff/20001/src/js/macros.py > File src/js/macros.py (right): > > https://codereview.chromium.org/1530293004/diff/20001/src/js/macros.py#newcode122 ...
5 years ago (2015-12-17 11:45:19 UTC) #4
Camillo Bruni
PTAL
5 years ago (2015-12-17 14:04:16 UTC) #5
neis
On 2015/12/17 14:04:16, cbruni wrote: > PTAL Great, thanks! lgtm
5 years ago (2015-12-17 14:07:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530293004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530293004/80001
5 years ago (2015-12-17 14:08:50 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/13391)
5 years ago (2015-12-17 14:19:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530293004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530293004/100001
5 years ago (2015-12-21 09:28:11 UTC) #15
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/9165)
5 years ago (2015-12-21 09:30:59 UTC) #17
Camillo Bruni
yang: PTAL (need rubberstamp)
5 years ago (2015-12-21 10:05:05 UTC) #19
Yang
On 2015/12/21 10:05:05, cbruni wrote: > yang: PTAL (need rubberstamp) rubberstamp lgtm.
5 years ago (2015-12-21 10:13:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530293004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530293004/100001
5 years ago (2015-12-21 10:38:37 UTC) #22
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/9171)
5 years ago (2015-12-21 10:40:52 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530293004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530293004/100001
5 years ago (2015-12-21 12:46:03 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-21 12:47:21 UTC) #28
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/8bfb7189a3472bc9d0820a1bd4534eaaf78ff847 Cr-Commit-Position: refs/heads/master@{#32985}
5 years ago (2015-12-21 12:47:50 UTC) #30
Dan Ehrenberg
With this patch, I seem to need to pass --allow-natives-syntax to d8 to get it ...
5 years ago (2015-12-22 01:26:10 UTC) #31
caitp (gmail)
On 2015/12/22 01:26:10, Dan Ehrenberg wrote: > With this patch, I seem to need to ...
5 years ago (2015-12-22 04:13:58 UTC) #32
Camillo Bruni
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1543803002/ by cbruni@chromium.org. ...
5 years ago (2015-12-22 08:57:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530293004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530293004/140001
5 years ago (2015-12-22 13:16:48 UTC) #38
caitp (gmail)
https://codereview.chromium.org/1530293004/diff/140001/src/d8.js File src/d8.js (right): https://codereview.chromium.org/1530293004/diff/140001/src/d8.js#newcode11 src/d8.js:11: // Hacky solution to circumvent forcing --allow-natives-syntax for d8 ...
5 years ago (2015-12-22 13:21:10 UTC) #40
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years ago (2015-12-22 13:49:27 UTC) #41
commit-bot: I haz the power
5 years ago (2015-12-22 13:50:24 UTC) #43
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b7ff2bd5cdfdd22cbfaa510e1c42e70f4ea1d8a3
Cr-Commit-Position: refs/heads/master@{#33010}

Powered by Google App Engine
This is Rietveld 408576698