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

Issue 1092503003: [es6] Make ParseSuperExpression uses scopes instead (Closed)

Created:
5 years, 8 months ago by arv (Not doing code reviews)
Modified:
5 years, 7 months ago
Reviewers:
wingo, rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] Make ParseSuperExpression use scopes instead Previously it was using the FunctionState which does not work correctly for lazy arrow functions. To get this to work I had to fix some issues with some Scopes not setting the function kind correctly. Also, this removes innner_uses_super since we can track that on the correct scope directly. BUG=v8:4031 LOG=N R=wingo@igalia.com, rossberg@chromium.org

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : add commented out js test #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -36 lines) Patch
M src/ast.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/parser.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/preparser.h View 1 5 chunks +25 lines, -16 lines 3 comments Download
M src/preparser.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/scopes.cc View 3 chunks +0 lines, -7 lines 0 comments Download
M test/cctest/test-parsing.cc View 5 chunks +4 lines, -9 lines 0 comments Download
M test/mjsunit/harmony/super.js View 1 2 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (1 generated)
arv (Not doing code reviews)
Andreas, it is not clear how to fix the strong mode todo I added in ...
5 years, 8 months ago (2015-04-23 16:29:49 UTC) #2
arv (Not doing code reviews)
cleanup
5 years, 8 months ago (2015-04-23 16:38:33 UTC) #3
wingo
On 2015/04/23 16:29:49, arv wrote: > Andy, did the lexical this CL land? If so ...
5 years, 8 months ago (2015-04-24 06:31:45 UTC) #4
rossberg
On 2015/04/23 16:29:49, arv wrote: > Andreas, it is not clear how to fix the ...
5 years, 8 months ago (2015-04-24 11:49:51 UTC) #5
arv (Not doing code reviews)
On 2015/04/24 06:31:45, wingo wrote: > On 2015/04/23 16:29:49, arv wrote: > > Andy, did ...
5 years, 8 months ago (2015-04-24 15:05:44 UTC) #6
arv (Not doing code reviews)
add commented out js test
5 years, 8 months ago (2015-04-24 15:07:46 UTC) #7
arv (Not doing code reviews)
PTAL
5 years, 8 months ago (2015-04-24 15:07:52 UTC) #8
rossberg
lgtm
5 years, 8 months ago (2015-04-24 15:10:55 UTC) #9
arv (Not doing code reviews)
https://codereview.chromium.org/1092503003/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1092503003/diff/40001/src/preparser.h#newcode3284 src/preparser.h:3284: // TODO(rossberg): This might not be the correct FunctionState ...
5 years, 8 months ago (2015-04-24 15:15:41 UTC) #10
rossberg
On 2015/04/24 15:15:41, arv wrote: > https://codereview.chromium.org/1092503003/diff/40001/src/preparser.h > File src/preparser.h (right): > > https://codereview.chromium.org/1092503003/diff/40001/src/preparser.h#newcode3284 > ...
5 years, 8 months ago (2015-04-24 18:27:28 UTC) #11
wingo
I don't see the point of the Scope::scope_uses_super_property_ flag. For user feedback you want a ...
5 years, 7 months ago (2015-05-06 14:47:38 UTC) #12
arv (Not doing code reviews)
https://codereview.chromium.org/1092503003/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1092503003/diff/40001/src/preparser.h#newcode3266 src/preparser.h:3266: } On 2015/05/06 14:47:38, wingo wrote: > Sounds like ...
5 years, 7 months ago (2015-05-06 14:57:20 UTC) #13
arv (Not doing code reviews)
On 2015/05/06 14:47:38, wingo wrote: > I don't see the point of the Scope::scope_uses_super_property_ flag. ...
5 years, 7 months ago (2015-05-06 14:58:13 UTC) #14
wingo
On 2015/05/06 14:58:13, arv wrote: > On 2015/05/06 14:47:38, wingo wrote: > > I don't ...
5 years, 7 months ago (2015-05-06 15:13:17 UTC) #15
arv (Not doing code reviews)
On 2015/05/06 15:13:17, wingo wrote: > On 2015/05/06 14:58:13, arv wrote: > > On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 15:18:43 UTC) #16
arv (Not doing code reviews)
Andy, it looks like your CL is sticking around... I'll update this later today.
5 years, 7 months ago (2015-05-06 15:39:36 UTC) #17
arv (Not doing code reviews)
Andy, it looks like your CL is sticking around... I'll update this later today.
5 years, 7 months ago (2015-05-06 15:39:36 UTC) #18
arv (Not doing code reviews)
Andy, it looks like your CL is sticking around... I'll update this later today.
5 years, 7 months ago (2015-05-06 15:39:37 UTC) #19
arv (Not doing code reviews)
5 years, 7 months ago (2015-05-12 15:34:31 UTC) #20
On 2015/05/06 15:39:37, arv wrote:
> Andy, it looks like your CL is sticking around... I'll update this later
today.

I'm going to close this CL. I have a new patch that builds on this and it
correctly handles super.prop in arrows and eval.

Powered by Google App Engine
This is Rietveld 408576698