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

Issue 2275293002: [WASM] Implements catch for the wasm low level exception mechanism. (Closed)

Created:
4 years, 3 months ago by John
Modified:
4 years, 2 months ago
Reviewers:
titzer, bradnelson
CC:
v8-reviews_googlegroups.com, v8-arm-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[WASM] Implements catch for the wasm low level exception mechanism. BUG= Committed: https://crrev.com/93e5425c46453764779bd557628d61fae670027a Cr-Commit-Position: refs/heads/master@{#39881}

Patch Set 1 #

Patch Set 2 : Updates the unwinder. #

Patch Set 3 : Still trying #

Patch Set 4 : First working draft #

Patch Set 5 : baseline testes implemented. #

Patch Set 6 : Adds code lookup back. #

Patch Set 7 : Attempts to handle smis in wasm-compiler (for catching) #

Patch Set 8 : Handles SMIs in wasm. #

Patch Set 9 : pre-review changes #

Patch Set 10 : git pull #

Patch Set 11 : Minor test change. #

Patch Set 12 : Test changes #

Total comments: 14

Patch Set 13 : Restores csp when unwinding. #

Patch Set 14 : Git pull #

Total comments: 6

Patch Set 15 : Addresses comments; git pull; minor refactor in how exception control nodes are created. #

Total comments: 4

Patch Set 16 : Addresses comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -87 lines) Patch
M src/arm64/code-stubs-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -4 lines 0 comments Download
M src/compiler/wasm-compiler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -6 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +68 lines, -17 lines 0 comments Download
M src/frames.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/frames.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +24 lines, -2 lines 0 comments Download
M src/isolate-inl.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-wasm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +11 lines, -0 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +99 lines, -40 lines 0 comments Download
M test/mjsunit/wasm/exceptions.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +333 lines, -17 lines 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (32 generated)
John
4 years, 2 months ago (2016-09-26 17:37:35 UTC) #16
bradnelson
Mystified by failures. Will look more tomorrow. https://codereview.chromium.org/2275293002/diff/220001/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/2275293002/diff/220001/src/compiler/instruction-selector.cc#newcode1700 src/compiler/instruction-selector.cc:1700: LinkageLocation ExceptionLocation() ...
4 years, 2 months ago (2016-09-27 04:25:56 UTC) #19
titzer
Looks mostly good from my side. https://codereview.chromium.org/2275293002/diff/220001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2275293002/diff/220001/src/compiler/wasm-compiler.cc#newcode1737 src/compiler/wasm-compiler.cc:1737: Node* value = ...
4 years, 2 months ago (2016-09-28 12:53:31 UTC) #21
John
https://codereview.chromium.org/2275293002/diff/220001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2275293002/diff/220001/src/wasm/ast-decoder.cc#newcode1454 src/wasm/ast-decoder.cc:1454: SsaEnv* success_env = Steal(ssa_env_); On 2016/09/28 12:53:31, titzer wrote: ...
4 years, 2 months ago (2016-09-28 13:11:26 UTC) #22
John
https://codereview.chromium.org/2275293002/diff/220001/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/2275293002/diff/220001/src/compiler/instruction-selector.cc#newcode1700 src/compiler/instruction-selector.cc:1700: LinkageLocation ExceptionLocation() { On 2016/09/27 04:25:56, bradnelson wrote: > ...
4 years, 2 months ago (2016-09-28 13:37:18 UTC) #23
titzer
https://codereview.chromium.org/2275293002/diff/220001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2275293002/diff/220001/src/wasm/ast-decoder.cc#newcode1454 src/wasm/ast-decoder.cc:1454: SsaEnv* success_env = Steal(ssa_env_); On 2016/09/28 13:11:26, John wrote: ...
4 years, 2 months ago (2016-09-28 14:08:20 UTC) #24
John
ptal
4 years, 2 months ago (2016-09-28 16:45:17 UTC) #27
titzer
lgtm with comments https://codereview.chromium.org/2275293002/diff/260001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2275293002/diff/260001/src/isolate.cc#newcode1173 src/isolate.cc:1173: if (frame->is_wasm() && catchable_by_wasm) { What ...
4 years, 2 months ago (2016-09-28 17:09:14 UTC) #28
John
https://codereview.chromium.org/2275293002/diff/260001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2275293002/diff/260001/src/isolate.cc#newcode1173 src/isolate.cc:1173: if (frame->is_wasm() && catchable_by_wasm) { On 2016/09/28 17:09:14, titzer ...
4 years, 2 months ago (2016-09-29 13:28:31 UTC) #32
titzer
https://codereview.chromium.org/2275293002/diff/280001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2275293002/diff/280001/src/compiler/wasm-compiler.cc#newcode2045 src/compiler/wasm-compiler.cc:2045: Node* WasmGraphBuilder::BuildWasmCall(wasm::FunctionSig* sig, Node** args, I think this would ...
4 years, 2 months ago (2016-09-29 13:33:59 UTC) #34
John
https://codereview.chromium.org/2275293002/diff/280001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2275293002/diff/280001/src/compiler/wasm-compiler.cc#newcode2045 src/compiler/wasm-compiler.cc:2045: Node* WasmGraphBuilder::BuildWasmCall(wasm::FunctionSig* sig, Node** args, On 2016/09/29 13:33:59, titzer ...
4 years, 2 months ago (2016-09-29 13:52:05 UTC) #36
titzer
lgtm
4 years, 2 months ago (2016-09-29 13:55:35 UTC) #39
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/2275293002/300001
4 years, 2 months ago (2016-09-29 15:56:48 UTC) #43
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 2 months ago (2016-09-29 15:59:20 UTC) #45
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/93e5425c46453764779bd557628d61fae670027a Cr-Commit-Position: refs/heads/master@{#39881}
4 years, 2 months ago (2016-09-29 15:59:44 UTC) #47
Michael Achenbach
4 years, 2 months ago (2016-09-29 18:00:15 UTC) #48
Message was sent while issue was closed.
A revert of this CL (patchset #16 id:300001) has been created in
https://codereview.chromium.org/2383613002/ by machenbach@chromium.org.

The reason for reverting is: nosse4 errors:
https://build.chromium.org/p/client.v8/builders/V8%20Linux/builds/13524
https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20debug/builds....

Powered by Google App Engine
This is Rietveld 408576698