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

Issue 1613443002: [interpreter] Implement handling of try-finally constructs. (Closed)

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

Description

[interpreter] Implement handling of try-finally constructs. This models function local control flow through try-finally constructs using a token dispatch mechanism. All paths through the finally block are assigned a token, at the end of the finally block a switch construct dispatches according to this token. R=oth@chromium.org,rmcilroy@chromium.org BUG=v8:4674 LOG=n Committed: https://crrev.com/e175e39fed332867635550cbbc8b6cc274fd2dab Cr-Commit-Position: refs/heads/master@{#33465}

Patch Set 1 #

Patch Set 2 : Fix some issues. #

Patch Set 3 : Add interpreter tests. #

Total comments: 16

Patch Set 4 : Adapt existing test. #

Patch Set 5 : Addressed comments. #

Patch Set 6 : Addressed comments. #

Total comments: 6

Patch Set 7 : Addressed comments. #

Patch Set 8 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -43 lines) Patch
M src/interpreter/bytecode-generator.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 10 chunks +218 lines, -6 lines 0 comments Download
M src/interpreter/control-flow-builders.h View 1 1 chunk +9 lines, -1 line 0 comments Download
M src/interpreter/control-flow-builders.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 1 chunk +65 lines, -29 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 3 4 5 6 7 1 chunk +37 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (4 generated)
Michael Starzinger
Note that I still need to adapt the bytecode generator tests to the changes of ...
4 years, 11 months ago (2016-01-21 12:40:32 UTC) #1
oth
This is great. Looks good to go when the test changes are ready. https://codereview.chromium.org/1613443002/diff/40001/src/interpreter/bytecode-generator.cc File ...
4 years, 11 months ago (2016-01-21 14:06:44 UTC) #2
Michael Starzinger
Thanks. Addressed comments. Need one more tiny fix in a separate CL, then we are ...
4 years, 11 months ago (2016-01-21 14:24:53 UTC) #3
rmcilroy
Looks great, just nits and bytecode generator tests. https://codereview.chromium.org/1613443002/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1613443002/diff/40001/src/interpreter/bytecode-generator.cc#newcode133 src/interpreter/bytecode-generator.cc:133: // ...
4 years, 11 months ago (2016-01-21 14:30:49 UTC) #4
Michael Starzinger
PTAL. Comments addressed. This should be ready to go now. https://codereview.chromium.org/1613443002/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1613443002/diff/40001/src/interpreter/bytecode-generator.cc#newcode133 ...
4 years, 11 months ago (2016-01-22 10:18:11 UTC) #5
oth
lgtm, thx!
4 years, 11 months ago (2016-01-22 11:42:58 UTC) #6
rmcilroy
lgtm https://codereview.chromium.org/1613443002/diff/100001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1613443002/diff/100001/src/interpreter/bytecode-generator.cc#newcode200 src/interpreter/bytecode-generator.cc:200: virtual bool Execute(Command command, Statement* statement) { /s/virtual/override ...
4 years, 11 months ago (2016-01-22 11:44:11 UTC) #7
Michael Starzinger
Thanks. Preparing to land ... https://codereview.chromium.org/1613443002/diff/100001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1613443002/diff/100001/src/interpreter/bytecode-generator.cc#newcode200 src/interpreter/bytecode-generator.cc:200: virtual bool Execute(Command command, ...
4 years, 11 months ago (2016-01-22 11:55:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1613443002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613443002/160001
4 years, 11 months ago (2016-01-22 12:42:03 UTC) #12
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 11 months ago (2016-01-22 12:43:15 UTC) #13
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 12:44:04 UTC) #15
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e175e39fed332867635550cbbc8b6cc274fd2dab
Cr-Commit-Position: refs/heads/master@{#33465}

Powered by Google App Engine
This is Rietveld 408576698