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

Issue 2639353002: [wasm] Fix I32ReinterpretF32 and I64ReinterpretF64 on ia32. (Closed)

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

Description

[wasm] Fix I32ReinterpretF32 and I64ReinterpretF64 on ia32. On ia32 return statements in C++ automatically convert signalling NaNs to quiet NaNs, even when bit_cast is used. This CL removes all uses of bit_cast<float> and bit_cast<double> in the wasm compiler and wasm interpreter. R=titzer@chromium.org, clemensh@chromium.org Review-Url: https://codereview.chromium.org/2639353002 Cr-Original-Commit-Position: refs/heads/master@{#42512} Committed: https://chromium.googlesource.com/v8/v8/+/7739affa5b57e0d28674d476f63de60d71728fb6 Review-Url: https://codereview.chromium.org/2639353002 Cr-Commit-Position: refs/heads/master@{#42545} Committed: https://chromium.googlesource.com/v8/v8/+/ea9254317149c7904a7bf6bc821af35958e4da7f

Patch Set 1 #

Total comments: 2

Patch Set 2 : update a comment #

Total comments: 8

Patch Set 3 : Address comments #

Patch Set 4 : use memcpy instead of reinterpret_cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -16 lines) Patch
M src/compiler/ia32/code-generator-ia32.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/instruction.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M src/wasm/function-body-decoder.h View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M src/wasm/wasm-interpreter.h View 1 2 2 chunks +10 lines, -6 lines 0 comments Download
M src/wasm/wasm-interpreter.cc View 1 2 3 chunks +17 lines, -6 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-64.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
ahaas
3 years, 11 months ago (2017-01-18 17:53:12 UTC) #1
Clemens Hammacher
lgtm https://codereview.chromium.org/2639353002/diff/1/src/wasm/wasm-interpreter.cc File src/wasm/wasm-interpreter.cc (right): https://codereview.chromium.org/2639353002/diff/1/src/wasm/wasm-interpreter.cc#newcode1556 src/wasm/wasm-interpreter.cc:1556: // because on ia32 we may loose the ...
3 years, 11 months ago (2017-01-18 18:03:49 UTC) #4
ahaas
https://codereview.chromium.org/2639353002/diff/1/src/wasm/wasm-interpreter.cc File src/wasm/wasm-interpreter.cc (right): https://codereview.chromium.org/2639353002/diff/1/src/wasm/wasm-interpreter.cc#newcode1556 src/wasm/wasm-interpreter.cc:1556: // because on ia32 we may loose the signalling ...
3 years, 11 months ago (2017-01-18 18:13:49 UTC) #7
titzer
lgtm with comments https://codereview.chromium.org/2639353002/diff/20001/src/compiler/ia32/code-generator-ia32.cc File src/compiler/ia32/code-generator-ia32.cc (right): https://codereview.chromium.org/2639353002/diff/20001/src/compiler/ia32/code-generator-ia32.cc#newcode2109 src/compiler/ia32/code-generator-ia32.cc:2109: uint32_t src = bit_cast<uint32_t>(src_constant.ToFloat32AsInt()); I think ...
3 years, 11 months ago (2017-01-19 13:13:01 UTC) #10
ahaas
https://codereview.chromium.org/2639353002/diff/20001/src/compiler/ia32/code-generator-ia32.cc File src/compiler/ia32/code-generator-ia32.cc (right): https://codereview.chromium.org/2639353002/diff/20001/src/compiler/ia32/code-generator-ia32.cc#newcode2109 src/compiler/ia32/code-generator-ia32.cc:2109: uint32_t src = bit_cast<uint32_t>(src_constant.ToFloat32AsInt()); On 2017/01/19 at 13:13:01, titzer ...
3 years, 11 months ago (2017-01-19 15:46:19 UTC) #11
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/2639353002/40001
3 years, 11 months ago (2017-01-19 15:48:27 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/7739affa5b57e0d28674d476f63de60d71728fb6
3 years, 11 months ago (2017-01-19 16:21:08 UTC) #17
ahaas
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2645693003/ by ahaas@chromium.org. ...
3 years, 11 months ago (2017-01-19 17:00:48 UTC) #18
ahaas
On 2017/01/19 at 17:00:48, ahaas wrote: > A revert of this CL (patchset #3 id:40001) ...
3 years, 11 months ago (2017-01-20 10:01:15 UTC) #21
titzer
lgtm
3 years, 11 months ago (2017-01-20 10:02:38 UTC) #22
Clemens Hammacher
lgtm
3 years, 11 months ago (2017-01-20 10:11:02 UTC) #23
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/2639353002/60001
3 years, 11 months ago (2017-01-20 10:39:46 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 10:46:53 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/ea9254317149c7904a7bf6bc821af35958e...

Powered by Google App Engine
This is Rietveld 408576698