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

Issue 1877133004: [x64] Avoid sign extension in TruncateFloat64ToInt32(TruncationMode::kJavaScript) (Closed)

Created:
4 years, 8 months ago by ahaas
Modified:
4 years, 8 months ago
Reviewers:
Benedikt Meurer
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

[x64] Avoid the sign extension in the DoubleToI conversion. We use the cvttsd2si (float64-to-int32) instruction to avoid that negative numbers get sign extended in the destination register. @rodolph: Is sign extension also a thing on arm64? I noticed that also on arm64 a float64-to-int64 instruction is used. Committed: https://crrev.com/6f8630ed7bf82a957408023447934c0961c44ad9 Cr-Commit-Position: refs/heads/master@{#35466}

Patch Set 1 #

Patch Set 2 : Avoid to use the additional movl instruction. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M src/compiler/x64/code-generator-x64.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
ahaas
4 years, 8 months ago (2016-04-13 17:21:22 UTC) #3
Rodolph Perfetta (ARM)
On 2016/04/13 17:21:22, ahaas wrote: So yes on arm64 a float64-to-int64 will sign extend to ...
4 years, 8 months ago (2016-04-13 17:59:13 UTC) #4
Benedikt Meurer
Nice, thanks. LGTM.
4 years, 8 months ago (2016-04-13 18:13:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877133004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877133004/20001
4 years, 8 months ago (2016-04-14 07:22:29 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-14 07:24:29 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 07:25:51 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6f8630ed7bf82a957408023447934c0961c44ad9
Cr-Commit-Position: refs/heads/master@{#35466}

Powered by Google App Engine
This is Rietveld 408576698