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

Issue 1551443002: Ship ES2015 sloppy-mode function hoisting, let, class (Closed)

Created:
4 years, 12 months ago by Dan Ehrenberg
Modified:
4 years, 11 months ago
Reviewers:
adamk
CC:
Michael Hablich, 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

Ship ES2015 sloppy-mode function hoisting, let, class This patch doesn't ship all features of ES2015 variable/scoping changes, notably omitting the removal of legacy const. I think function hoisting, let and class in sloppy mode can stand to themselves as a package, and the legacy const change is much riskier and more likely to be reverted, so my intention is to pursue those as a separate, follow-on patch. R=adamk@chromium.org BUG=v8:4285, v8:3305 LOG=Y CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel Committed: https://crrev.com/fcff8588a5a01587643d6c2507c7b882c78a2957 Cr-Commit-Position: refs/heads/master@{#33133}

Patch Set 1 #

Patch Set 2 : Fix webkit test expectations #

Patch Set 3 : Mozilla and Ignition test expectations #

Patch Set 4 : Rebase #

Patch Set 5 : Fix duplicate status line #

Total comments: 11

Patch Set 6 : Re-add tests and make them work with the right flags #

Patch Set 7 : Re-add another test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -346 lines) Patch
M src/flag-definitions.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
D test/message/no-legacy-const.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
D test/message/no-legacy-const.out View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D test/message/no-legacy-const-2.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
D test/message/no-legacy-const-2.out View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D test/message/no-legacy-const-3.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
D test/message/no-legacy-const-3.out View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D test/mjsunit/es6/block-early-errors.js View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A + test/mjsunit/es6/block-eval-var-over-legacy-const.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/mjsunit/es6/block-let-contextual-sloppy.js View 0 chunks +-1 lines, --1 lines 0 comments Download
D test/mjsunit/es6/block-non-strict-errors.js View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A + test/mjsunit/es6/block-scope-class.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/mjsunit/es6/classes-derived-return-type.js View 0 chunks +-1 lines, --1 lines 0 comments Download
D test/mjsunit/harmony/block-eval-var-over-legacy-const.js View 1 chunk +0 lines, -84 lines 0 comments Download
D test/mjsunit/harmony/block-let-contextual-sloppy.js View 1 chunk +0 lines, -66 lines 0 comments Download
D test/mjsunit/harmony/block-scope-class.js View 1 chunk +0 lines, -59 lines 0 comments Download
D test/mjsunit/harmony/classes-derived-return-type.js View 1 chunk +0 lines, -90 lines 0 comments Download
M test/mjsunit/harmony/destructuring.js View 2 chunks +3 lines, -2 lines 0 comments Download
D test/mjsunit/harmony/regress/regress-crbug-451770.js View 1 chunk +0 lines, -15 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M test/mjsunit/regress/regress-91120.js View 1 chunk +11 lines, -9 lines 0 comments Download
M test/mjsunit/regress/regress-crbug-323936.js View 2 chunks +5 lines, -3 lines 0 comments Download
A + test/mjsunit/regress/regress-crbug-451770.js View 0 chunks +-1 lines, --1 lines 0 comments Download
M test/mozilla/mozilla.status View 1 2 2 chunks +3 lines, -10 lines 0 comments Download
M test/webkit/fast/js/kde/func-decl-expected.txt View 1 1 chunk +6 lines, -3 lines 0 comments Download
M test/webkit/webkit.status View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551443002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551443002/1
4 years, 12 months ago (2015-12-25 22:32:41 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/11826)
4 years, 12 months ago (2015-12-25 22:45:44 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551443002/20001
4 years, 12 months ago (2015-12-28 00:54:07 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/13465)
4 years, 12 months ago (2015-12-28 01:11:54 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551443002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551443002/40001
4 years, 12 months ago (2015-12-28 02:38:53 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 12 months ago (2015-12-28 03:19:29 UTC) #12
Dan Ehrenberg
4 years, 12 months ago (2015-12-28 03:27:19 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551443002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551443002/40001
4 years, 11 months ago (2015-12-30 19:59:33 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/81019)
4 years, 11 months ago (2015-12-30 21:40:12 UTC) #18
Dan Ehrenberg
Adam, did you mention something about how we are supposed to omit defining 'arguments' when ...
4 years, 11 months ago (2015-12-30 22:43:16 UTC) #19
adamk
On 2015/12/30 22:43:16, Dan Ehrenberg wrote: > Adam, did you mention something about how we ...
4 years, 11 months ago (2016-01-04 18:59:36 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551443002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551443002/40001
4 years, 11 months ago (2016-01-05 01:19:22 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/11971) v8_linux_arm_rel on ...
4 years, 11 months ago (2016-01-05 01:20:46 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551443002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551443002/60001
4 years, 11 months ago (2016-01-05 05:27:36 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/9421)
4 years, 11 months ago (2016-01-05 05:30:19 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551443002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551443002/80001
4 years, 11 months ago (2016-01-05 05:48:04 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-05 06:47:41 UTC) #32
Dan Ehrenberg
Now that test expectations are updated, this patch looks green. PTAL.
4 years, 11 months ago (2016-01-05 18:18:00 UTC) #33
adamk
https://codereview.chromium.org/1551443002/diff/80001/test/message/no-legacy-const.js File test/message/no-legacy-const.js (left): https://codereview.chromium.org/1551443002/diff/80001/test/message/no-legacy-const.js#oldcode5 test/message/no-legacy-const.js:5: // Flags: --no-legacy-const Can't you change the flags here ...
4 years, 11 months ago (2016-01-05 19:19:06 UTC) #34
Dan Ehrenberg
https://codereview.chromium.org/1551443002/diff/80001/test/message/no-legacy-const.js File test/message/no-legacy-const.js (left): https://codereview.chromium.org/1551443002/diff/80001/test/message/no-legacy-const.js#oldcode5 test/message/no-legacy-const.js:5: // Flags: --no-legacy-const On 2016/01/05 at 19:19:05, adamk wrote: ...
4 years, 11 months ago (2016-01-06 00:27:57 UTC) #35
adamk
Thanks for the regression test explanations. lgtm, except that some of the tests (the message ...
4 years, 11 months ago (2016-01-06 00:33:21 UTC) #36
adamk
FWIW the raw patch looks fine.
4 years, 11 months ago (2016-01-06 00:36:46 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551443002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551443002/120001
4 years, 11 months ago (2016-01-06 01:01:53 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 11 months ago (2016-01-06 02:02:47 UTC) #40
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/fcff8588a5a01587643d6c2507c7b882c78a2957 Cr-Commit-Position: refs/heads/master@{#33133}
4 years, 11 months ago (2016-01-06 02:03:15 UTC) #42
Dan Ehrenberg
4 years, 11 months ago (2016-01-07 19:32:54 UTC) #43
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1565263002/ by littledan@chromium.org.

The reason for reverting is: Causes frequent crashes in Canary: chromium:537816.

Powered by Google App Engine
This is Rietveld 408576698