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

Issue 994043003: [strong] More scoping related errors: object literal methods. (Closed)

Created:
5 years, 9 months ago by marja
Modified:
5 years, 9 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

[strong] More scoping related errors: object literal methods. This CL adds errors for illegal references which occur inside object literal methods inside computed properrty names. BUG=v8:3948, v8:3956 LOG=N Committed: https://crrev.com/6ad87e4f869523f2cfe048f4538dfe568ad04b5d Cr-Commit-Position: refs/heads/master@{#27118}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : code review (dslomov@) + some more tests #

Total comments: 4

Patch Set 4 : moar code reviews #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -37 lines) Patch
M src/ast.h View 1 chunk +1 line, -1 line 0 comments Download
M src/code-stubs.h View 1 chunk +1 line, -1 line 0 comments Download
M src/globals.h View 1 2 3 3 chunks +23 lines, -2 lines 0 comments Download
M src/hydrogen-instructions.h View 1 chunk +4 lines, -4 lines 1 comment Download
M src/objects.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M src/preparser.h View 1 2 3 2 chunks +5 lines, -2 lines 2 comments Download
M src/scopes.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/strong/declaration-after-use.js View 1 2 6 chunks +31 lines, -25 lines 2 comments Download

Messages

Total messages: 14 (5 generated)
marja
dslomov, ptal
5 years, 9 months ago (2015-03-10 15:38:01 UTC) #2
Dmitry Lomov (no reviews)
lgtm % comment https://codereview.chromium.org/994043003/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/994043003/diff/40001/src/preparser.h#newcode2152 src/preparser.h:2152: kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); Add ...
5 years, 9 months ago (2015-03-10 16:06:01 UTC) #4
marja
t https://codereview.chromium.org/994043003/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/994043003/diff/40001/src/preparser.h#newcode2152 src/preparser.h:2152: kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); On 2015/03/10 16:06:01, ...
5 years, 9 months ago (2015-03-10 16:17:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/994043003/60001
5 years, 9 months ago (2015-03-10 16:17:55 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-10 16:47:56 UTC) #9
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/6ad87e4f869523f2cfe048f4538dfe568ad04b5d Cr-Commit-Position: refs/heads/master@{#27118}
5 years, 9 months ago (2015-03-10 16:48:14 UTC) #10
arv (Not doing code reviews)
Would it not make more sense to track that we are inside the method/accessor of ...
5 years, 9 months ago (2015-03-10 16:49:06 UTC) #12
marja
My first approach (patch set 2) was to add the reverse "is in class literal" ...
5 years, 9 months ago (2015-03-10 17:08:13 UTC) #13
marja
5 years, 9 months ago (2015-03-10 17:09:30 UTC) #14
Message was sent while issue was closed.
(I'm planning to do the changes you suggested as separate follow-ups; I'm
planning to do a round of test cleanup anyhow, and the kNext thing can be a
separate CL.)

Powered by Google App Engine
This is Rietveld 408576698