|
Array length reduction should throw in strict mode if it can't delete an element.
When accessor getter callback is called the v8::PropertyCallbackInfo::ShouldThrowOnError() is always false, since according to ES6 there's no difference between strict and non-strict property loads. For the setter case the v8::PropertyCallbackInfo::ShouldThrowOnError() returns true if the property is set in strict context.
Interceptors follow same idea: for getter, enumerator and query callbacks the v8::PropertyCallbackInfo::ShouldThrowOnError() is always false, and for setter and deleter callback the v8::PropertyCallbackInfo::ShouldThrowOnError() returns true in strict context.
This CL also cleans up the CallApiGetterStub and removes bogus asserts from [arm] Push(reg1, reg2, ..., regN) that prevented from pushing a set of registers containing duplicates.
BUG= v8:4267
LOG=Y
Committed: https://crrev.com/1d3e837fcbbd9d9fd5e72dfe85dfd47c025f3c9f
Cr-Commit-Position: refs/heads/master@{#33438}
Committed: https://crrev.com/ed2be747ad13746797b655fa4f5c23dc6b0ef3e3
Cr-Commit-Position: refs/heads/master@{#33461}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+649 lines, -310 lines) |
Patch |
|
M |
include/v8.h
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/accessors.cc
|
View
|
1
2
3
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/arguments.h
|
View
|
1
2
3
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/arguments.cc
|
View
|
1
2
|
1 chunk |
+8 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/arm/code-stubs-arm.cc
|
View
|
1
2
3
|
1 chunk |
+17 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/arm/macro-assembler-arm.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/arm64/code-stubs-arm64.cc
|
View
|
1
2
3
|
2 chunks |
+16 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/ia32/code-stubs-ia32.cc
|
View
|
1
2
3
|
1 chunk |
+27 lines, -15 lines |
0 comments
|
Download
|
|
M |
src/ic/arm/handler-compiler-arm.cc
|
View
|
1
2
3
|
3 chunks |
+25 lines, -22 lines |
0 comments
|
Download
|
|
M |
src/ic/arm64/handler-compiler-arm64.cc
|
View
|
1
2
3
|
4 chunks |
+17 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/ic/handler-compiler.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/ic/ia32/handler-compiler-ia32.cc
|
View
|
1
2
3
|
4 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/ic/ic.cc
|
View
|
1
2
3
|
4 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ic/mips/handler-compiler-mips.cc
|
View
|
1
2
3
|
3 chunks |
+37 lines, -26 lines |
0 comments
|
Download
|
|
M |
src/ic/mips64/handler-compiler-mips64.cc
|
View
|
1
2
3
|
3 chunks |
+37 lines, -26 lines |
0 comments
|
Download
|
|
M |
src/ic/ppc/handler-compiler-ppc.cc
|
View
|
1
2
3
|
3 chunks |
+26 lines, -22 lines |
0 comments
|
Download
|
|
M |
src/ic/x64/handler-compiler-x64.cc
|
View
|
1
2
3
|
4 chunks |
+22 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/ic/x87/handler-compiler-x87.cc
|
View
|
1
2
3
|
4 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/mips/code-stubs-mips.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+17 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/mips64/code-stubs-mips64.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+18 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
2
3
4
5
6
7
|
12 chunks |
+22 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/objects-printer.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/ppc/code-stubs-ppc.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/x64/code-stubs-x64.cc
|
View
|
1
2
3
|
3 chunks |
+20 lines, -19 lines |
0 comments
|
Download
|
|
M |
src/x87/code-stubs-x87.cc
|
View
|
1
2
3
|
1 chunk |
+27 lines, -15 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-api.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+197 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/regress/regress-4267.js
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
Total messages: 69 (39 generated)
|