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

Issue 1504363002: [turbofan] Change TruncateFloat32ToInt64 to TryTruncateFloat32ToInt64. (Closed)

Created:
5 years ago by ahaas
Modified:
5 years ago
Reviewers:
titzer, v8-arm-ports, jbramley, v8-mips-ports
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

[turbofan] Change TruncateFloat32ToInt64 to TryTruncateFloat32ToInt64. This operator now provides a second output which indicates whether the conversion from float32 to int64 was successful or not. The second output returns 0 if the conversion fails, or something else if the conversion succeeds. The second output can be ignored, which means that the operator can be used the same as the original operator. I implement the new operator on x64, arm64, and mips64. @v8-ppc-ports, can you please take care of the ppc64 implementation of the second output? R=titzer@chromium.org, v8-arm-ports@googlegroups.com, v8-mips-ports@googlegroups.com Committed: https://crrev.com/28261daa47d406d73e40bf4afba16ee61f300089 Cr-Commit-Position: refs/heads/master@{#32737}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix arm64 nits, handle projection on mips64. #

Patch Set 3 : Cleanup #

Total comments: 1

Patch Set 4 : Removed bad code in the mips code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -20 lines) Patch
M src/compiler/arm64/code-generator-arm64.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 1 2 3 1 chunk +14 lines, -2 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M src/compiler/machine-operator.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/machine-operator.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/mips64/code-generator-mips64.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M src/compiler/mips64/instruction-selector-mips64.cc View 1 2 3 1 chunk +13 lines, -2 lines 0 comments Download
M src/compiler/opcodes.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/raw-machine-assembler.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M src/compiler/typer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/verifier.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/x64/code-generator-x64.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 3 1 chunk +12 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 1 2 3 2 chunks +21 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
ahaas
5 years ago (2015-12-08 13:49:50 UTC) #1
jbramley
ARM64 bits lgtm (with one simple fix). https://codereview.chromium.org/1504363002/diff/1/src/compiler/arm64/code-generator-arm64.cc File src/compiler/arm64/code-generator-arm64.cc (right): https://codereview.chromium.org/1504363002/diff/1/src/compiler/arm64/code-generator-arm64.cc#newcode1043 src/compiler/arm64/code-generator-arm64.cc:1043: __ Fccmp(i.InputDoubleRegister(0), ...
5 years ago (2015-12-08 13:53:08 UTC) #3
ahaas
https://codereview.chromium.org/1504363002/diff/1/src/compiler/arm64/code-generator-arm64.cc File src/compiler/arm64/code-generator-arm64.cc (right): https://codereview.chromium.org/1504363002/diff/1/src/compiler/arm64/code-generator-arm64.cc#newcode1043 src/compiler/arm64/code-generator-arm64.cc:1043: __ Fccmp(i.InputDoubleRegister(0), i.InputDoubleRegister(0), VFlag, vc); On 2015/12/08 at 13:53:08, ...
5 years ago (2015-12-09 11:15:01 UTC) #4
titzer
On 2015/12/09 11:15:01, ahaas wrote: > https://codereview.chromium.org/1504363002/diff/1/src/compiler/arm64/code-generator-arm64.cc > File src/compiler/arm64/code-generator-arm64.cc (right): > > https://codereview.chromium.org/1504363002/diff/1/src/compiler/arm64/code-generator-arm64.cc#newcode1043 > ...
5 years ago (2015-12-09 11:40:21 UTC) #6
titzer
https://codereview.chromium.org/1504363002/diff/40001/src/compiler/mips64/instruction-selector-mips64.cc File src/compiler/mips64/instruction-selector-mips64.cc (right): https://codereview.chromium.org/1504363002/diff/40001/src/compiler/mips64/instruction-selector-mips64.cc#newcode1543 src/compiler/mips64/instruction-selector-mips64.cc:1543: case IrOpcode::kTryTruncateFloat32ToInt64: Drop this case as per explanation on ...
5 years ago (2015-12-09 11:40:35 UTC) #7
ahaas
On 2015/12/09 at 11:40:35, titzer wrote: > https://codereview.chromium.org/1504363002/diff/40001/src/compiler/mips64/instruction-selector-mips64.cc > File src/compiler/mips64/instruction-selector-mips64.cc (right): > > https://codereview.chromium.org/1504363002/diff/40001/src/compiler/mips64/instruction-selector-mips64.cc#newcode1543 ...
5 years ago (2015-12-09 12:02:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1504363002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1504363002/60001
5 years ago (2015-12-10 08:10:47 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-10 08:12:20 UTC) #12
commit-bot: I haz the power
5 years ago (2015-12-10 08:12:34 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/28261daa47d406d73e40bf4afba16ee61f300089
Cr-Commit-Position: refs/heads/master@{#32737}

Powered by Google App Engine
This is Rietveld 408576698