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

Issue 1507703002: [turbofan] Change TruncateFloat64ToUint64 to TryTruncateFloatToUint64. (Closed)

Created:
5 years ago by ahaas
Modified:
5 years ago
Reviewers:
titzer, akos.palfi.imgtec, martyn.capewell, v8-arm-ports
CC:
v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, 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 TruncateFloat64ToUint64 to TryTruncateFloatToUint64. This operator now provides a second output which indicates whether the conversion from float64 to uint64 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 and arm64. @v8-mips-ports and @v8-ppc-ports, can you please take care of the mips64 and ppc64 implementation of the second output? R=titzer@chromium.org, v8-arm-ports@googlegroups.com Committed: https://crrev.com/c343f30923ab8b9f99d3f565e8ab65837cbb9efb Cr-Commit-Position: refs/heads/master@{#32705}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Better arm64 code. #

Total comments: 1

Patch Set 3 : Removed unused code. #

Total comments: 2

Patch Set 4 : Added mips64 implementation, fixed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -39 lines) Patch
M src/compiler/arm64/code-generator-arm64.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 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 chunk +1 line, -1 line 0 comments Download
M src/compiler/machine-operator.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/mips64/code-generator-mips64.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/compiler/mips64/instruction-selector-mips64.cc View 1 2 3 1 chunk +14 lines, -2 lines 0 comments Download
M src/compiler/opcodes.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/ppc/instruction-selector-ppc.cc View 1 chunk +5 lines, -1 line 0 comments Download
M src/compiler/raw-machine-assembler.h View 1 chunk +6 lines, -1 line 0 comments Download
M src/compiler/typer.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/verifier.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/x64/code-generator-x64.cc View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 3 2 chunks +12 lines, -4 lines 0 comments Download
M src/mips64/macro-assembler-mips64.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 2 3 4 chunks +19 lines, -6 lines 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 1 2 3 3 chunks +18 lines, -2 lines 0 comments Download
M test/cctest/compiler/value-helper.h View 1 chunk +34 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
ahaas
5 years ago (2015-12-07 15:34:25 UTC) #1
martyn.capewell
https://codereview.chromium.org/1507703002/diff/1/src/compiler/arm64/code-generator-arm64.cc File src/compiler/arm64/code-generator-arm64.cc (right): https://codereview.chromium.org/1507703002/diff/1/src/compiler/arm64/code-generator-arm64.cc#newcode1058 src/compiler/arm64/code-generator-arm64.cc:1058: __ Cset(i.OutputRegister(1), ge); You should be able to use ...
5 years ago (2015-12-07 16:10:34 UTC) #3
ahaas
https://codereview.chromium.org/1507703002/diff/1/src/compiler/arm64/code-generator-arm64.cc File src/compiler/arm64/code-generator-arm64.cc (right): https://codereview.chromium.org/1507703002/diff/1/src/compiler/arm64/code-generator-arm64.cc#newcode1058 src/compiler/arm64/code-generator-arm64.cc:1058: __ Cset(i.OutputRegister(1), ge); On 2015/12/07 at 16:10:34, martyn.capewell wrote: ...
5 years ago (2015-12-07 17:03:03 UTC) #4
martyn.capewell
One small nit, then arm64 part lgtm https://codereview.chromium.org/1507703002/diff/20001/src/compiler/arm64/code-generator-arm64.cc File src/compiler/arm64/code-generator-arm64.cc (right): https://codereview.chromium.org/1507703002/diff/20001/src/compiler/arm64/code-generator-arm64.cc#newcode1056 src/compiler/arm64/code-generator-arm64.cc:1056: Label done; ...
5 years ago (2015-12-07 18:44:17 UTC) #5
akos.palfi.imgtec
@ahaas: We've created the MIPS port: https://codereview.chromium.org/1513463002/ Could you please merge it into this CL?
5 years ago (2015-12-08 21:08:33 UTC) #7
titzer
https://codereview.chromium.org/1507703002/diff/40001/src/compiler/x64/instruction-selector-x64.cc File src/compiler/x64/instruction-selector-x64.cc (right): https://codereview.chromium.org/1507703002/diff/40001/src/compiler/x64/instruction-selector-x64.cc#newcode1479 src/compiler/x64/instruction-selector-x64.cc:1479: case IrOpcode::kTryTruncateFloat64ToUint64: I should have caught this earlier. You ...
5 years ago (2015-12-09 07:59:03 UTC) #8
ahaas
I added the MIPS64 implementation from CL https://codereview.chromium.org/1513463002. https://codereview.chromium.org/1507703002/diff/40001/src/compiler/x64/instruction-selector-x64.cc File src/compiler/x64/instruction-selector-x64.cc (right): https://codereview.chromium.org/1507703002/diff/40001/src/compiler/x64/instruction-selector-x64.cc#newcode1479 src/compiler/x64/instruction-selector-x64.cc:1479: case ...
5 years ago (2015-12-09 10:05:09 UTC) #9
titzer
lgtm
5 years ago (2015-12-09 10:48:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1507703002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1507703002/60001
5 years ago (2015-12-09 11:04:21 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-09 11:15:24 UTC) #14
commit-bot: I haz the power
5 years ago (2015-12-09 11:16:10 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c343f30923ab8b9f99d3f565e8ab65837cbb9efb
Cr-Commit-Position: refs/heads/master@{#32705}

Powered by Google App Engine
This is Rietveld 408576698