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

Issue 2339053003: [V8][Wasm] Wasm throws. (Closed)

Created:
4 years, 3 months ago by John
Modified:
4 years, 3 months ago
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

[V8][Wasm] Wasm throws. This CL implements the throw wasm opcode. This is a pre-requisite for implementing try-catches in wasm. BUG= Committed: https://crrev.com/5855e44c1a193c389d9cd899461092bfbce923a0 Cr-Commit-Position: refs/heads/master@{#39449}

Patch Set 1 #

Patch Set 2 : formats tests #

Patch Set 3 : renames assertThrows to assertWasmThrows #

Patch Set 4 : removes unused function. #

Patch Set 5 : Passes 2 Smis to the runtime function that will perform the throw. #

Total comments: 6

Patch Set 6 : addresses comments #

Total comments: 2

Patch Set 7 : Addresses comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -6 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-wasm.cc View 1 2 3 4 5 2 chunks +13 lines, -2 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
A test/mjsunit/wasm/exceptions.js View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 2 3 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (22 generated)
John
4 years, 3 months ago (2016-09-14 13:21:24 UTC) #6
John
4 years, 3 months ago (2016-09-15 12:19:21 UTC) #14
Michael Starzinger
https://codereview.chromium.org/2339053003/diff/80001/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2339053003/diff/80001/src/runtime/runtime-wasm.cc#newcode25 src/runtime/runtime-wasm.cc:25: CHECK(args[0]->ToUint32(&delta_pages)); nit: I know this is not your code, ...
4 years, 3 months ago (2016-09-15 12:33:36 UTC) #17
John
ptal https://codereview.chromium.org/2339053003/diff/80001/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2339053003/diff/80001/src/runtime/runtime-wasm.cc#newcode25 src/runtime/runtime-wasm.cc:25: CHECK(args[0]->ToUint32(&delta_pages)); On 2016/09/15 12:33:36, Michael Starzinger wrote: > ...
4 years, 3 months ago (2016-09-15 12:42:05 UTC) #18
Michael Starzinger
https://codereview.chromium.org/2339053003/diff/80001/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2339053003/diff/80001/src/runtime/runtime-wasm.cc#newcode25 src/runtime/runtime-wasm.cc:25: CHECK(args[0]->ToUint32(&delta_pages)); On 2016/09/15 12:42:05, John wrote: > On 2016/09/15 ...
4 years, 3 months ago (2016-09-15 12:51:08 UTC) #19
titzer
lgtm https://codereview.chromium.org/2339053003/diff/100001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2339053003/diff/100001/src/compiler/wasm-compiler.cc#newcode1709 src/compiler/wasm-compiler.cc:1709: // Pass the thrown value as two SMIs: ...
4 years, 3 months ago (2016-09-15 12:53:28 UTC) #20
John
https://codereview.chromium.org/2339053003/diff/80001/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2339053003/diff/80001/src/runtime/runtime-wasm.cc#newcode25 src/runtime/runtime-wasm.cc:25: CHECK(args[0]->ToUint32(&delta_pages)); On 2016/09/15 12:51:08, Michael Starzinger wrote: > On ...
4 years, 3 months ago (2016-09-15 14:03:08 UTC) #23
Michael Starzinger
Thanks. LGTM on the "runtime" part FWIW.
4 years, 3 months ago (2016-09-15 14:06:02 UTC) #24
ahaas
lgtm
4 years, 3 months ago (2016-09-15 14:11:29 UTC) #26
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/2339053003/120001
4 years, 3 months ago (2016-09-15 15:02:05 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-15 15:04:16 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 15:04:57 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5855e44c1a193c389d9cd899461092bfbce923a0
Cr-Commit-Position: refs/heads/master@{#39449}

Powered by Google App Engine
This is Rietveld 408576698