ES6 computed property names
authorarv <arv@chromium.org>
Mon, 15 Dec 2014 15:27:07 +0000 (07:27 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 15 Dec 2014 15:27:19 +0000 (15:27 +0000)
commit6e38caf8d35463e29a2530b9d3df928c9cc231ba
treee5accf5d9fbd979c6836620fb4b63544df816bf2
parenta8045635cbe632cd0e4689e3d150325dd44a5b74
ES6 computed property names

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

BUG=v8:3754
LOG=Y

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

Cr-Commit-Position: refs/heads/master@{#25821}
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]