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

Issue 1293283002: Add a separate scope for switch (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

Add a separate scope for switch The ES2015 specification for switch statements 13.12.11 specifies that they get their own lexical scope. This patch introduces such a scope through a complex desugaring in terms of blocks, done so that Crankshaft does not have to be updated to support multiple constructs providing scopes. BUG=v8:4377 LOG=Y R=adamk Committed: https://crrev.com/9edbc1f21eb1050cabbe3b8bc9aebf89ada7ebd7 Cr-Commit-Position: refs/heads/master@{#30314}

Patch Set 1 #

Patch Set 2 : Block around everything #

Patch Set 3 : another test #

Patch Set 4 : Complex desugaring #

Patch Set 5 : Turn off a debug test (can't submit this way) #

Patch Set 6 : Fix double evaluation of tag expression #

Total comments: 12

Patch Set 7 : improvements from review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -15 lines) Patch
M src/ast-value-factory.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 1 chunk +54 lines, -13 lines 0 comments Download
M src/scopes.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-4377.js View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
M test/mjsunit/switch.js View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (12 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/1293283002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293283002/1
5 years, 4 months ago (2015-08-17 23:37:32 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/3345)
5 years, 4 months ago (2015-08-17 23:46:53 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/1293283002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293283002/20001
5 years, 4 months ago (2015-08-18 18:36:01 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-18 18:59:18 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/1293283002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293283002/60001
5 years, 4 months ago (2015-08-20 23:34:02 UTC) #10
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/8888)
5 years, 4 months ago (2015-08-20 23:36:45 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1293283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293283002/80001
5 years, 4 months ago (2015-08-20 23:53:13 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/1293283002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293283002/100001
5 years, 4 months ago (2015-08-21 00:05:47 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-21 00:30:34 UTC) #18
Dan Ehrenberg
5 years, 4 months ago (2015-08-21 00:33:41 UTC) #19
adamk
https://codereview.chromium.org/1293283002/diff/100001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1293283002/diff/100001/src/parser.cc#newcode2982 src/parser.cc:2982: factory()->NewBlock(labels, 2, true, RelocInfo::kNoPosition); Seems weird that you pass ...
5 years, 4 months ago (2015-08-21 01:19:08 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/1293283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293283002/120001
5 years, 4 months ago (2015-08-21 21:50:29 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-21 22:17:13 UTC) #24
Dan Ehrenberg
https://codereview.chromium.org/1293283002/diff/100001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1293283002/diff/100001/src/parser.cc#newcode2982 src/parser.cc:2982: factory()->NewBlock(labels, 2, true, RelocInfo::kNoPosition); On 2015/08/21 at 01:19:08, adamk ...
5 years, 4 months ago (2015-08-21 23:06:14 UTC) #25
adamk
lgtm
5 years, 4 months ago (2015-08-21 23:44:00 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1293283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293283002/120001
5 years, 4 months ago (2015-08-21 23:52:51 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 4 months ago (2015-08-21 23:54:28 UTC) #29
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/9edbc1f21eb1050cabbe3b8bc9aebf89ada7ebd7 Cr-Commit-Position: refs/heads/master@{#30314}
5 years, 4 months ago (2015-08-21 23:54:50 UTC) #30
Dan Ehrenberg
5 years, 4 months ago (2015-08-22 01:24:02 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1309043004/ by littledan@chromium.org.

The reason for reverting is: Breaks cctest/test-cpu-profiler/SourceLocation on
nosnap.

Powered by Google App Engine
This is Rietveld 408576698