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

Issue 561913002: Class syntax parsing (Closed)

Created:
6 years, 3 months ago by arv (Not doing code reviews)
Modified:
6 years, 3 months ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Class syntax parsing This implements parsing for ClassExpression and ClassDeclaration. The runtime is not yet implemented and the value is currently hard coded to undefined. BUG=v8:3330 LOG=Y R=dslomov@chromium.org, marja@chromium.org, rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=23988

Patch Set 1 #

Patch Set 2 : Add early error checks for static prototype and get/set constructor #

Total comments: 4

Patch Set 3 : Fix IsEval... #

Patch Set 4 : Classes are strict #

Patch Set 5 : Extends expression is also strict #

Patch Set 6 : Remove ClassDeclaration #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 34

Patch Set 9 : Code review updates #

Patch Set 10 : Remove extra scope for now #

Total comments: 1

Patch Set 11 : Add disabled test for duplicate property issue #

Patch Set 12 : git rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+965 lines, -164 lines) Patch
M src/ast.h View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +84 lines, -35 lines 0 comments Download
M src/ast.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -3 lines 0 comments Download
M src/ast-value-factory.h View 1 1 chunk +26 lines, -25 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +21 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M src/messages.js View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -0 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +63 lines, -0 lines 0 comments Download
M src/preparser.h View 1 2 3 4 5 6 7 8 9 10 11 24 chunks +186 lines, -24 lines 0 comments Download
M src/preparser.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +23 lines, -0 lines 0 comments Download
M src/prettyprinter.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/prettyprinter.cc View 1 2 3 4 5 6 3 chunks +32 lines, -5 lines 0 comments Download
M src/scanner.h View 1 chunk +1 line, -1 line 0 comments Download
M src/scanner.cc View 1 chunk +67 lines, -64 lines 0 comments Download
M src/token.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/typing.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +419 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (2 generated)
arv (Not doing code reviews)
Add early error checks for static prototype and get/set constructor
6 years, 3 months ago (2014-09-10 22:47:13 UTC) #1
arv (Not doing code reviews)
The codegen/runtime part is mostly just placeholders at this point. I would like to get ...
6 years, 3 months ago (2014-09-10 23:12:12 UTC) #3
marja
parsing changes lg % comments https://codereview.chromium.org/561913002/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/561913002/diff/20001/src/preparser.h#newcode635 src/preparser.h:635: bool IsEvalOrArguments() const { ...
6 years, 3 months ago (2014-09-11 09:40:58 UTC) #4
arv (Not doing code reviews)
Fix IsEval...
6 years, 3 months ago (2014-09-11 15:39:32 UTC) #5
arv (Not doing code reviews)
Seems like I have to duplicate the class top level parsing to be able to ...
6 years, 3 months ago (2014-09-11 18:24:43 UTC) #6
arv (Not doing code reviews)
Classes are strict
6 years, 3 months ago (2014-09-11 19:25:37 UTC) #7
arv (Not doing code reviews)
Extends expression is also strict
6 years, 3 months ago (2014-09-11 21:57:18 UTC) #8
arv (Not doing code reviews)
Remove ClassDeclaration
6 years, 3 months ago (2014-09-12 19:05:23 UTC) #9
arv (Not doing code reviews)
This is now ready for real review. The runtime behavior just returns undefined at this ...
6 years, 3 months ago (2014-09-12 21:36:35 UTC) #10
marja
parsing parts lgtm, pls wait for rossberg@ to ack this too, svenpanne@, what's up with ...
6 years, 3 months ago (2014-09-15 09:24:30 UTC) #12
Sven Panne
https://codereview.chromium.org/561913002/diff/140001/src/ast.h File src/ast.h (right): https://codereview.chromium.org/561913002/diff/140001/src/ast.h#newcode1492 src/ast.h:1492: bool is_static_; On 2014/09/12 21:36:34, arv wrote: > What ...
6 years, 3 months ago (2014-09-15 11:13:06 UTC) #13
rossberg
Looks mostly good, but I think we should store static methods in a separate list ...
6 years, 3 months ago (2014-09-15 12:32:49 UTC) #14
arv (Not doing code reviews)
Code review updates
6 years, 3 months ago (2014-09-15 15:12:19 UTC) #15
arv (Not doing code reviews)
Updated. PTAL. https://codereview.chromium.org/561913002/diff/140001/src/ast.h File src/ast.h (right): https://codereview.chromium.org/561913002/diff/140001/src/ast.h#newcode1464 src/ast.h:1464: bool is_static); On 2014/09/15 12:32:48, rossberg wrote: ...
6 years, 3 months ago (2014-09-15 15:12:33 UTC) #16
arv (Not doing code reviews)
Remove extra scope for now
6 years, 3 months ago (2014-09-16 14:55:41 UTC) #17
arv (Not doing code reviews)
Andreas, do you think you'll have time to take another look today? Dmitry, I would ...
6 years, 3 months ago (2014-09-16 14:56:44 UTC) #18
rossberg
LGTM, just a few minor comments https://codereview.chromium.org/561913002/diff/140001/src/full-codegen.cc File src/full-codegen.cc (right): https://codereview.chromium.org/561913002/diff/140001/src/full-codegen.cc#newcode1551 src/full-codegen.cc:1551: context()->Plug(isolate()->factory()->undefined_value()); On 2014/09/15 ...
6 years, 3 months ago (2014-09-16 15:25:40 UTC) #19
arv (Not doing code reviews)
Add disabled test for duplicate property issue
6 years, 3 months ago (2014-09-16 15:46:41 UTC) #20
arv (Not doing code reviews)
git rebase
6 years, 3 months ago (2014-09-16 15:58:59 UTC) #21
Dmitry Lomov (no reviews)
lgtm
6 years, 3 months ago (2014-09-16 18:14:02 UTC) #22
arv (Not doing code reviews)
6 years, 3 months ago (2014-09-16 22:15:58 UTC) #23
Message was sent while issue was closed.
Committed patchset #12 (id:220001) manually as 23988 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698