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

Issue 1418623007: [runtime] Fix ES6 9.2.1 [[Call]] when encountering a classConstructor. (Closed)

Created:
5 years, 2 months ago by Camillo Bruni
Modified:
5 years, 1 month ago
CC:
v8-ppc-ports_googlegroups.com, v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] Fix ES6 9.2.1 [[Call]] when encountering a classConstructor. The current implementation of classes throws the TypeError at the wrong point, after activating a new context when directly calling a class constructor. According to the spec, the TypeError has to be thrown in the caller context. LOG=N BUG=v8:4428 Committed: https://crrev.com/6a06bc0a774933719f62009d81b3f1686d83bb90 Cr-Commit-Position: refs/heads/master@{#31786}

Patch Set 1 #

Total comments: 14

Patch Set 2 : cleanup #

Patch Set 3 : more platforms #

Patch Set 4 : fix #

Patch Set 5 : arm64 fix #

Patch Set 6 : ia32 #

Patch Set 7 : call ic fix #

Patch Set 8 : more call ic #

Patch Set 9 : ia32 #

Patch Set 10 : cleanup #

Patch Set 11 : phat phinger #

Patch Set 12 : changing registers #

Patch Set 13 : fixing arm64 issues #

Patch Set 14 : ia32 should follow x64 #

Patch Set 15 : arm64 #

Patch Set 16 : ia32 fix + compiler hints FunctionKind cleanup #

Patch Set 17 : arm it #

Patch Set 18 : mips #

Total comments: 6

Patch Set 19 : addressing comments #

Patch Set 20 : missing mips change #

Patch Set 21 : Do not use kNear jump on x64 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -135 lines) Patch
M src/arm/builtins-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +17 lines, -4 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +29 lines, -1 line 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +20 lines, -5 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +40 lines, -1 line 0 comments Download
M src/globals.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +17 lines, -4 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +31 lines, -3 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +18 lines, -3 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +28 lines, -1 line 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +18 lines, -3 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +28 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +47 lines, -34 lines 0 comments Download
M src/ppc/builtins-ppc.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
M src/runtime/runtime-function.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +16 lines, -4 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +40 lines, -8 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +37 lines, -49 lines 0 comments Download
M test/mjsunit/array-iteration.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +27 lines, -9 lines 0 comments Download
M test/mjsunit/es6/classes.js View 1 chunk +25 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
Camillo Bruni
PTAL, Is this roughly what you intended for the fullcodegen ICStubs?
5 years, 2 months ago (2015-10-22 10:49:59 UTC) #2
Benedikt Meurer
https://codereview.chromium.org/1418623007/diff/1/src/x64/builtins-x64.cc File src/x64/builtins-x64.cc (right): https://codereview.chromium.org/1418623007/diff/1/src/x64/builtins-x64.cc#newcode1719 src/x64/builtins-x64.cc:1719: STATIC_ASSERT(SharedFunctionInfo::kNativeByteOffset == Move the STATIC_ASSERT to the actual use ...
5 years, 2 months ago (2015-10-22 11:08:05 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418623007/180002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418623007/180002
5 years, 1 month ago (2015-11-03 10:03:22 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-03 10:29:56 UTC) #8
Camillo Bruni
PTAL For now I didn't merge the CallFunction builtin with the code in the CallIC ...
5 years, 1 month ago (2015-11-03 16:05:27 UTC) #9
Benedikt Meurer
https://codereview.chromium.org/1418623007/diff/180002/src/arm/builtins-arm.cc File src/arm/builtins-arm.cc (right): https://codereview.chromium.org/1418623007/diff/180002/src/arm/builtins-arm.cc#newcode1561 src/arm/builtins-arm.cc:1561: STATIC_ASSERT((FunctionKind::kClassConstructor << kSmiTagSize) < Please use the kFooBitWithinByte trick ...
5 years, 1 month ago (2015-11-04 02:56:43 UTC) #10
Camillo Bruni
PTAL Introducing and Using kClassConstructorBitsWithinByte for consistency https://codereview.chromium.org/1418623007/diff/180002/src/arm/builtins-arm.cc File src/arm/builtins-arm.cc (right): https://codereview.chromium.org/1418623007/diff/180002/src/arm/builtins-arm.cc#newcode1561 src/arm/builtins-arm.cc:1561: STATIC_ASSERT((FunctionKind::kClassConstructor << ...
5 years, 1 month ago (2015-11-04 10:47:32 UTC) #11
Benedikt Meurer
Thanks. LGTM.
5 years, 1 month ago (2015-11-04 10:51:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418623007/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418623007/370001
5 years, 1 month ago (2015-11-04 12:58:59 UTC) #14
commit-bot: I haz the power
Committed patchset #20 (id:370001)
5 years, 1 month ago (2015-11-04 13:23:51 UTC) #15
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/6a06bc0a774933719f62009d81b3f1686d83bb90 Cr-Commit-Position: refs/heads/master@{#31786}
5 years, 1 month ago (2015-11-04 13:24:22 UTC) #16
Camillo Bruni
A revert of this CL (patchset #20 id:370001) has been created in https://codereview.chromium.org/1415783006/ by cbruni@chromium.org. ...
5 years, 1 month ago (2015-11-04 13:55:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418623007/390001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418623007/390001
5 years, 1 month ago (2015-11-04 14:06:11 UTC) #20
commit-bot: I haz the power
Committed patchset #21 (id:390001)
5 years, 1 month ago (2015-11-04 14:30:00 UTC) #21
commit-bot: I haz the power
Patchset 21 (id:??) landed as https://crrev.com/ab84025977fb94bebf7d4d83b874da5a6c1c6293 Cr-Commit-Position: refs/heads/master@{#31790}
5 years, 1 month ago (2015-11-04 14:30:16 UTC) #22
Camillo Bruni
5 years, 1 month ago (2015-11-04 15:44:26 UTC) #24
Camillo Bruni
Could the MIPS team please check this CL? Thanks :)
5 years, 1 month ago (2015-11-05 09:40:14 UTC) #25
akos.palfi.imgtec
5 years, 1 month ago (2015-11-05 10:40:58 UTC) #26
Message was sent while issue was closed.
On 2015/11/05 09:40:14, cbruni wrote:
> Could the MIPS team please check this CL? Thanks :)

MIPS part LGTM, thanks!

Powered by Google App Engine
This is Rietveld 408576698