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

Issue 795573005: ES6 computed property names (Closed)

Created:
6 years ago by arv (Not doing code reviews)
Modified:
6 years ago
CC:
caitp (gmail), v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

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 Committed: https://crrev.com/6e38caf8d35463e29a2530b9d3df928c9cc231ba Cr-Commit-Position: refs/heads/master@{#25821}

Patch Set 1 #

Total comments: 27

Patch Set 2 : progress #

Patch Set 3 : Disable TF correctly #

Patch Set 4 : Moar tests #

Total comments: 1

Patch Set 5 : moar cleanup #

Total comments: 6

Patch Set 6 : Clean up Name and codegen #

Patch Set 7 : Ports #

Patch Set 8 : git rebase #

Total comments: 4

Patch Set 9 : Cleanup tests a bit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1363 lines, -201 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 3 4 5 6 5 chunks +69 lines, -8 lines 0 comments Download
M src/arm64/full-codegen-arm64.cc View 1 2 3 4 5 6 5 chunks +69 lines, -8 lines 0 comments Download
M src/ast.h View 1 2 3 4 5 6 7 3 chunks +21 lines, -17 lines 0 comments Download
M src/ast.cc View 1 6 chunks +33 lines, -17 lines 0 comments Download
M src/ast-numbering.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/bailout-reason.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
M src/builtins.h View 1 1 chunk +28 lines, -27 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -9 lines 0 comments Download
M src/full-codegen.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 4 5 4 chunks +67 lines, -8 lines 0 comments Download
M src/parser.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -5 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 7 5 chunks +12 lines, -7 lines 0 comments Download
M src/preparser.h View 1 2 3 4 5 6 7 18 chunks +98 lines, -33 lines 0 comments Download
M src/preparser.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M src/runtime.js View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-classes.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -45 lines 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
M src/typing.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 4 5 6 4 chunks +67 lines, -8 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 7 3 chunks +62 lines, -1 line 0 comments Download
A test/mjsunit/harmony/computed-property-names.js View 1 2 3 4 5 6 7 8 1 chunk +270 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/computed-property-names-classes.js View 1 2 3 4 5 6 7 8 1 chunk +367 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/computed-property-names-object-literals-methods.js View 1 2 3 4 5 6 7 8 1 chunk +121 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (2 generated)
arv (Not doing code reviews)
This only does ia32 at the moment and I need a ton more tests. I ...
6 years ago (2014-12-10 23:25:25 UTC) #2
arv (Not doing code reviews)
Self review https://codereview.chromium.org/795573005/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/795573005/diff/1/src/ast.h#newcode1520 src/ast.h:1520: bool is_computed_name_; Another Kind would not work ...
6 years ago (2014-12-10 23:38:13 UTC) #3
Dmitry Lomov (no reviews)
shaping up nicely! https://codereview.chromium.org/795573005/diff/1/src/ast.cc File src/ast.cc (right): https://codereview.chromium.org/795573005/diff/1/src/ast.cc#newcode658 src/ast.cc:658: TypeFeedbackId id = key()->AsLiteral()->LiteralFeedbackId(); What if ...
6 years ago (2014-12-11 12:34:35 UTC) #4
arv (Not doing code reviews)
https://codereview.chromium.org/795573005/diff/1/src/ia32/full-codegen-ia32.cc File src/ia32/full-codegen-ia32.cc (right): https://codereview.chromium.org/795573005/diff/1/src/ia32/full-codegen-ia32.cc#newcode1733 src/ia32/full-codegen-ia32.cc:1733: __ InvokeBuiltin(Builtins::TO_NAME, CALL_FUNCTION); On 2014/12/11 12:34:35, Dmitry Lomov (chromium) ...
6 years ago (2014-12-11 15:47:25 UTC) #5
Dmitry Lomov (no reviews)
https://codereview.chromium.org/795573005/diff/1/src/ia32/full-codegen-ia32.cc File src/ia32/full-codegen-ia32.cc (right): https://codereview.chromium.org/795573005/diff/1/src/ia32/full-codegen-ia32.cc#newcode1733 src/ia32/full-codegen-ia32.cc:1733: __ InvokeBuiltin(Builtins::TO_NAME, CALL_FUNCTION); On 2014/12/11 15:47:24, arv wrote: > ...
6 years ago (2014-12-11 16:01:15 UTC) #6
Dmitry Lomov (no reviews)
On 2014/12/11 16:01:15, Dmitry Lomov (chromium) wrote: > https://codereview.chromium.org/795573005/diff/1/src/ia32/full-codegen-ia32.cc > File src/ia32/full-codegen-ia32.cc (right): > > ...
6 years ago (2014-12-11 16:50:26 UTC) #7
arv (Not doing code reviews)
progress
6 years ago (2014-12-11 20:54:16 UTC) #8
arv (Not doing code reviews)
Disable TF correctly
6 years ago (2014-12-11 20:59:57 UTC) #9
arv (Not doing code reviews)
Moar tests
6 years ago (2014-12-11 22:47:31 UTC) #10
arv (Not doing code reviews)
moar cleanup
6 years ago (2014-12-11 23:09:46 UTC) #11
arv (Not doing code reviews)
PTAL This is now ready for review. If it looks good to you I'll implement ...
6 years ago (2014-12-11 23:10:34 UTC) #12
arv (Not doing code reviews)
Ping
6 years ago (2014-12-12 14:17:48 UTC) #13
Dmitry Lomov (no reviews)
looking good, I have a couple of comments, but proceed to ports. I haven't looked ...
6 years ago (2014-12-12 15:11:58 UTC) #14
arv (Not doing code reviews)
Clean up Name and codegen
6 years ago (2014-12-12 16:48:17 UTC) #15
arv (Not doing code reviews)
Feedback resolved. Starting porting now. https://codereview.chromium.org/795573005/diff/80001/src/ia32/full-codegen-ia32.cc File src/ia32/full-codegen-ia32.cc (right): https://codereview.chromium.org/795573005/diff/80001/src/ia32/full-codegen-ia32.cc#newcode1725 src/ia32/full-codegen-ia32.cc:1725: switch (property->kind()) { On ...
6 years ago (2014-12-12 16:49:34 UTC) #16
arv (Not doing code reviews)
Ports
6 years ago (2014-12-12 17:19:22 UTC) #17
arv (Not doing code reviews)
git rebase
6 years ago (2014-12-12 17:37:22 UTC) #18
Dmitry Lomov (no reviews)
lgtm % comments https://codereview.chromium.org/795573005/diff/140001/test/mjsunit/harmony/computed-property-names.js File test/mjsunit/harmony/computed-property-names.js (right): https://codereview.chromium.org/795573005/diff/140001/test/mjsunit/harmony/computed-property-names.js#newcode8 test/mjsunit/harmony/computed-property-names.js:8: (function TestBasicsString() { Could you also ...
6 years ago (2014-12-15 10:43:47 UTC) #19
arv (Not doing code reviews)
Cleanup tests a bit
6 years ago (2014-12-15 14:58:15 UTC) #20
arv (Not doing code reviews)
https://codereview.chromium.org/795573005/diff/140001/test/mjsunit/harmony/computed-property-names.js File test/mjsunit/harmony/computed-property-names.js (right): https://codereview.chromium.org/795573005/diff/140001/test/mjsunit/harmony/computed-property-names.js#newcode8 test/mjsunit/harmony/computed-property-names.js:8: (function TestBasicsString() { On 2014/12/15 10:43:47, Dmitry Lomov (chromium) ...
6 years ago (2014-12-15 14:59:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795573005/160001
6 years ago (2014-12-15 14:59:25 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:160001)
6 years ago (2014-12-15 15:27:14 UTC) #24
arv (Not doing code reviews)
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/809433002/ by arv@chromium.org. ...
6 years ago (2014-12-15 16:37:08 UTC) #25
commit-bot: I haz the power
6 years ago (2014-12-17 10:13:30 UTC) #26
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6e38caf8d35463e29a2530b9d3df928c9cc231ba
Cr-Commit-Position: refs/heads/master@{#25821}

Powered by Google App Engine
This is Rietveld 408576698