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

Issue 1024063002: [strong] checking of this & super in constructors (Closed)

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

Description

[strong] checking of this & super in constructors R=dslomov@chromium.org, marja@chromium.org BUG=v8:3956 LOG=N Enforces for constructors that - the only use of 'super' is the super constructor call - the only use of 'this' is a property assignment - both of these must happen at the top-level of the body - 'this' may only be assigned after the 'super' call - 'return' may only be used after the last assignment to 'this' Not yet working for arrow functions (there might be deeper bugs with those). Committed: https://crrev.com/580d66bcda66220d2f3062ac58daf925436df74c Cr-Commit-Position: refs/heads/master@{#27977}

Patch Set 1 #

Patch Set 2 : Typo #

Total comments: 2

Patch Set 3 : Comments #

Total comments: 10

Patch Set 4 : Mo comments #

Patch Set 5 : Rebased #

Patch Set 6 : Fixed func name inferrer #

Patch Set 7 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -91 lines) Patch
M src/messages.js View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M src/parser.h View 1 2 3 4 5 6 3 chunks +4 lines, -7 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 8 chunks +62 lines, -29 lines 0 comments Download
M src/preparser.h View 1 2 3 4 5 6 13 chunks +167 lines, -27 lines 0 comments Download
M src/preparser.cc View 1 2 3 4 4 chunks +62 lines, -10 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 2 chunks +113 lines, -16 lines 0 comments Download
M test/mjsunit/strong/classes.js View 1 2 3 4 3 chunks +57 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
rossberg
5 years, 9 months ago (2015-03-20 15:48:55 UTC) #1
marja
Could you also add a description to describe exactly what is allowed now; it's sort ...
5 years, 9 months ago (2015-03-23 10:20:07 UTC) #2
rossberg
On 2015/03/23 10:20:07, marja wrote: > Could you also add a description to describe exactly ...
5 years, 8 months ago (2015-04-20 17:21:11 UTC) #4
marja
Hmm, did you forget to upload a patch set?
5 years, 8 months ago (2015-04-21 08:27:27 UTC) #5
rossberg
On 2015/04/21 08:27:27, marja wrote: > Hmm, did you forget to upload a patch set? ...
5 years, 8 months ago (2015-04-21 08:44:26 UTC) #6
marja
In the description, did you mean s/either/both/ ? The label stuff is unclear to me. ...
5 years, 8 months ago (2015-04-21 09:01:37 UTC) #7
rossberg
> In the description, did you mean s/either/both/ ? Done. https://codereview.chromium.org/1024063002/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1024063002/diff/40001/src/preparser.h#newcode2928 ...
5 years, 8 months ago (2015-04-21 09:47:47 UTC) #8
marja
Cleared label confusion (*) offline; lgtm. So the label really binds only one statement, so ...
5 years, 8 months ago (2015-04-21 10:00:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024063002/80001
5 years, 8 months ago (2015-04-21 14:16:15 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel/builds/5087)
5 years, 8 months ago (2015-04-21 14:44:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024063002/90001
5 years, 8 months ago (2015-04-21 14:58:40 UTC) #17
commit-bot: I haz the power
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/4130) v8_linux_gcc_compile_rel on tryserver.v8 (JOB_FAILED, ...
5 years, 8 months ago (2015-04-21 15:01:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024063002/110001
5 years, 8 months ago (2015-04-21 16:12:17 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 8 months ago (2015-04-21 16:34:49 UTC) #23
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/580d66bcda66220d2f3062ac58daf925436df74c Cr-Commit-Position: refs/heads/master@{#27977}
5 years, 8 months ago (2015-04-22 04:10:32 UTC) #24
Michael Achenbach
5 years, 8 months ago (2015-04-22 08:00:19 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:110001) has been created in
https://codereview.chromium.org/1105453002/ by machenbach@chromium.org.

The reason for reverting is: [Sheriff] Breaks mac gc stress:
http://build.chromium.org/p/client.v8/builders/V8%20Mac%20GC%20Stress/builds/....

Powered by Google App Engine
This is Rietveld 408576698