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

Issue 668173002: Add Float64Round operator. (Closed)

Created:
6 years, 2 months ago by sigurds
Modified:
6 years, 2 months ago
Reviewers:
Benedikt Meurer, titzer
CC:
Michael Starzinger, v8-dev
Project:
v8
Visibility:
Public.

Description

Add Float64Floor, Float64Ceil, Float64RoundTruncate, Float64RoundTiesAway operators. These operators are not supported by any backends yet, and a backend is free to not support them. R=bmeurer@chromium.org TEST=unittest/machine-operator Committed: https://code.google.com/p/v8/source/detail?r=24874

Patch Set 1 #

Patch Set 2 : Reworked after personal discussion. #

Patch Set 3 : Remove comma at end of enumerator list. #

Total comments: 4

Patch Set 4 : Introduce several machine ops instead of round + mode param. #

Total comments: 4

Patch Set 5 : bmeurer's comments. #

Patch Set 6 : Rebase. #

Total comments: 6

Patch Set 7 : Use enum class. #

Patch Set 8 : Add unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -8 lines) Patch
M src/base/flags.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/compiler/arm/instruction-selector-arm.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/ia32/instruction-selector-ia32.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/instruction-selector.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/machine-operator.h View 1 2 3 4 5 6 7 4 chunks +31 lines, -1 line 0 comments Download
M src/compiler/machine-operator.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M src/compiler/mips/instruction-selector-mips.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/opcodes.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/simplified-lowering.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/typer.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M src/compiler/verifier.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M test/unittests/compiler/machine-operator-unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 13 (1 generated)
sigurds
PTAL.
6 years, 2 months ago (2014-10-22 11:00:56 UTC) #1
sigurds
As discussed. PTAL again :)
6 years, 2 months ago (2014-10-22 13:37:41 UTC) #3
sigurds
6 years, 2 months ago (2014-10-22 13:52:59 UTC) #4
titzer
https://codereview.chromium.org/668173002/diff/40001/src/compiler/machine-operator.h File src/compiler/machine-operator.h (right): https://codereview.chromium.org/668173002/diff/40001/src/compiler/machine-operator.h#newcode57 src/compiler/machine-operator.h:57: kRoundDown, A little confusing here. These rounding modes map ...
6 years, 2 months ago (2014-10-22 14:05:42 UTC) #5
sigurds
Adressed changes. Please take a look again. https://codereview.chromium.org/668173002/diff/40001/src/compiler/machine-operator.h File src/compiler/machine-operator.h (right): https://codereview.chromium.org/668173002/diff/40001/src/compiler/machine-operator.h#newcode57 src/compiler/machine-operator.h:57: kRoundDown, On ...
6 years, 2 months ago (2014-10-22 14:24:50 UTC) #6
Benedikt Meurer
https://codereview.chromium.org/668173002/diff/60001/src/compiler/instruction-selector.h File src/compiler/instruction-selector.h (right): https://codereview.chromium.org/668173002/diff/60001/src/compiler/instruction-selector.h#newcode91 src/compiler/instruction-selector.h:91: static SupportedOperators GetSupportedOperators(); This should take a CpuFeatures parameter, ...
6 years, 2 months ago (2014-10-23 07:11:15 UTC) #7
sigurds
Thanks for the comments so far! PTAL again :) https://codereview.chromium.org/668173002/diff/60001/src/compiler/instruction-selector.h File src/compiler/instruction-selector.h (right): https://codereview.chromium.org/668173002/diff/60001/src/compiler/instruction-selector.h#newcode91 src/compiler/instruction-selector.h:91: ...
6 years, 2 months ago (2014-10-23 10:37:57 UTC) #8
Benedikt Meurer
https://codereview.chromium.org/668173002/diff/100001/src/compiler/instruction-selector.h File src/compiler/instruction-selector.h (right): https://codereview.chromium.org/668173002/diff/100001/src/compiler/instruction-selector.h#newcode89 src/compiler/instruction-selector.h:89: static MachineOperatorBuilder::Flags GetSupportedOperators(); s,GetSupportedOperators,SupportedMachineOperatorFlags, https://codereview.chromium.org/668173002/diff/100001/src/compiler/machine-operator.h File src/compiler/machine-operator.h (right): https://codereview.chromium.org/668173002/diff/100001/src/compiler/machine-operator.h#newcode62 ...
6 years, 2 months ago (2014-10-23 11:04:57 UTC) #9
sigurds
PTAL again :) https://codereview.chromium.org/668173002/diff/100001/src/compiler/instruction-selector.h File src/compiler/instruction-selector.h (right): https://codereview.chromium.org/668173002/diff/100001/src/compiler/instruction-selector.h#newcode89 src/compiler/instruction-selector.h:89: static MachineOperatorBuilder::Flags GetSupportedOperators(); On 2014/10/23 11:04:57, ...
6 years, 2 months ago (2014-10-23 11:15:56 UTC) #10
Benedikt Meurer
LGTM if you can explain to me why a static_cast in flags.h is needed.
6 years, 2 months ago (2014-10-24 03:58:58 UTC) #11
sigurds
On 2014/10/24 03:58:58, Benedikt Meurer wrote: > LGTM if you can explain to me why ...
6 years, 2 months ago (2014-10-24 09:36:02 UTC) #12
sigurds
6 years, 2 months ago (2014-10-24 13:07:09 UTC) #13
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as 24874 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698