DescriptionAdd 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 #
Messages
Total messages: 31 (12 generated)
|