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

Issue 873423004: First stab at try-catch and try-finally in TurboFan. (Closed)

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

Description

First stab at try-catch and try-finally in TurboFan. R=titzer@chromium.org,jarin@chromium.org TEST=cctest/test-run-jsexceptions Committed: https://crrev.com/77d612691d79b7c9c8dbc6936b406d1dd4a4ba2b Cr-Commit-Position: refs/heads/master@{#26398}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed comments by Ben Titzer #

Patch Set 3 : Temporary workaround for bailout ID. #

Patch Set 4 : Fix for 64-bit architectures. #

Total comments: 4

Patch Set 5 : Addressed moar comments by Ben Titzer. #

Patch Set 6 : Rebased. #

Patch Set 7 : Whitespace change. #

Total comments: 2

Patch Set 8 : Addressed moarer comments by Ben Titzer. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+611 lines, -89 lines) Patch
M src/compiler/ast-graph-builder.h View 1 2 3 4 5 6 chunks +13 lines, -41 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 6 7 12 chunks +363 lines, -36 lines 0 comments Download
M src/compiler/control-builders.h View 1 2 3 4 5 6 3 chunks +53 lines, -6 lines 0 comments Download
M src/compiler/control-builders.cc View 1 2 3 4 5 6 1 chunk +56 lines, -1 line 0 comments Download
M src/compiler/graph-builder.h View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M src/compiler/js-operator.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/compiler/test-run-jsexceptions.cc View 1 2 3 4 1 chunk +114 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
Michael Starzinger
Note that this only implements local exceptional control-flow (as in 'throw' in the same function ...
5 years, 10 months ago (2015-01-30 14:30:27 UTC) #1
titzer
https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc#newcode351 src/compiler/ast-graph-builder.cc:351: return owner_->NewNode(owner_->javascript()->StrictEqual(), t1, t2); I think you want pointer/integer ...
5 years, 10 months ago (2015-02-02 09:47:29 UTC) #2
Michael Starzinger
https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc#newcode351 src/compiler/ast-graph-builder.cc:351: return owner_->NewNode(owner_->javascript()->StrictEqual(), t1, t2); On 2015/02/02 09:47:29, titzer wrote: ...
5 years, 10 months ago (2015-02-02 14:47:41 UTC) #3
Michael Starzinger
Added workaround. PTAL. https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc#newcode2570 src/compiler/ast-graph-builder.cc:2570: // TODO(mstarzinger): Thread through the correct ...
5 years, 10 months ago (2015-02-02 15:08:02 UTC) #4
Michael Starzinger
Had to re-iterate on one of your comments. PTAL. https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc#newcode351 src/compiler/ast-graph-builder.cc:351: ...
5 years, 10 months ago (2015-02-02 17:08:42 UTC) #5
titzer
On 2015/02/02 14:47:41, Michael Starzinger wrote: > https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc > File src/compiler/ast-graph-builder.cc (right): > > https://codereview.chromium.org/873423004/diff/1/src/compiler/ast-graph-builder.cc#newcode351 ...
5 years, 10 months ago (2015-02-03 08:56:14 UTC) #6
titzer
On 2015/02/02 17:08:42, Michael Starzinger wrote: > Had to re-iterate on one of your comments. ...
5 years, 10 months ago (2015-02-03 08:56:33 UTC) #7
titzer
https://codereview.chromium.org/873423004/diff/60001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/873423004/diff/60001/src/compiler/ast-graph-builder.cc#newcode457 src/compiler/ast-graph-builder.cc:457: void AstGraphBuilder::ControlScope::BreakTarget(BreakableStatement* stmt) { The names {BreakTarget} and {ContinueTarget} ...
5 years, 10 months ago (2015-02-03 09:01:22 UTC) #8
Michael Starzinger
https://codereview.chromium.org/873423004/diff/60001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/873423004/diff/60001/src/compiler/ast-graph-builder.cc#newcode457 src/compiler/ast-graph-builder.cc:457: void AstGraphBuilder::ControlScope::BreakTarget(BreakableStatement* stmt) { On 2015/02/03 09:01:22, titzer wrote: ...
5 years, 10 months ago (2015-02-03 09:18:53 UTC) #9
Michael Starzinger
Rebased. PTAL. https://codereview.chromium.org/873423004/diff/1/src/compiler/graph-builder.h File src/compiler/graph-builder.h (right): https://codereview.chromium.org/873423004/diff/1/src/compiler/graph-builder.h#newcode238 src/compiler/graph-builder.h:238: // Friends using the values vector. On ...
5 years, 10 months ago (2015-02-03 09:35:18 UTC) #10
titzer
LGTM with comment https://codereview.chromium.org/873423004/diff/140001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/873423004/diff/140001/src/compiler/ast-graph-builder.cc#newcode86 src/compiler/ast-graph-builder.cc:86: virtual bool Execute(Command cmd, Statement* target, ...
5 years, 10 months ago (2015-02-03 09:50:13 UTC) #12
Michael Starzinger
https://codereview.chromium.org/873423004/diff/140001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/873423004/diff/140001/src/compiler/ast-graph-builder.cc#newcode86 src/compiler/ast-graph-builder.cc:86: virtual bool Execute(Command cmd, Statement* target, Node* value) OVERRIDE; ...
5 years, 10 months ago (2015-02-03 09:59:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/873423004/160001
5 years, 10 months ago (2015-02-03 12:06:15 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 10 months ago (2015-02-03 13:09:50 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 13:10:12 UTC) #17
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/77d612691d79b7c9c8dbc6936b406d1dd4a4ba2b
Cr-Commit-Position: refs/heads/master@{#26398}

Powered by Google App Engine
This is Rietveld 408576698