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

Issue 858673002: Fix issue with __proto__ when using ES6 object literals (Closed)

Created:
5 years, 11 months ago by arv (Not doing code reviews)
Modified:
5 years, 11 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix issue with __proto__ when using ES6 object literals It should be possible to create a concise method with the name __proto__ without setting the [[Prototype]]. Similarly, property name shorthands with the name __proto__ should define an own property. BUG=v8:3818 LOG=Y R=adamk, dslomov@chromium.org Committed: https://crrev.com/bc3b2960e3b7abc16440717f289a430aef904cb1 Cr-Commit-Position: refs/heads/master@{#26172}

Patch Set 1 #

Patch Set 2 : Remove unused function #

Total comments: 1

Patch Set 3 : Add test with multiple proto fields #

Patch Set 4 : git rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -41 lines) Patch
M src/ast.h View 1 2 chunks +12 lines, -16 lines 0 comments Download
M src/ast.cc View 1 4 chunks +19 lines, -15 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M src/preparser.h View 1 2 3 3 chunks +14 lines, -4 lines 0 comments Download
M test/mjsunit/harmony/object-literals-method.js View 1 chunk +24 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/object-literals-property-shorthand.js View 1 chunk +22 lines, -0 lines 0 comments Download
A test/mjsunit/object-literal-multiple-proto-fields.js View 1 2 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
arv (Not doing code reviews)
Remove unused function
5 years, 11 months ago (2015-01-16 22:40:41 UTC) #1
arv (Not doing code reviews)
PTAL
5 years, 11 months ago (2015-01-16 22:42:22 UTC) #2
adamk
https://codereview.chromium.org/858673002/diff/20001/src/ast.cc File src/ast.cc (right): https://codereview.chromium.org/858673002/diff/20001/src/ast.cc#newcode259 src/ast.cc:259: property->set_emit_store(!seen_prototype); Probably a dumb question, but does one of ...
5 years, 11 months ago (2015-01-16 23:12:04 UTC) #3
arv (Not doing code reviews)
On 2015/01/16 23:12:04, adamk wrote: > https://codereview.chromium.org/858673002/diff/20001/src/ast.cc > File src/ast.cc (right): > > https://codereview.chromium.org/858673002/diff/20001/src/ast.cc#newcode259 > ...
5 years, 11 months ago (2015-01-17 16:46:38 UTC) #4
Dmitry Lomov (no reviews)
lgtm if the test that Adam asks for is added.
5 years, 11 months ago (2015-01-19 10:55:27 UTC) #5
arv (Not doing code reviews)
Add test with multiple proto fields
5 years, 11 months ago (2015-01-20 15:31:14 UTC) #6
arv (Not doing code reviews)
Turns out that we did not have a test for this case before so I ...
5 years, 11 months ago (2015-01-20 15:32:48 UTC) #7
arv (Not doing code reviews)
git rebase
5 years, 11 months ago (2015-01-20 15:42:44 UTC) #8
Dmitry Lomov (no reviews)
still lgtm
5 years, 11 months ago (2015-01-20 15:43:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/858673002/60001
5 years, 11 months ago (2015-01-20 15:44:23 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 11 months ago (2015-01-20 16:31:34 UTC) #12
commit-bot: I haz the power
5 years, 11 months ago (2015-01-20 16:31:55 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bc3b2960e3b7abc16440717f289a430aef904cb1
Cr-Commit-Position: refs/heads/master@{#26172}

Powered by Google App Engine
This is Rietveld 408576698