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

Issue 2648353010: [wasm][asm.js] Permit ternary operator in asm.js returns in some cases. (Closed)

Created:
3 years, 10 months ago by bradnelson
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm][asm.js] Permit ternary operator in asm.js returns in some cases. In practice, Emscripten seems to emit cond?+a:+b type return expressions. This is not allowed by the spec or errata, but we need to support it for compatibility. Similar patterns with ints / signed, do not seem to be supported. BUG=v8:5891 R=mtrofin@chromium.org,aseemgarg@chromium.org Review-Url: https://codereview.chromium.org/2648353010 Cr-Commit-Position: refs/heads/master@{#42677} Committed: https://chromium.googlesource.com/v8/v8/+/d0befa956f13b279a6e8dfdeb19eda8e5a14e9ca

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -22 lines) Patch
M src/asmjs/asm-typer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/asmjs/asm-typer.cc View 1 4 chunks +33 lines, -20 lines 0 comments Download
M test/cctest/asmjs/test-asm-typer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/mjsunit/asm/asm-validation.js View 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
bradn
3 years, 10 months ago (2017-01-26 06:02:16 UTC) #6
bradn
Oops, didn't match reviews and R= Meant for mtrofin / aseemgarg to take a look.
3 years, 10 months ago (2017-01-26 07:45:42 UTC) #10
Mircea Trofin
lgtm https://codereview.chromium.org/2648353010/diff/1/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2648353010/diff/1/src/asmjs/asm-typer.cc#newcode2809 src/asmjs/asm-typer.cc:2809: // Emscipten. Emscripten https://codereview.chromium.org/2648353010/diff/1/src/asmjs/asm-typer.cc#newcode2811 src/asmjs/asm-typer.cc:2811: AsmType* a; init ...
3 years, 10 months ago (2017-01-26 07:47:27 UTC) #11
bradn
https://codereview.chromium.org/2648353010/diff/1/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2648353010/diff/1/src/asmjs/asm-typer.cc#newcode2809 src/asmjs/asm-typer.cc:2809: // Emscipten. On 2017/01/26 07:47:27, Mircea Trofin wrote: > ...
3 years, 10 months ago (2017-01-26 07:50:43 UTC) #12
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/2648353010/20001
3 years, 10 months ago (2017-01-26 07:50:54 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-01-26 08:12:13 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/d0befa956f13b279a6e8dfdeb19eda8e5a1...

Powered by Google App Engine
This is Rietveld 408576698