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

Unified Diff: test/unittests/compiler/simplified-operator-unittest.cc

Issue 1513543003: [turbofan] Make MachineType a pair of enums. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moar rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/unittests/compiler/simplified-operator-unittest.cc
diff --git a/test/unittests/compiler/simplified-operator-unittest.cc b/test/unittests/compiler/simplified-operator-unittest.cc
index b09840710a831c92c6fc3464dcc947ae12684a80..871189ad79fc55b8d0cdf3803ac2fe9fc620c51f 100644
--- a/test/unittests/compiler/simplified-operator-unittest.cc
+++ b/test/unittests/compiler/simplified-operator-unittest.cc
@@ -200,37 +200,40 @@ INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest,
namespace {
const ElementAccess kElementAccesses[] = {
- {kTaggedBase, FixedArray::kHeaderSize, Type::Any(), kMachAnyTagged},
- {kUntaggedBase, 0, Type::Any(), kMachInt8},
- {kUntaggedBase, 0, Type::Any(), kMachInt16},
- {kUntaggedBase, 0, Type::Any(), kMachInt32},
- {kUntaggedBase, 0, Type::Any(), kMachUint8},
- {kUntaggedBase, 0, Type::Any(), kMachUint16},
- {kUntaggedBase, 0, Type::Any(), kMachUint32},
- {kUntaggedBase, 0, Type::Signed32(), kMachInt8},
- {kUntaggedBase, 0, Type::Unsigned32(), kMachUint8},
- {kUntaggedBase, 0, Type::Signed32(), kMachInt16},
- {kUntaggedBase, 0, Type::Unsigned32(), kMachUint16},
- {kUntaggedBase, 0, Type::Signed32(), kMachInt32},
- {kUntaggedBase, 0, Type::Unsigned32(), kMachUint32},
- {kUntaggedBase, 0, Type::Number(), kRepFloat32},
- {kUntaggedBase, 0, Type::Number(), kRepFloat64},
+ {kTaggedBase, FixedArray::kHeaderSize, Type::Any(),
+ MachineType::AnyTagged()},
+ {kUntaggedBase, 0, Type::Any(), MachineType::Int8()},
+ {kUntaggedBase, 0, Type::Any(), MachineType::Int16()},
+ {kUntaggedBase, 0, Type::Any(), MachineType::Int32()},
+ {kUntaggedBase, 0, Type::Any(), MachineType::Uint8()},
+ {kUntaggedBase, 0, Type::Any(), MachineType::Uint16()},
+ {kUntaggedBase, 0, Type::Any(), MachineType::Uint32()},
+ {kUntaggedBase, 0, Type::Signed32(), MachineType::Int8()},
+ {kUntaggedBase, 0, Type::Unsigned32(), MachineType::Uint8()},
+ {kUntaggedBase, 0, Type::Signed32(), MachineType::Int16()},
+ {kUntaggedBase, 0, Type::Unsigned32(), MachineType::Uint16()},
+ {kUntaggedBase, 0, Type::Signed32(), MachineType::Int32()},
+ {kUntaggedBase, 0, Type::Unsigned32(), MachineType::Uint32()},
+ {kUntaggedBase, 0, Type::Number(),
+ MachineType(MachineRepresentation::kFloat32, MachineSemantic::kNone)},
+ {kUntaggedBase, 0, Type::Number(),
+ MachineType(MachineRepresentation::kFloat64, MachineSemantic::kNone)},
{kTaggedBase, FixedTypedArrayBase::kDataOffset, Type::Signed32(),
- kMachInt8},
+ MachineType::Int8()},
{kTaggedBase, FixedTypedArrayBase::kDataOffset, Type::Unsigned32(),
- kMachUint8},
+ MachineType::Uint8()},
{kTaggedBase, FixedTypedArrayBase::kDataOffset, Type::Signed32(),
- kMachInt16},
+ MachineType::Int16()},
{kTaggedBase, FixedTypedArrayBase::kDataOffset, Type::Unsigned32(),
- kMachUint16},
+ MachineType::Uint16()},
{kTaggedBase, FixedTypedArrayBase::kDataOffset, Type::Signed32(),
- kMachInt32},
+ MachineType::Int32()},
{kTaggedBase, FixedTypedArrayBase::kDataOffset, Type::Unsigned32(),
- kMachUint32},
+ MachineType::Uint32()},
{kTaggedBase, FixedTypedArrayBase::kDataOffset, Type::Number(),
- kRepFloat32},
+ MachineType(MachineRepresentation::kFloat32, MachineSemantic::kNone)},
{kTaggedBase, FixedTypedArrayBase::kDataOffset, Type::Number(),
- kRepFloat64}};
+ MachineType(MachineRepresentation::kFloat32, MachineSemantic::kNone)}};
} // namespace
« no previous file with comments | « test/unittests/compiler/select-lowering-unittest.cc ('k') | test/unittests/compiler/tail-call-optimization-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698