|
Move object literal checking into checker classes
This removes the duplicate property check from object literals.
Instead we repurpose the ObjectLiteralChecker into two cases, implemented
by two subclasses to ObjectLiteralCheckerBase called ObjectLiteralChecker
and ClassLiteralChecker.
The object literal checker now only checks for duplicate __proto__ fields in
object literals.
The class literal checker checks for duplicate constructors, non constructor
fields named constructor as well as static properties named prototype.
BUG= v8:3819
LOG=Y
R=adamk, dslomov@chromium.org
Committed: https://crrev.com/b004b1d821e28ffec8212a7cdf46b84cbdf74b67
Cr-Commit-Position: refs/heads/master@{#26336}
Total comments: 1
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+352 lines, -352 lines) |
Patch |
|
M |
src/arm/full-codegen-arm.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/arm64/full-codegen-arm64.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+10 lines, -15 lines |
0 comments
|
Download
|
|
M |
src/ast.cc
|
View
|
1
|
2 chunks |
+1 line, -8 lines |
0 comments
|
Download
|
|
M |
src/compiler/ast-graph-builder.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/ia32/full-codegen-ia32.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/messages.js
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/mips/full-codegen-mips.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/mips64/full-codegen-mips64.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/ppc/full-codegen-ppc.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/preparser.h
|
View
|
1
2
3
4
5
6
7
|
11 chunks |
+113 lines, -114 lines |
0 comments
|
Download
|
|
M |
src/preparser.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/x64/full-codegen-x64.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/x87/full-codegen-x87.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -10 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-parsing.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+72 lines, -39 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/object-literal-multiple-proto-fields.js
|
View
|
|
1 chunk |
+12 lines, -10 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/strict-mode.js
|
View
|
|
2 chunks |
+44 lines, -43 lines |
0 comments
|
Download
|
|
M |
test/test262-es6/test262-es6.status
|
View
|
1
2
3
4
|
1 chunk |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
test/test262/test262.status
|
View
|
1
2
3
4
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/webkit/object-literal-syntax.js
|
View
|
|
1 chunk |
+14 lines, -14 lines |
0 comments
|
Download
|
|
M |
test/webkit/object-literal-syntax-expected.txt
|
View
|
|
2 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
Total messages: 19 (1 generated)
|