ES6 computed property names
authorarv <arv@chromium.org>
Tue, 16 Dec 2014 17:29:31 +0000 (09:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Dec 2014 17:30:05 +0000 (17:30 +0000)
commita235b1076ae4b79baae1d17a5079cb6cfc462ba3
tree01fecc05427195e92e66e773b990598c0bad7693
parent37f9bb72b9c7ea4eccef6cb6533b3c42792fb5e6
ES6 computed property names

This adds support for computed property names, under the flag
--harmony-computed-property-names, for both object literals and
classes.

This is a revert of the revert, a76419f0f497db156eb1010e9b4be398951280cb with
no changes. I cannot reproduce the issue on Win8.1 or WinXP. Letting the bots
try again.

BUG=v8:3754
LOG=Y
TBR=dslomov@chromium.org

Review URL: https://codereview.chromium.org/807173002

Cr-Commit-Position: refs/heads/master@{#25851}
28 files changed:
src/arm/full-codegen-arm.cc
src/arm64/full-codegen-arm64.cc
src/ast-numbering.cc
src/ast.cc
src/ast.h
src/bailout-reason.h
src/bootstrapper.cc
src/builtins.h
src/compiler/ast-graph-builder.cc
src/flag-definitions.h
src/full-codegen.cc
src/full-codegen.h
src/hydrogen.cc
src/ia32/full-codegen-ia32.cc
src/parser.cc
src/parser.h
src/preparser.cc
src/preparser.h
src/runtime.js
src/runtime/runtime-classes.cc
src/runtime/runtime-object.cc
src/runtime/runtime.h
src/typing.cc
src/x64/full-codegen-x64.cc
test/cctest/test-parsing.cc
test/mjsunit/harmony/computed-property-names-classes.js [new file with mode: 0644]
test/mjsunit/harmony/computed-property-names-object-literals-methods.js [new file with mode: 0644]
test/mjsunit/harmony/computed-property-names.js [new file with mode: 0644]