Parse harmony let declarations.
authorkeuchel@chromium.org <keuchel@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 16 Aug 2011 14:24:12 +0000 (14:24 +0000)
committerkeuchel@chromium.org <keuchel@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 16 Aug 2011 14:24:12 +0000 (14:24 +0000)
commitc6c504f8b685ef032fc3759e08b0db57d8841658
tree65e342107529ed833b198588064ae585c5d68065
parent9295a3a0bb51d9016bb86b9d020f52bb94c27689
Parse harmony let declarations.

Implementation of the harmony block scoped let bindings as proposed here:
http://wiki.ecmascript.org/doku.php?id=harmony:block_scoped_bindings

Changes to the syntax are explained there. They are active under the
harmony_block_scoping_ flag in the parser.

Review URL: http://codereview.chromium.org/7616009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8944 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
26 files changed:
src/api.cc
src/arm/full-codegen-arm.cc
src/ast.h
src/compiler.cc
src/contexts.cc
src/ia32/full-codegen-ia32.cc
src/messages.js
src/parser.cc
src/parser.h
src/preparser-api.cc
src/preparser.cc
src/preparser.h
src/runtime.cc
src/scanner-base.cc
src/scanner-base.h
src/scopes.cc
src/token.h
src/variables.cc
src/variables.h
src/x64/full-codegen-x64.cc
test/cctest/test-parsing.cc
test/mjsunit/bugs/harmony/debug-blockscopes.js [new file with mode: 0644]
test/mjsunit/harmony/block-let-declaration.js [new file with mode: 0644]
test/mjsunit/harmony/block-scoping.js
test/mjsunit/harmony/debug-blockscopes.js
test/mjsunit/harmony/debug-evaluate-blockscopes.js