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

Issue 1282093002: Split function block scoping into a separate flag (Closed)

Created:
5 years, 4 months ago by Dan Ehrenberg
Modified:
5 years, 4 months ago
Reviewers:
adamk
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Split function block scoping into a separate flag In an initial attempt to implement sloppy mode lexical bindings, functions were made lexically scoped in sloppy mode. However, the ES2015 spec says that they need an additional hoisted var binding, and further, it's not clear when we'll implement that behavior or whether it's web-compatible. This patch splits off function block scoping into a new, separate flag called --harmony_sloppy_function. This change will enable the possibility of testing and shipping this feature separately from other block scoping-related features which don't have the same risks. BUG=v8:4285 R=adamk LOG=N Committed: https://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334 Cr-Commit-Position: refs/heads/master@{#30122}

Patch Set 1 #

Patch Set 2 : Switch to new flag and fix errors #

Patch Set 3 : Add flags to tests #

Patch Set 4 : Propagate flag #

Total comments: 2

Patch Set 5 : name change #

Patch Set 6 : fix a test flag #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -17 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 1 chunk +12 lines, -11 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M src/preparser.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/block-conflicts-sloppy.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/block-let-semantics-sloppy.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/block-scope-class.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/block-scoping-sloppy.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 46 (19 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/1282093002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/1
5 years, 4 months ago (2015-08-07 23:48:17 UTC) #2
Dan Ehrenberg
5 years, 4 months ago (2015-08-07 23:53:21 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/8499)
5 years, 4 months ago (2015-08-08 00:00:12 UTC) #5
Dan Ehrenberg
On 2015/08/08 00:00:12, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 4 months ago (2015-08-08 00:05:35 UTC) #6
adamk
I like the idea of further-splitting the scoping options, putting the ES2015 semantics for function ...
5 years, 4 months ago (2015-08-08 01:13:31 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282093002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/1
5 years, 4 months ago (2015-08-11 00:54:47 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282093002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/20001
5 years, 4 months ago (2015-08-11 01:04:04 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/8544)
5 years, 4 months ago (2015-08-11 01:14:38 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282093002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/40001
5 years, 4 months ago (2015-08-11 01:18:24 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/8545)
5 years, 4 months ago (2015-08-11 01:26:45 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282093002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/40001
5 years, 4 months ago (2015-08-11 18:29:47 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/8574)
5 years, 4 months ago (2015-08-11 18:41:37 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282093002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/60001
5 years, 4 months ago (2015-08-11 21:12:33 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-11 21:37:55 UTC) #26
Dan Ehrenberg
PTAL
5 years, 4 months ago (2015-08-11 21:40:25 UTC) #27
adamk
https://codereview.chromium.org/1282093002/diff/60001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/1282093002/diff/60001/src/flag-definitions.h#newcode191 src/flag-definitions.h:191: V(harmony_block_function, "harmony function block scoping") \ How about "harmony_sloppy_function" ...
5 years, 4 months ago (2015-08-11 21:50:11 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/1282093002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/80001
5 years, 4 months ago (2015-08-11 21:57:34 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/5415)
5 years, 4 months ago (2015-08-11 22:04:49 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282093002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/100001
5 years, 4 months ago (2015-08-11 22:48:39 UTC) #34
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/8480) v8_linux_dbg on ...
5 years, 4 months ago (2015-08-11 22:49:29 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282093002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/120001
5 years, 4 months ago (2015-08-11 22:53:59 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-11 23:30:11 UTC) #40
Dan Ehrenberg
https://codereview.chromium.org/1282093002/diff/60001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/1282093002/diff/60001/src/flag-definitions.h#newcode191 src/flag-definitions.h:191: V(harmony_block_function, "harmony function block scoping") \ On 2015/08/11 at ...
5 years, 4 months ago (2015-08-11 23:55:16 UTC) #41
adamk
lgtm, thanks
5 years, 4 months ago (2015-08-11 23:56:00 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282093002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282093002/120001
5 years, 4 months ago (2015-08-11 23:56:59 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 4 months ago (2015-08-11 23:59:53 UTC) #45
commit-bot: I haz the power
5 years, 4 months ago (2015-08-12 00:00:13 UTC) #46
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334
Cr-Commit-Position: refs/heads/master@{#30122}

Powered by Google App Engine
This is Rietveld 408576698