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

Issue 1665833002: [interpreter] Switch context during stack unwinding. (Closed)

Created:
4 years, 10 months ago by Michael Starzinger
Modified:
4 years, 10 months ago
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] Switch context during stack unwinding. This implements proper context switching while unwinding the stack due to an exception being handled in interpreted code. The context under which the handler is scoped is being preserved in a dedicated register while the try-block is running. Both, the stack unwinding machinery as well as the graph builder, restore the context from that register. R=rmcilroy@chromium.org,bmeurer@chromium.org BUG=v8:4674 LOG=n Committed: https://crrev.com/76bfc16bead1e41c977eb39790ab24400341d555 Cr-Commit-Position: refs/heads/master@{#33733}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebased. #

Patch Set 3 : Enable tests. #

Patch Set 4 : Disable tests. #

Total comments: 2

Patch Set 5 : Addressed comment. #

Patch Set 6 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -25 lines) Patch
M src/compiler/bytecode-graph-builder.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M src/frames.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/frames.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M src/isolate.cc View 3 chunks +9 lines, -7 lines 0 comments Download
M src/objects.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 5 8 chunks +22 lines, -11 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Michael Starzinger
https://codereview.chromium.org/1665833002/diff/1/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1665833002/diff/1/src/compiler/bytecode-graph-builder.cc#newcode1669 src/compiler/bytecode-graph-builder.cc:1669: int next_depth = table->GetRangeDepth(current_exception_handler_); disclosure: I understand that the ...
4 years, 10 months ago (2016-02-03 14:34:01 UTC) #1
rmcilroy
Nice, LGTM. https://codereview.chromium.org/1665833002/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1665833002/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode1675 src/compiler/bytecode-graph-builder.cc:1675: int next_depth = table->GetRangeDepth(current_exception_handler_); nit - could ...
4 years, 10 months ago (2016-02-04 12:22:49 UTC) #3
Michael Starzinger
Thanks. Addressed comments. Will rebase and land now. https://codereview.chromium.org/1665833002/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1665833002/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode1675 src/compiler/bytecode-graph-builder.cc:1675: int ...
4 years, 10 months ago (2016-02-04 12:40:32 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1665833002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1665833002/100001
4 years, 10 months ago (2016-02-04 13:42:17 UTC) #7
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-04 13:43:50 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 13:44:03 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/76bfc16bead1e41c977eb39790ab24400341d555
Cr-Commit-Position: refs/heads/master@{#33733}

Powered by Google App Engine
This is Rietveld 408576698