|
[runtime] Throw exception for derived constructors in correct context.
When derived constructors return a non-object (or not undefined) we
currently throw an exception directly in the callee context. This was
achieved by desugaring the return statement for derived classes. To
be spec compliamnt a separate ConstructStubForDerived is introduced.
Instead of trowing directly, the desugared return statement inside
a derived constructor only returns an integer to indicate an incompatible
result.
BUG= v8:4509
LOG=n
Committed: https://crrev.com/c86f1897ac52f2cae088d6cab8843216bdaa9396
Cr-Commit-Position: refs/heads/master@{#33336}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+227 lines, -73 lines) |
Patch |
|
M |
src/arm/builtins-arm.cc
|
View
|
1
2
3
|
3 chunks |
+24 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/arm64/builtins-arm64.cc
|
View
|
1
2
3
|
3 chunks |
+24 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/builtins.h
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/builtins-ia32.cc
|
View
|
1
2
3
|
4 chunks |
+25 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/mips/builtins-mips.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/mips64/builtins-mips64.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/parsing/parser.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/ppc/builtins-ppc.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
1
2
3
4
5
|
1 chunk |
+44 lines, -43 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-classes.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/runtime/runtime-internal.cc
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/x64/builtins-x64.cc
|
View
|
1
2
3
|
3 chunks |
+24 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/x87/builtins-x87.cc
|
View
|
1
2
3
|
3 chunks |
+24 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.status
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/regress/regress-4509-Class-constructor-typeerror-realm.js
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
Total messages: 32 (15 generated)
|