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

Issue 470593002: Unify MachineType and RepType. (Closed)

Created:
6 years, 4 months ago by titzer
Modified:
6 years, 4 months ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Unify MachineType and RepType. MachineType now tracks both the representation and the value type of machine quantities and is used uniformly throughout TurboFan. These types can now express uint8, int8, uint16, and int16, i.e. signed and unsigned smallish integers. Note that currently only uint8 and uint16 are implemented in the TF backends. R=bmeurer@chromium.org, mstarzinger@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=23122

Patch Set 1 #

Patch Set 2 : Forgot a RepresentationOf() in arm64. #

Total comments: 9

Patch Set 3 : Address review comments. #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Rename tXXX to kTypeXXX, rXXX to kRepXXX, and mXXX to kMachXXX to conform to style guide. #

Total comments: 7

Patch Set 6 : Improve OStream << for MachineType. #

Patch Set 7 : src/globals.h #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1203 lines, -1192 lines) Patch
M src/compiler/arm/instruction-selector-arm.cc View 1 2 3 4 5 6 7 3 chunks +19 lines, -16 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 1 2 3 4 5 6 7 3 chunks +20 lines, -17 lines 0 comments Download
M src/compiler/change-lowering.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M src/compiler/ia32/instruction-selector-ia32.cc View 1 2 3 4 5 6 7 4 chunks +19 lines, -16 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/instruction-selector-impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/linkage-impl.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/machine-operator.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -5 lines 0 comments Download
M src/compiler/machine-type.h View 1 2 3 4 5 6 1 chunk +86 lines, -18 lines 0 comments Download
A src/compiler/machine-type.cc View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
M src/compiler/representation-change.h View 1 2 3 4 5 8 chunks +78 lines, -142 lines 0 comments Download
M src/compiler/simplified-lowering.cc View 1 2 3 4 5 30 chunks +145 lines, -156 lines 0 comments Download
M src/compiler/simplified-operator.h View 4 chunks +7 lines, -7 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 3 4 5 6 7 4 chunks +21 lines, -18 lines 0 comments Download
M test/cctest/compiler/call-tester.h View 1 2 3 4 5 chunks +16 lines, -25 lines 0 comments Download
M test/cctest/compiler/codegen-tester.h View 1 2 3 4 6 chunks +32 lines, -22 lines 0 comments Download
M test/cctest/compiler/codegen-tester.cc View 1 2 3 4 8 chunks +8 lines, -9 lines 0 comments Download
M test/cctest/compiler/graph-builder-tester.h View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M test/cctest/compiler/instruction-selector-tester.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M test/cctest/compiler/test-branch-combine.cc View 1 2 3 4 12 chunks +13 lines, -13 lines 0 comments Download
M test/cctest/compiler/test-changes-lowering.cc View 1 2 3 4 10 chunks +14 lines, -14 lines 0 comments Download
M test/cctest/compiler/test-codegen-deopt.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/compiler/test-instruction.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-machine-operator-reducer.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/compiler/test-representation-change.cc View 1 2 3 4 8 chunks +83 lines, -56 lines 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 1 2 3 4 5 6 7 137 chunks +310 lines, -339 lines 0 comments Download
M test/cctest/compiler/test-schedule.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-scheduler.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-simplified-lowering.cc View 1 2 3 4 43 chunks +110 lines, -126 lines 0 comments Download
M test/cctest/compiler/test-structured-ifbuilder-fuzzer.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-structured-machine-assembler.cc View 1 2 3 4 20 chunks +25 lines, -25 lines 0 comments Download
M test/cctest/compiler/value-helper.h View 1 chunk +0 lines, -1 line 0 comments Download
M test/compiler-unittests/arm/instruction-selector-arm-unittest.cc View 1 2 3 4 5 6 7 91 chunks +91 lines, -108 lines 0 comments Download
M test/compiler-unittests/arm64/instruction-selector-arm64-unittest.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
M test/compiler-unittests/change-lowering-unittest.cc View 1 2 3 4 3 chunks +11 lines, -11 lines 0 comments Download
M test/compiler-unittests/ia32/instruction-selector-ia32-unittest.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M test/compiler-unittests/instruction-selector-unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M test/compiler-unittests/node-matchers.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
titzer
6 years, 4 months ago (2014-08-13 11:44:46 UTC) #1
Michael Starzinger
LGTM. https://codereview.chromium.org/470593002/diff/20001/src/compiler/instruction-selector-impl.h File src/compiler/instruction-selector-impl.h (right): https://codereview.chromium.org/470593002/diff/20001/src/compiler/instruction-selector-impl.h#newcode204 src/compiler/instruction-selector-impl.h:204: if ((location.rep_ & rMask) == rFloat64) { nit: ...
6 years, 4 months ago (2014-08-13 15:40:05 UTC) #2
titzer
https://codereview.chromium.org/470593002/diff/20001/src/compiler/instruction-selector-impl.h File src/compiler/instruction-selector-impl.h (right): https://codereview.chromium.org/470593002/diff/20001/src/compiler/instruction-selector-impl.h#newcode204 src/compiler/instruction-selector-impl.h:204: if ((location.rep_ & rMask) == rFloat64) { On 2014/08/13 ...
6 years, 4 months ago (2014-08-13 16:12:59 UTC) #3
Benedikt Meurer
NOT LGTM because of obvious violation of the style guide. And why can't we use ...
6 years, 4 months ago (2014-08-13 19:42:07 UTC) #4
titzer
As discussed in depth with Andreas, The overall plan is to move to Type* when ...
6 years, 4 months ago (2014-08-14 07:50:19 UTC) #5
Benedikt Meurer
https://codereview.chromium.org/470593002/diff/80001/src/compiler/machine-type.h File src/compiler/machine-type.h (right): https://codereview.chromium.org/470593002/diff/80001/src/compiler/machine-type.h#newcode8 src/compiler/machine-type.h:8: #include "src/ostreams.h" Please avoid including "src/ostreams.h" in headers. See ...
6 years, 4 months ago (2014-08-14 07:57:02 UTC) #6
titzer
https://codereview.chromium.org/470593002/diff/80001/src/compiler/machine-type.h File src/compiler/machine-type.h (right): https://codereview.chromium.org/470593002/diff/80001/src/compiler/machine-type.h#newcode8 src/compiler/machine-type.h:8: #include "src/ostreams.h" On 2014/08/14 07:57:02, Benedikt Meurer wrote: > ...
6 years, 4 months ago (2014-08-14 08:26:47 UTC) #7
Benedikt Meurer
LGTM if the src/v8.h issue is addressed. https://codereview.chromium.org/470593002/diff/80001/src/compiler/machine-type.h File src/compiler/machine-type.h (right): https://codereview.chromium.org/470593002/diff/80001/src/compiler/machine-type.h#newcode9 src/compiler/machine-type.h:9: #include "src/v8.h" ...
6 years, 4 months ago (2014-08-14 08:28:46 UTC) #8
titzer
6 years, 4 months ago (2014-08-14 09:20:17 UTC) #9
Message was sent while issue was closed.
Committed patchset #8 manually as 23122 (tree was closed).

Powered by Google App Engine
This is Rietveld 408576698