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

Issue 1222843004: [turbofan] Unify various bailout hacks for super call. (Closed)

Created:
5 years, 5 months ago by Michael Starzinger
Modified:
5 years, 5 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@local_cleanup-frame-constants-1
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Unify various bailout hacks for super call. This removes various boilouts for super constructor calls from the TurboFan pipeline and unifies them. It also disables and optimization which breaks references to uninitialized const this variables. R=bmeurer@chromium.org Committed: https://crrev.com/cc149578cf1ee5c59fbc8cb0ff4b1455b11717ba Cr-Commit-Position: refs/heads/master@{#29516}

Patch Set 1 #

Patch Set 2 : Fix throwing of reference error. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -19 lines) Patch
M src/compiler/ast-graph-builder.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 5 chunks +36 lines, -12 lines 6 comments Download
M src/compiler/pipeline.cc View 1 chunk +0 lines, -7 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 11 (3 generated)
Michael Starzinger
5 years, 5 months ago (2015-07-07 10:40:09 UTC) #1
Benedikt Meurer
lgtm
5 years, 5 months ago (2015-07-07 10:41:40 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222843004/20001
5 years, 5 months ago (2015-07-07 13:24:22 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-07 13:25:58 UTC) #6
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/cc149578cf1ee5c59fbc8cb0ff4b1455b11717ba Cr-Commit-Position: refs/heads/master@{#29516}
5 years, 5 months ago (2015-07-07 13:33:50 UTC) #7
arv (Not doing code reviews)
https://codereview.chromium.org/1222843004/diff/20001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/1222843004/diff/20001/src/compiler/ast-graph-builder.cc#newcode2839 src/compiler/ast-graph-builder.cc:2839: Node* value = BuildThrowUnsupportedSuperError(expr->id()); Shouldn't this be UNREACHABLE? We ...
5 years, 5 months ago (2015-07-07 15:48:09 UTC) #9
Michael Starzinger
https://codereview.chromium.org/1222843004/diff/20001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/1222843004/diff/20001/src/compiler/ast-graph-builder.cc#newcode2839 src/compiler/ast-graph-builder.cc:2839: Node* value = BuildThrowUnsupportedSuperError(expr->id()); On 2015/07/07 15:48:09, arv wrote: ...
5 years, 5 months ago (2015-07-07 15:59:58 UTC) #10
arv (Not doing code reviews)
5 years, 5 months ago (2015-07-07 16:04:43 UTC) #11
Message was sent while issue was closed.
LGTM

https://codereview.chromium.org/1222843004/diff/20001/src/compiler/ast-graph-...
File src/compiler/ast-graph-builder.cc (right):

https://codereview.chromium.org/1222843004/diff/20001/src/compiler/ast-graph-...
src/compiler/ast-graph-builder.cc:2839: Node* value =
BuildThrowUnsupportedSuperError(expr->id());
On 2015/07/07 15:59:58, Michael Starzinger wrote:
> On 2015/07/07 15:48:09, arv wrote:
> > Shouldn't this be UNREACHABLE? We are supposed to handle all of these at a
> > higher level.
> 
> Yeah, I though so too. Please admire patch set #1 and the associated failures
of
> the try job.

I see.

This one comes from

  delete (super.prop)

and it looks like we do need to keek the throw here.

https://codereview.chromium.org/1222843004/diff/20001/src/compiler/ast-graph-...
src/compiler/ast-graph-builder.cc:2845: Node* value =
BuildThrowUnsupportedSuperError(expr->id());
On 2015/07/07 15:59:58, Michael Starzinger wrote:
> On 2015/07/07 15:48:09, arv wrote:
> > Same here. I don't see how these errors can ever be observed?
> 
> Likewise.

This one on the other hand I don't think we can get to.

I'll make the change locally and see what might break.

Powered by Google App Engine
This is Rietveld 408576698