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

Issue 1874383002: [wasm] Throw real Error on wasm trap (Closed)

Created:
4 years, 8 months ago by Clemens Hammacher
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@trapreasons-to-messages
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Throw real Error on wasm trap Before, just a string was thrown, so no stack trace was attached there. Generated code from wasm does not grow by this change, we just pass a message id to the respective (new) runtime function. R=mstarzinger@chromium.org, titzer@chromium.org BUG= Committed: https://crrev.com/b1434ac46081de51bb6bd7b43475f22d46720b18 Cr-Commit-Position: refs/heads/master@{#35664}

Patch Set 1 #

Total comments: 5

Patch Set 2 : address mstarzinger's comments #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : remove a TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/unreachable.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (3 generated)
Clemens Hammacher
4 years, 8 months ago (2016-04-11 17:20:23 UTC) #1
Michael Starzinger
LGTM with nits. https://codereview.chromium.org/1874383002/diff/1/src/runtime/runtime-internal.cc File src/runtime/runtime-internal.cc (right): https://codereview.chromium.org/1874383002/diff/1/src/runtime/runtime-internal.cc#newcode101 src/runtime/runtime-internal.cc:101: DCHECK(args.length() == 1); nit: I know ...
4 years, 8 months ago (2016-04-11 18:13:27 UTC) #2
Clemens Hammacher
https://codereview.chromium.org/1874383002/diff/1/src/runtime/runtime-internal.cc File src/runtime/runtime-internal.cc (right): https://codereview.chromium.org/1874383002/diff/1/src/runtime/runtime-internal.cc#newcode101 src/runtime/runtime-internal.cc:101: DCHECK(args.length() == 1); On 2016/04/11 at 18:13:26, Michael Starzinger ...
4 years, 8 months ago (2016-04-12 09:33:44 UTC) #3
Michael Starzinger
https://codereview.chromium.org/1874383002/diff/1/src/runtime/runtime-internal.cc File src/runtime/runtime-internal.cc (right): https://codereview.chromium.org/1874383002/diff/1/src/runtime/runtime-internal.cc#newcode107 src/runtime/runtime-internal.cc:107: return isolate->Throw(*exception); On 2016/04/12 09:33:44, Clemens Hammacher wrote: > ...
4 years, 8 months ago (2016-04-12 10:47:56 UTC) #4
Clemens Hammacher
On 2016/04/12 at 10:47:56, mstarzinger wrote: > https://codereview.chromium.org/1874383002/diff/1/src/runtime/runtime-internal.cc > File src/runtime/runtime-internal.cc (right): > > https://codereview.chromium.org/1874383002/diff/1/src/runtime/runtime-internal.cc#newcode107 ...
4 years, 8 months ago (2016-04-12 11:02:35 UTC) #5
titzer
lgtm https://codereview.chromium.org/1874383002/diff/40001/src/runtime/runtime-internal.cc File src/runtime/runtime-internal.cc (right): https://codereview.chromium.org/1874383002/diff/40001/src/runtime/runtime-internal.cc#newcode103 src/runtime/runtime-internal.cc:103: // TODO(clemensh): discuss with titzer whether a WasmError ...
4 years, 8 months ago (2016-04-18 16:22:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1874383002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1874383002/60001
4 years, 8 months ago (2016-04-20 14:26:49 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-20 14:51:42 UTC) #10
nodir1
4 years, 8 months ago (2016-04-22 18:44:23 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b1434ac46081de51bb6bd7b43475f22d46720b18
Cr-Commit-Position: refs/heads/master@{#35664}

Powered by Google App Engine
This is Rietveld 408576698