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

Issue 2216353002: [turbofan] Also inline into try blocks. (Closed)

Created:
4 years, 4 months ago by bgeron
Modified:
4 years, 3 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@p5-base
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Also inline into try blocks. This removes test/webkit/fast/js/stack-overflow-arrity-catch.js, which tests that the stack overflows in a very particular way. It doesn't seem to test anything important, and only used to work because we didn't inline into try-blocks. BUG= R=jarin Committed: https://crrev.com/791118fca523d4d868860be68f0a3d520a3a24cd Cr-Commit-Position: refs/heads/master@{#38976}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Inline not two opcodes, but all nodes with IfSuccess and no IfException. Also, remove dead code. #

Patch Set 3 : Extra DCHECK; refactor as suggested. #

Patch Set 4 : Remove failing test; it doesn't seem to test anything useful and breaks when inlining. #

Patch Set 5 : Don't inspect control outputs if the operator is NoThrow #

Total comments: 18

Patch Set 6 : Address feedback. #

Patch Set 7 : Stop caring about the presence of IfSuccess. Depend on earlier-landed patch. Curtail failing test. #

Patch Set 8 : Depend on changelist 2245263003 which consists of only the tests. #

Total comments: 2

Patch Set 9 : Put inlining into try behind flag. 482: Style. Piggyback spelling fixes. #

Patch Set 10 : Depend on newer tests. #

Patch Set 11 : Merge with master. #

Patch Set 12 : Fix earlier merge mistake. #

Patch Set 13 : Remove failing test that depends on changing Turbofan internals. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -153 lines) Patch
M src/compiler/all-nodes.h View 1 2 3 4 5 6 2 chunks +9 lines, -3 lines 0 comments Download
M src/compiler/all-nodes.cc View 1 2 3 4 5 6 2 chunks +18 lines, -5 lines 0 comments Download
M src/compiler/js-inlining.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M src/compiler/js-inlining.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +95 lines, -9 lines 0 comments Download
M src/compiler/js-inlining-heuristic.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 chunk +26 lines, -1 line 0 comments Download
A + test/mjsunit/stack-overflow-arity-catch-noinline.js View 1 2 3 4 5 6 1 chunk +21 lines, -17 lines 0 comments Download
D test/webkit/fast/js/stack-overflow-arrity-catch.js View 1 2 3 1 chunk +0 lines, -83 lines 0 comments Download
D test/webkit/fast/js/stack-overflow-arrity-catch-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -33 lines 0 comments Download

Messages

Total messages: 48 (33 generated)
bgeron
4 years, 4 months ago (2016-08-05 12:18:50 UTC) #3
bgeron
This PS still has all tests in one file. In Optdebug on my workstation, the ...
4 years, 4 months ago (2016-08-05 12:23:40 UTC) #4
Jarin
Random comments. https://codereview.chromium.org/2216353002/diff/1/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/2216353002/diff/1/src/compiler/js-inlining.cc#newcode146 src/compiler/js-inlining.cc:146: const Operator* op = common()->IfException(); Nit: no ...
4 years, 4 months ago (2016-08-05 14:04:48 UTC) #7
bgeron
https://codereview.chromium.org/2216353002/diff/1/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/2216353002/diff/1/src/compiler/js-inlining.cc#newcode146 src/compiler/js-inlining.cc:146: const Operator* op = common()->IfException(); On 2016/08/05 14:04:48, Jarin ...
4 years, 4 months ago (2016-08-08 09:30:06 UTC) #17
Jarin
https://codereview.chromium.org/2216353002/diff/80001/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/2216353002/diff/80001/src/compiler/js-inlining.cc#newcode78 src/compiler/js-inlining.cc:78: NodeVector uncaught_subcalls) { You should pass the uncought_subcalls as ...
4 years, 4 months ago (2016-08-10 12:02:52 UTC) #18
bgeron
https://codereview.chromium.org/2216353002/diff/80001/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/2216353002/diff/80001/src/compiler/js-inlining.cc#newcode78 src/compiler/js-inlining.cc:78: NodeVector uncaught_subcalls) { On 2016/08/10 12:02:52, Jarin wrote: > ...
4 years, 4 months ago (2016-08-10 14:37:27 UTC) #19
Jarin
https://codereview.chromium.org/2216353002/diff/80001/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/2216353002/diff/80001/src/compiler/js-inlining.cc#newcode482 src/compiler/js-inlining.cc:482: if (use->opcode() == IrOpcode::kIfSuccess) { On 2016/08/10 14:37:26, bgeron ...
4 years, 4 months ago (2016-08-11 09:54:23 UTC) #20
bgeron
https://codereview.chromium.org/2216353002/diff/80001/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/2216353002/diff/80001/src/compiler/js-inlining.cc#newcode482 src/compiler/js-inlining.cc:482: if (use->opcode() == IrOpcode::kIfSuccess) { On 2016/08/11 09:54:23, Jarin ...
4 years, 4 months ago (2016-08-11 18:55:55 UTC) #22
Jarin
https://codereview.chromium.org/2216353002/diff/160001/src/compiler/js-inlining.cc File src/compiler/js-inlining.cc (right): https://codereview.chromium.org/2216353002/diff/160001/src/compiler/js-inlining.cc#newcode482 src/compiler/js-inlining.cc:482: hasIfException = true; break; ?
4 years, 4 months ago (2016-08-17 11:20:55 UTC) #23
bgeron
Put inlining into try behind flag. Piggybacking spelling fixes. Depending on updated tests, which already ...
4 years, 4 months ago (2016-08-18 17:57:25 UTC) #24
bgeron
What do you think Jaro?
4 years, 3 months ago (2016-08-25 16:27:12 UTC) #41
Jarin
lgtm
4 years, 3 months ago (2016-08-29 09:45:00 UTC) #42
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/2216353002/260001
4 years, 3 months ago (2016-08-29 10:52:13 UTC) #44
commit-bot: I haz the power
Committed patchset #13 (id:260001)
4 years, 3 months ago (2016-08-29 11:26:51 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-08-29 11:27:16 UTC) #48
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/791118fca523d4d868860be68f0a3d520a3a24cd
Cr-Commit-Position: refs/heads/master@{#38976}

Powered by Google App Engine
This is Rietveld 408576698