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

Issue 1495213003: [turbofan] Changed TruncateFloat64ToInt64 to TryTruncateFloat64ToInt64. (Closed)

Created:
5 years ago by ahaas
Modified:
5 years ago
Reviewers:
titzer, Rodolph Perfetta (ARM), 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] Changed TruncateFloat64ToInt64 to TryTruncateFloat64ToInt64. The new operator provides a second output which indicates whether the conversion from float64 to int64 was successful or not. The second output returns 0 if the conversion fails. If the conversion succeeds, then the second output is differs from 0. The second output can be ignored, which means that the operator can be used the same way as the original operator. I implemented 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/95844d94f3336489403c7f2d70c6ea01a0cf3002 Cr-Commit-Position: refs/heads/master@{#32653}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Generate better arm64 code. #

Total comments: 2

Patch Set 3 : Removed unused code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -22 lines) Patch
M src/compiler/arm64/code-generator-arm64.cc View 1 2 chunks +9 lines, -1 line 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 1 2 1 chunk +14 lines, -2 lines 0 comments Download
M src/compiler/instruction-selector.cc View 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/instruction-selector-mips64.cc View 1 1 chunk +5 lines, -1 line 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 2 chunks +7 lines, -4 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 2 chunks +14 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 2 chunks +24 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
ahaas
5 years ago (2015-12-04 15:07:13 UTC) #1
Rodolph Perfetta (ARM)
https://codereview.chromium.org/1495213003/diff/1/src/compiler/arm64/code-generator-arm64.cc File src/compiler/arm64/code-generator-arm64.cc (right): https://codereview.chromium.org/1495213003/diff/1/src/compiler/arm64/code-generator-arm64.cc#newcode1049 src/compiler/arm64/code-generator-arm64.cc:1049: __ Cmp(i.OutputRegister(0), i.InputInt64(1)); Have a look at MacroAssembler::TryConvertDoubleToInt64. It ...
5 years ago (2015-12-04 16:15:45 UTC) #4
ahaas
https://codereview.chromium.org/1495213003/diff/1/src/compiler/arm64/code-generator-arm64.cc File src/compiler/arm64/code-generator-arm64.cc (right): https://codereview.chromium.org/1495213003/diff/1/src/compiler/arm64/code-generator-arm64.cc#newcode1049 src/compiler/arm64/code-generator-arm64.cc:1049: __ Cmp(i.OutputRegister(0), i.InputInt64(1)); On 2015/12/04 at 16:15:45, Rodolph Perfetta ...
5 years ago (2015-12-07 11:00:34 UTC) #5
Rodolph Perfetta (ARM)
arm64 part lgtm with nit addressed. Thanks https://codereview.chromium.org/1495213003/diff/20001/src/compiler/arm64/instruction-selector-arm64.cc File src/compiler/arm64/instruction-selector-arm64.cc (right): https://codereview.chromium.org/1495213003/diff/20001/src/compiler/arm64/instruction-selector-arm64.cc#newcode1248 src/compiler/arm64/instruction-selector-arm64.cc:1248: Constant int64min(INT64_MIN); ...
5 years ago (2015-12-07 11:19:47 UTC) #6
ahaas
https://codereview.chromium.org/1495213003/diff/20001/src/compiler/arm64/instruction-selector-arm64.cc File src/compiler/arm64/instruction-selector-arm64.cc (right): https://codereview.chromium.org/1495213003/diff/20001/src/compiler/arm64/instruction-selector-arm64.cc#newcode1248 src/compiler/arm64/instruction-selector-arm64.cc:1248: Constant int64min(INT64_MIN); On 2015/12/07 at 11:19:47, Rodolph Perfetta (ARM) ...
5 years ago (2015-12-07 11:54:51 UTC) #7
titzer
lgtm
5 years ago (2015-12-07 11:56:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495213003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495213003/40001
5 years ago (2015-12-07 12:00:03 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-07 12:12:24 UTC) #12
commit-bot: I haz the power
5 years ago (2015-12-07 12:13:15 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/95844d94f3336489403c7f2d70c6ea01a0cf3002
Cr-Commit-Position: refs/heads/master@{#32653}

Powered by Google App Engine
This is Rietveld 408576698