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

Issue 2409423006: [turbofan] Enable super constructor inlining. (Closed)

Created:
4 years, 2 months ago by Benedikt Meurer
Modified:
4 years, 2 months ago
Reviewers:
Jarin, adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Enable super constructor inlining. When we inlined a [[Construct]] call to a subclass constructor, we can also inline the super constructor call (either explicit or implicit), since we have a concrete JSFunction constant for the subclass and we can thus constant-fold the %_GetSuperConstructor intrinsic. We don't need any guards here since the prototype of subclass constructors is non-writable, non-configurable in ES6. BUG=v8:5517 R=jarin@chromium.org Committed: https://crrev.com/74158b00b3f6a1fc8676dd1f7af4d96131eb5ebe Cr-Commit-Position: refs/heads/master@{#40261}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M src/compiler/js-intrinsic-lowering.cc View 1 chunk +21 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Benedikt Meurer
4 years, 2 months ago (2016-10-13 12:28:56 UTC) #1
Jarin
lgtm
4 years, 2 months ago (2016-10-13 12:32:46 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2409423006/1
4 years, 2 months ago (2016-10-13 12:33:36 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-13 12:56:12 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/74158b00b3f6a1fc8676dd1f7af4d96131eb5ebe Cr-Commit-Position: refs/heads/master@{#40261}
4 years, 2 months ago (2016-10-13 12:56:37 UTC) #10
adamk
bmeurer wrote: > We don't need any guards here since the prototype of subclass constructors ...
4 years, 2 months ago (2016-10-13 16:30:34 UTC) #12
Benedikt Meurer
On 2016/10/13 16:30:34, adamk wrote: > bmeurer wrote: > > We don't need any guards ...
4 years, 2 months ago (2016-10-13 18:03:15 UTC) #13
Benedikt Meurer
4 years, 2 months ago (2016-10-13 18:03:56 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2413883003/ by bmeurer@chromium.org.

The reason for reverting is: As adamk@ pointed out, this is not correct. Some
more changes required instead.

Powered by Google App Engine
This is Rietveld 408576698