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

Issue 1627263002: [turbofan] Add TruncateFloat32ToUint32 operator to Turbofan. (Closed)

Created:
4 years, 11 months ago by Jing
Modified:
4 years, 10 months ago
Reviewers:
v8-arm-ports, ahaas, titzer
CC:
v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Add TruncateFloat32ToUint32 operator to Turbofan. BUG= Committed: https://crrev.com/2166bd8ce51f83693fa88f590b82d24a1856e0e7 Cr-Commit-Position: refs/heads/master@{#33797}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Apply Andreas' comments and add arm/arm64 implementation. #

Total comments: 1

Patch Set 3 : Andreas' comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -6 lines) Patch
M src/arm/assembler-arm.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/arm/assembler-arm.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/arm/code-generator-arm.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/compiler/arm/instruction-codes-arm.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/arm/instruction-scheduler-arm.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/arm/instruction-selector-arm.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/arm64/code-generator-arm64.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/arm64/instruction-codes-arm64.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/arm64/instruction-scheduler-arm64.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/ia32/code-generator-ia32.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M src/compiler/ia32/instruction-codes-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ia32/instruction-scheduler-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ia32/instruction-selector-ia32.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/machine-operator.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/machine-operator.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/mips/instruction-selector-mips.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/mips64/instruction-selector-mips64.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/opcodes.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ppc/instruction-selector-ppc.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/raw-machine-assembler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/typer.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/verifier.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M src/compiler/x64/code-generator-x64.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M src/compiler/x64/instruction-codes-x64.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/x64/instruction-scheduler-x64.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/x87/instruction-selector-x87.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (12 generated)
ahaas
https://codereview.chromium.org/1627263002/diff/1/src/compiler/ia32/code-generator-ia32.cc File src/compiler/ia32/code-generator-ia32.cc (right): https://codereview.chromium.org/1627263002/diff/1/src/compiler/ia32/code-generator-ia32.cc#newcode750 src/compiler/ia32/code-generator-ia32.cc:750: __ Move(kScratchDoubleReg, -2147483648.0f); You could use static_cast<float>(INT32_MIN) here, that ...
4 years, 10 months ago (2016-01-29 10:45:08 UTC) #2
ahaas
lgtm https://codereview.chromium.org/1627263002/diff/20001/test/cctest/compiler/test-run-machops.cc File test/cctest/compiler/test-run-machops.cc (right): https://codereview.chromium.org/1627263002/diff/20001/test/cctest/compiler/test-run-machops.cc#newcode4154 test/cctest/compiler/test-run-machops.cc:4154: if (*i <= static_cast<float>(std::numeric_limits<uint32_t>::max()) && Nit: I think ...
4 years, 10 months ago (2016-02-03 13:47:02 UTC) #4
Jing
4 years, 10 months ago (2016-02-04 02:28:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1627263002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1627263002/40001
4 years, 10 months ago (2016-02-04 02:36:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1627263002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1627263002/40001
4 years, 10 months ago (2016-02-04 03:09:21 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/10491)
4 years, 10 months ago (2016-02-04 03:12:12 UTC) #13
Jing
@titzer, seems that LGTM from the OWNER is needed.
4 years, 10 months ago (2016-02-04 07:34:54 UTC) #16
ahaas
On 2016/02/04 at 07:34:54, jing.bao wrote: > @titzer, seems that LGTM from the OWNER is ...
4 years, 10 months ago (2016-02-04 09:14:05 UTC) #17
titzer
On 2016/02/04 09:14:05, ahaas wrote: > On 2016/02/04 at 07:34:54, jing.bao wrote: > > @titzer, ...
4 years, 10 months ago (2016-02-04 09:19:29 UTC) #18
Jing
On 2016/02/04 09:14:05, ahaas wrote: > On 2016/02/04 at 07:34:54, jing.bao wrote: > > @titzer, ...
4 years, 10 months ago (2016-02-05 02:10:48 UTC) #19
jbramley
On 2016/02/05 02:10:48, Jing wrote: > On 2016/02/04 09:14:05, ahaas wrote: > > On 2016/02/04 ...
4 years, 10 months ago (2016-02-05 09:44:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1627263002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1627263002/40001
4 years, 10 months ago (2016-02-06 01:33:44 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-06 18:08:59 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-06 18:09:47 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2166bd8ce51f83693fa88f590b82d24a1856e0e7
Cr-Commit-Position: refs/heads/master@{#33797}

Powered by Google App Engine
This is Rietveld 408576698