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

Issue 1607433005: [interpreter] Implement exception handler table building. (Closed)

Created:
4 years, 11 months ago by Michael Starzinger
Modified:
4 years, 11 months ago
Reviewers:
oth
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[interpreter] Implement exception handler table building. This implements a first version of exception handler table construction within the interpreter. Note that the local control flow for try-catch and try-finally statements is still off, and also stack unwinding does not yet respect interpreter frames. But generated handler tables should be populated correctly already. R=oth@chromium.org BUG=v8:4674 LOG=n Committed: https://crrev.com/82716f1ceafda78af661427ae38384d1c64e7902 Cr-Commit-Position: refs/heads/master@{#33400}

Patch Set 1 #

Patch Set 2 : Fix comment typo. #

Patch Set 3 : Drop bogus context pushes. #

Patch Set 4 : Fix compilation in release mode. #

Patch Set 5 : Adapt existing tests. #

Patch Set 6 : Add checking of handler table. #

Patch Set 7 : Rebased. #

Total comments: 2

Patch Set 8 : Added moar tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -38 lines) Patch
M BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 4 5 6 3 chunks +25 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 1 chunk +55 lines, -11 lines 0 comments Download
M src/interpreter/control-flow-builders.h View 1 chunk +33 lines, -0 lines 0 comments Download
M src/interpreter/control-flow-builders.cc View 1 chunk +33 lines, -0 lines 0 comments Download
A src/interpreter/handler-table-builder.h View 1 chunk +61 lines, -0 lines 0 comments Download
A src/interpreter/handler-table-builder.cc View 1 chunk +73 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.cc View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 5 6 7 6 chunks +145 lines, -23 lines 0 comments Download
M tools/gyp/v8.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Michael Starzinger
Note that tests are still missing, but I wanted to get a first comment on ...
4 years, 11 months ago (2016-01-18 20:11:35 UTC) #2
oth
Looks great modulo tests.
4 years, 11 months ago (2016-01-19 09:20:08 UTC) #3
Michael Starzinger
On 2016/01/19 09:20:08, oth wrote: > Looks great modulo tests. Thanks! As discussed offline, I ...
4 years, 11 months ago (2016-01-19 09:39:15 UTC) #4
Michael Starzinger
PTAL. Ready for final review.
4 years, 11 months ago (2016-01-19 16:29:30 UTC) #5
oth
Looks great. LGTM. Perhaps a couple more tests for the paranoid. https://codereview.chromium.org/1607433005/diff/120001/test/cctest/interpreter/test-bytecode-generator.cc File test/cctest/interpreter/test-bytecode-generator.cc (right): ...
4 years, 11 months ago (2016-01-20 08:01:33 UTC) #6
Michael Starzinger
Thanks. Comments addressed. Landing. https://codereview.chromium.org/1607433005/diff/120001/test/cctest/interpreter/test-bytecode-generator.cc File test/cctest/interpreter/test-bytecode-generator.cc (right): https://codereview.chromium.org/1607433005/diff/120001/test/cctest/interpreter/test-bytecode-generator.cc#newcode4236 test/cctest/interpreter/test-bytecode-generator.cc:4236: B(LdaSmi8), U8(1), // On 2016/01/20 ...
4 years, 11 months ago (2016-01-20 10:19:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607433005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607433005/140001
4 years, 11 months ago (2016-01-20 10:26:36 UTC) #10
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 11 months ago (2016-01-20 10:46:24 UTC) #12
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 10:47:25 UTC) #14
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/82716f1ceafda78af661427ae38384d1c64e7902
Cr-Commit-Position: refs/heads/master@{#33400}

Powered by Google App Engine
This is Rietveld 408576698