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

Issue 2488193003: Generate inferred names for es6 class functions (Closed)

Created:
4 years, 1 month ago by luoe
Modified:
4 years, 1 month ago
CC:
devtools-reviews_chromium.org, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Generate inferred names for es6 class functions Inferred names are currently generated for FunctionLiterals but not generated for ClassLiterals. Without them, DevTools does not have enough information to make descriptive descriptions. E.g. var x = {y: class{}}; var a = new x.y(); console.log(a); This shows "Object{}" when it could be more descriptive "x.y {}" BUG=v8:5621 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/e80cfa000b5be9ee92b9fd95ebe63cb2da63c553 Cr-Commit-Position: refs/heads/master@{#41013}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix test expectation #

Total comments: 2

Patch Set 3 : Remove unused, duplicate, strings #

Patch Set 4 : fix format #

Patch Set 5 : Use cctest instead of inspector protocol test #

Patch Set 6 : git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M src/parsing/parser.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-func-name-inference.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (26 generated)
luoe
@kozyatinskiy, do you know who would be the best reviewers / owners I should CC?
4 years, 1 month ago (2016-11-11 02:08:17 UTC) #3
kozy
wow, great. lgtm, Yang, could you take a look?
4 years, 1 month ago (2016-11-11 05:40:25 UTC) #6
kozy
Please add following line into CL description. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel to force running blink layout tests to ...
4 years, 1 month ago (2016-11-11 05:43:11 UTC) #7
Yang
lgtm, but some actual owner needs to review this.
4 years, 1 month ago (2016-11-11 05:48:02 UTC) #9
einbinder
https://codereview.chromium.org/2488193003/diff/1/test/inspector/runtime/function-inferred-names-expected.txt File test/inspector/runtime/function-inferred-names-expected.txt (right): https://codereview.chromium.org/2488193003/diff/1/test/inspector/runtime/function-inferred-names-expected.txt#newcode1 test/inspector/runtime/function-inferred-names-expected.txt:1: a What is going on in this expected file?
4 years, 1 month ago (2016-11-11 08:51:42 UTC) #10
luoe
Expectation set, test description added. PTAL https://codereview.chromium.org/2488193003/diff/1/test/inspector/runtime/function-inferred-names-expected.txt File test/inspector/runtime/function-inferred-names-expected.txt (right): https://codereview.chromium.org/2488193003/diff/1/test/inspector/runtime/function-inferred-names-expected.txt#newcode1 test/inspector/runtime/function-inferred-names-expected.txt:1: a On 2016/11/11 ...
4 years, 1 month ago (2016-11-11 18:30:45 UTC) #11
luoe
@marja, if you're working on V8 parser-related things, would you like to take a look?
4 years, 1 month ago (2016-11-14 18:54:48 UTC) #14
vogelheim
lgtm
4 years, 1 month ago (2016-11-14 19:27:14 UTC) #15
marja
https://codereview.chromium.org/2488193003/diff/20001/test/inspector/runtime/function-inferred-names.js File test/inspector/runtime/function-inferred-names.js (right): https://codereview.chromium.org/2488193003/diff/20001/test/inspector/runtime/function-inferred-names.js#newcode11 test/inspector/runtime/function-inferred-names.js:11: What's up with this duplication? What are these strings ...
4 years, 1 month ago (2016-11-14 19:40:07 UTC) #19
luoe
https://codereview.chromium.org/2488193003/diff/20001/test/inspector/runtime/function-inferred-names.js File test/inspector/runtime/function-inferred-names.js (right): https://codereview.chromium.org/2488193003/diff/20001/test/inspector/runtime/function-inferred-names.js#newcode11 test/inspector/runtime/function-inferred-names.js:11: My fault here, I thought I removed these duplicate ...
4 years, 1 month ago (2016-11-14 19:51:38 UTC) #20
marja
lgtm, but the test is kinda indirect... it should be possible to test this with ...
4 years, 1 month ago (2016-11-15 14:32:38 UTC) #25
Yang
On 2016/11/15 14:32:38, marja wrote: > lgtm, but the test is kinda indirect... it should ...
4 years, 1 month ago (2016-11-15 14:34:31 UTC) #26
marja
On 2016/11/15 14:34:31, Yang wrote: > On 2016/11/15 14:32:38, marja wrote: > > lgtm, but ...
4 years, 1 month ago (2016-11-15 16:03:59 UTC) #27
Yang
On 2016/11/15 16:03:59, marja wrote: > On 2016/11/15 14:34:31, Yang wrote: > > On 2016/11/15 ...
4 years, 1 month ago (2016-11-15 16:37:10 UTC) #28
luoe
Ah, I didn't know there were already tests for name inference in cctest. I've removed ...
4 years, 1 month ago (2016-11-15 19:28:44 UTC) #29
marja
lbtm (looks better to me) (ie lgtm)
4 years, 1 month ago (2016-11-15 19:45:58 UTC) #36
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/2488193003/90001
4 years, 1 month ago (2016-11-15 21:54:31 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years, 1 month ago (2016-11-15 21:57:44 UTC) #43
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:35:14 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e80cfa000b5be9ee92b9fd95ebe63cb2da63c553
Cr-Commit-Position: refs/heads/master@{#41013}

Powered by Google App Engine
This is Rietveld 408576698