/external/v8/test/cctest/compiler/ |
D | test-representation-change.cc | 86 void CheckTypeError(MachineRepresentation from, Type* from_type, in CheckTypeError() 87 MachineRepresentation to) { in CheckTypeError() 96 void CheckNop(MachineRepresentation from, Type* from_type, in CheckNop() 97 MachineRepresentation to) { in CheckNop() 117 true_node, MachineRepresentation::kTagged, Type::None(), in TEST() 118 MachineRepresentation::kBit); in TEST() 123 false_node, MachineRepresentation::kTagged, Type::None(), in TEST() 124 MachineRepresentation::kBit); in TEST() 135 node, MachineRepresentation::kBit, Type::Boolean(), in TEST() 136 MachineRepresentation::kTagged); in TEST() [all …]
|
D | test-gap-resolver.cc | 181 MachineRepresentation RandomRepresentation() { in RandomRepresentation() 185 return MachineRepresentation::kWord32; in RandomRepresentation() 187 return MachineRepresentation::kWord64; in RandomRepresentation() 189 return MachineRepresentation::kTagged; in RandomRepresentation() 192 return MachineRepresentation::kNone; in RandomRepresentation() 195 MachineRepresentation RandomDoubleRepresentation() { in RandomDoubleRepresentation() 197 if (index == 0) return MachineRepresentation::kFloat64; in RandomDoubleRepresentation() 198 return MachineRepresentation::kFloat32; in RandomDoubleRepresentation()
|
/external/v8/src/ |
D | machine-type.h | 18 enum class MachineRepresentation : uint8_t { enum 44 : representation_(MachineRepresentation::kNone), in MachineType() 46 MachineType(MachineRepresentation representation, MachineSemantic semantic) in MachineType() 57 MachineRepresentation representation() const { return representation_; } in representation() 69 static MachineRepresentation PointerRepresentation() { in PointerRepresentation() 70 return (kPointerSize == 4) ? MachineRepresentation::kWord32 in PointerRepresentation() 71 : MachineRepresentation::kWord64; in PointerRepresentation() 80 return MachineType(MachineRepresentation::kFloat32, in Float32() 84 return MachineType(MachineRepresentation::kFloat64, in Float64() 88 return MachineType(MachineRepresentation::kWord8, MachineSemantic::kInt32); in Int8() [all …]
|
D | machine-type.cc | 11 std::ostream& operator<<(std::ostream& os, MachineRepresentation rep) { in operator <<() 13 case MachineRepresentation::kNone: in operator <<() 15 case MachineRepresentation::kBit: in operator <<() 17 case MachineRepresentation::kWord8: in operator <<() 19 case MachineRepresentation::kWord16: in operator <<() 21 case MachineRepresentation::kWord32: in operator <<() 23 case MachineRepresentation::kWord64: in operator <<() 25 case MachineRepresentation::kFloat32: in operator <<() 27 case MachineRepresentation::kFloat64: in operator <<() 29 case MachineRepresentation::kTagged: in operator <<() [all …]
|
/external/v8/src/compiler/ |
D | representation-change.cc | 101 bool IsWord(MachineRepresentation rep) { in IsWord() 102 return rep == MachineRepresentation::kWord8 || in IsWord() 103 rep == MachineRepresentation::kWord16 || in IsWord() 104 rep == MachineRepresentation::kWord32; in IsWord() 115 Node* node, MachineRepresentation output_rep, Type* output_type, in GetRepresentationFor() 116 MachineRepresentation use_rep, Truncation truncation) { in GetRepresentationFor() 117 if (output_rep == MachineRepresentation::kNone) { in GetRepresentationFor() 133 case MachineRepresentation::kTagged: in GetRepresentationFor() 135 case MachineRepresentation::kFloat32: in GetRepresentationFor() 138 case MachineRepresentation::kFloat64: in GetRepresentationFor() [all …]
|
D | simplified-lowering.cc | 76 UseInfo(MachineRepresentation preferred, Truncation truncation) in UseInfo() 79 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32()); in TruncatingWord32() 82 return UseInfo(MachineRepresentation::kWord64, Truncation::Word64()); in TruncatingWord64() 85 return UseInfo(MachineRepresentation::kBit, Truncation::Bool()); in Bool() 88 return UseInfo(MachineRepresentation::kFloat32, Truncation::Float32()); in Float32() 91 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64()); in Float64() 97 return UseInfo(MachineRepresentation::kTagged, Truncation::Any()); in AnyTagged() 102 return UseInfo(MachineRepresentation::kNone, Truncation::Any()); in Any() 105 return UseInfo(MachineRepresentation::kNone, Truncation::None()); in None() 111 return UseInfo(MachineRepresentation::kFloat64, Truncation::Word32()); in Float64TruncatingToWord32() [all …]
|
D | representation-change.h | 89 Node* GetRepresentationFor(Node* node, MachineRepresentation output_rep, 90 Type* output_type, MachineRepresentation use_rep, 115 Node* GetTaggedRepresentationFor(Node* node, MachineRepresentation output_rep, 118 MachineRepresentation output_rep, 121 MachineRepresentation output_rep, 123 Node* GetWord32RepresentationFor(Node* node, MachineRepresentation output_rep, 125 Node* GetBitRepresentationFor(Node* node, MachineRepresentation output_rep, 127 Node* GetWord64RepresentationFor(Node* node, MachineRepresentation output_rep, 129 Node* TypeError(Node* node, MachineRepresentation output_rep, 130 Type* output_type, MachineRepresentation use);
|
D | instruction.cc | 143 case MachineRepresentation::kNone: in operator <<() 146 case MachineRepresentation::kBit: in operator <<() 149 case MachineRepresentation::kWord8: in operator <<() 152 case MachineRepresentation::kWord16: in operator <<() 155 case MachineRepresentation::kWord32: in operator <<() 158 case MachineRepresentation::kWord64: in operator <<() 161 case MachineRepresentation::kFloat32: in operator <<() 164 case MachineRepresentation::kFloat64: in operator <<() 167 case MachineRepresentation::kTagged: in operator <<() 242 ExplicitOperand::ExplicitOperand(LocationKind kind, MachineRepresentation rep, in ExplicitOperand() [all …]
|
D | machine-operator.h | 71 StoreRepresentation(MachineRepresentation representation, in StoreRepresentation() 76 MachineRepresentation representation() const { return representation_; } in representation() 80 MachineRepresentation representation_; 101 typedef MachineRepresentation CheckedStoreRepresentation; 148 MachineRepresentation word = MachineType::PointerRepresentation(), 316 bool Is32() const { return word() == MachineRepresentation::kWord32; } in Is32() 317 bool Is64() const { return word() == MachineRepresentation::kWord64; } in Is64() 318 MachineRepresentation word() const { return word_; } in word() 351 MachineRepresentation const word_;
|
D | common-operator.h | 74 explicit SelectParameters(MachineRepresentation representation, 78 MachineRepresentation representation() const { return representation_; } in representation() 82 const MachineRepresentation representation_; 98 MachineRepresentation PhiRepresentationOf(const Operator* const); 160 const Operator* Select(MachineRepresentation, BranchHint = BranchHint::kNone); 161 const Operator* Phi(MachineRepresentation representation,
|
D | instruction.h | 404 MachineRepresentation rep, int index) in LocationOperand() 434 MachineRepresentation representation() const { in representation() 438 static bool IsSupportedRepresentation(MachineRepresentation rep) { in IsSupportedRepresentation() 440 case MachineRepresentation::kWord32: in IsSupportedRepresentation() 441 case MachineRepresentation::kWord64: in IsSupportedRepresentation() 442 case MachineRepresentation::kFloat32: in IsSupportedRepresentation() 443 case MachineRepresentation::kFloat64: in IsSupportedRepresentation() 444 case MachineRepresentation::kTagged: in IsSupportedRepresentation() 446 case MachineRepresentation::kBit: in IsSupportedRepresentation() 447 case MachineRepresentation::kWord8: in IsSupportedRepresentation() [all …]
|
D | instruction-selector.h | 173 void MarkAsRepresentation(MachineRepresentation rep, Node* node); 175 MarkAsRepresentation(MachineRepresentation::kWord32, node); in MarkAsWord32() 178 MarkAsRepresentation(MachineRepresentation::kWord64, node); in MarkAsWord64() 181 MarkAsRepresentation(MachineRepresentation::kFloat32, node); in MarkAsFloat32() 184 MarkAsRepresentation(MachineRepresentation::kFloat64, node); in MarkAsFloat64() 187 MarkAsRepresentation(MachineRepresentation::kTagged, node); in MarkAsReference() 192 void MarkAsRepresentation(MachineRepresentation rep,
|
/external/v8/test/unittests/compiler/ |
D | machine-operator-unittest.cc | 21 ::testing::tuple<MachineRepresentation, T> > { 23 MachineRepresentation representation() const { in representation() 30 ::testing::tuple<MachineRepresentation, T> > B; 36 const MachineRepresentation kMachineReps[] = {MachineRepresentation::kWord32, 37 MachineRepresentation::kWord64}; 47 const MachineRepresentation kRepresentationsForStore[] = { 48 MachineRepresentation::kFloat32, MachineRepresentation::kFloat64, 49 MachineRepresentation::kWord8, MachineRepresentation::kWord16, 50 MachineRepresentation::kWord32, MachineRepresentation::kWord64, 51 MachineRepresentation::kTagged}; [all …]
|
D | select-lowering-unittest.cc | 38 common()->Select(MachineRepresentation::kWord32), p0, p1, p2); in TEST_F() 48 MachineRepresentation::kWord32, p1, p2, in TEST_F() 56 common()->Select(MachineRepresentation::kWord32), p0, p3, p4)); in TEST_F() 58 EXPECT_THAT(r.replacement(), IsPhi(MachineRepresentation::kWord32, p3, p4, in TEST_F() 65 common()->Select(MachineRepresentation::kWord32), p0, s0, p0)); in TEST_F() 67 EXPECT_THAT(r.replacement(), IsPhi(MachineRepresentation::kWord32, s0, p0, in TEST_F()
|
D | change-lowering-unittest.cc | 30 virtual MachineRepresentation WordRepresentation() const = 0; 34 return WordRepresentation() == MachineRepresentation::kWord32; in Is32() 37 return WordRepresentation() == MachineRepresentation::kWord64; in Is64() 101 public ::testing::WithParamInterface<MachineRepresentation> { 105 MachineRepresentation WordRepresentation() const final { return GetParam(); } in WordRepresentation() 114 EXPECT_THAT(r.replacement(), IsSelect(MachineRepresentation::kTagged, value, in TARGET_TEST_P() 196 IsStore(StoreRepresentation(MachineRepresentation::kTagged, in TARGET_TEST_P() 215 IsStore(StoreRepresentation(MachineRepresentation::kTagged, in TARGET_TEST_P() 261 IsStore(StoreRepresentation(MachineRepresentation::kTagged, in TARGET_TEST_P() 285 IsStore(StoreRepresentation(MachineRepresentation::kWord8, in TARGET_TEST_P() [all …]
|
D | common-operator-reducer-unittest.cc | 58 const MachineRepresentation kMachineRepresentations[] = { 59 MachineRepresentation::kBit, MachineRepresentation::kWord8, 60 MachineRepresentation::kWord16, MachineRepresentation::kWord32, 61 MachineRepresentation::kWord64, MachineRepresentation::kFloat32, 62 MachineRepresentation::kFloat64, MachineRepresentation::kTagged}; 283 TRACED_FOREACH(MachineRepresentation, rep, kMachineRepresentations) { in TEST_F() 311 common()->Phi(MachineRepresentation::kTagged, 2), p0, p0, loop); in TEST_F() 332 common()->Phi(MachineRepresentation::kFloat32, 2), vtrue, vfalse, merge); in TEST_F() 352 common()->Phi(MachineRepresentation::kFloat64, 2), vtrue, vfalse, merge); in TEST_F() 370 common()->Phi(MachineRepresentation::kFloat32, 2), p1, p0, merge); in TEST_F() [all …]
|
D | dead-code-elimination-unittest.cc | 39 const MachineRepresentation kMachineRepresentations[] = { 40 MachineRepresentation::kBit, MachineRepresentation::kWord8, 41 MachineRepresentation::kWord16, MachineRepresentation::kWord32, 42 MachineRepresentation::kWord64, MachineRepresentation::kFloat32, 43 MachineRepresentation::kFloat64, MachineRepresentation::kTagged}; 194 common()->Phi(MachineRepresentation::kTagged, 2), v0, v1, merge); in TEST_F() 221 common()->Phi(MachineRepresentation::kTagged, 4), v0, v1, v2, v3, merge); in TEST_F() 231 IsPhi(MachineRepresentation::kTagged, v0, v3, r.replacement())); in TEST_F() 279 common()->Phi(MachineRepresentation::kTagged, 2), v0, v1, loop); in TEST_F() 308 common()->Phi(MachineRepresentation::kTagged, 4), v0, v1, v2, v3, loop); in TEST_F() [all …]
|
D | branch-elimination-unittest.cc | 58 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2), in TEST_F() 65 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2), in TEST_F() 77 IsPhi(MachineRepresentation::kWord32, IsInt32Constant(1), in TEST_F() 100 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2), in TEST_F() 106 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2), in TEST_F() 118 IsPhi(MachineRepresentation::kWord32, IsInt32Constant(2), in TEST_F() 134 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2), in TEST_F() 142 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2), in TEST_F()
|
D | common-operator-unittest.cc | 275 static const MachineRepresentation kMachineRepresentations[] = { in TEST_F() 276 MachineRepresentation::kBit, MachineRepresentation::kWord8, in TEST_F() 277 MachineRepresentation::kWord16, MachineRepresentation::kWord32, in TEST_F() 278 MachineRepresentation::kWord64, MachineRepresentation::kFloat32, in TEST_F() 279 MachineRepresentation::kFloat64, MachineRepresentation::kTagged}; in TEST_F() 282 TRACED_FOREACH(MachineRepresentation, rep, kMachineRepresentations) { in TEST_F()
|
/external/v8/src/compiler/ia32/ |
D | instruction-selector-ia32.cc | 176 case MachineRepresentation::kFloat32: in VisitLoad() 179 case MachineRepresentation::kFloat64: in VisitLoad() 182 case MachineRepresentation::kBit: // Fall through. in VisitLoad() 183 case MachineRepresentation::kWord8: in VisitLoad() 186 case MachineRepresentation::kWord16: in VisitLoad() 189 case MachineRepresentation::kTagged: // Fall through. in VisitLoad() 190 case MachineRepresentation::kWord32: in VisitLoad() 193 case MachineRepresentation::kWord64: // Fall through. in VisitLoad() 194 case MachineRepresentation::kNone: in VisitLoad() 219 MachineRepresentation rep = store_rep.representation(); in VisitStore() [all …]
|
/external/v8/src/compiler/x87/ |
D | instruction-selector-x87.cc | 137 case MachineRepresentation::kFloat32: in VisitLoad() 140 case MachineRepresentation::kFloat64: in VisitLoad() 143 case MachineRepresentation::kBit: // Fall through. in VisitLoad() 144 case MachineRepresentation::kWord8: in VisitLoad() 147 case MachineRepresentation::kWord16: in VisitLoad() 150 case MachineRepresentation::kTagged: // Fall through. in VisitLoad() 151 case MachineRepresentation::kWord32: in VisitLoad() 154 case MachineRepresentation::kWord64: // Fall through. in VisitLoad() 155 case MachineRepresentation::kNone: in VisitLoad() 180 MachineRepresentation rep = store_rep.representation(); in VisitStore() [all …]
|
/external/v8/src/compiler/ppc/ |
D | instruction-selector-ppc.cc | 171 case MachineRepresentation::kFloat32: in VisitLoad() 174 case MachineRepresentation::kFloat64: in VisitLoad() 177 case MachineRepresentation::kBit: // Fall through. in VisitLoad() 178 case MachineRepresentation::kWord8: in VisitLoad() 181 case MachineRepresentation::kWord16: in VisitLoad() 185 case MachineRepresentation::kTagged: // Fall through. in VisitLoad() 187 case MachineRepresentation::kWord32: in VisitLoad() 195 case MachineRepresentation::kTagged: // Fall through. in VisitLoad() 196 case MachineRepresentation::kWord64: in VisitLoad() 201 case MachineRepresentation::kWord64: // Fall through. in VisitLoad() [all …]
|
/external/v8/src/compiler/mips/ |
D | instruction-selector-mips.cc | 137 case MachineRepresentation::kFloat32: in VisitLoad() 140 case MachineRepresentation::kFloat64: in VisitLoad() 143 case MachineRepresentation::kBit: // Fall through. in VisitLoad() 144 case MachineRepresentation::kWord8: in VisitLoad() 147 case MachineRepresentation::kWord16: in VisitLoad() 150 case MachineRepresentation::kTagged: // Fall through. in VisitLoad() 151 case MachineRepresentation::kWord32: in VisitLoad() 154 case MachineRepresentation::kWord64: // Fall through. in VisitLoad() 155 case MachineRepresentation::kNone: in VisitLoad() 182 MachineRepresentation rep = store_rep.representation(); in VisitStore() [all …]
|
/external/v8/src/compiler/x64/ |
D | instruction-selector-x64.cc | 116 case MachineRepresentation::kFloat32: in VisitLoad() 119 case MachineRepresentation::kFloat64: in VisitLoad() 122 case MachineRepresentation::kBit: // Fall through. in VisitLoad() 123 case MachineRepresentation::kWord8: in VisitLoad() 126 case MachineRepresentation::kWord16: in VisitLoad() 129 case MachineRepresentation::kWord32: in VisitLoad() 132 case MachineRepresentation::kTagged: // Fall through. in VisitLoad() 133 case MachineRepresentation::kWord64: in VisitLoad() 136 case MachineRepresentation::kNone: in VisitLoad() 160 MachineRepresentation rep = store_rep.representation(); in VisitStore() [all …]
|
/external/v8/src/compiler/arm/ |
D | instruction-selector-arm.cc | 313 case MachineRepresentation::kFloat32: in VisitLoad() 316 case MachineRepresentation::kFloat64: in VisitLoad() 319 case MachineRepresentation::kBit: // Fall through. in VisitLoad() 320 case MachineRepresentation::kWord8: in VisitLoad() 323 case MachineRepresentation::kWord16: in VisitLoad() 326 case MachineRepresentation::kTagged: // Fall through. in VisitLoad() 327 case MachineRepresentation::kWord32: in VisitLoad() 330 case MachineRepresentation::kNone: // Fall through. in VisitLoad() 331 case MachineRepresentation::kWord64: in VisitLoad() 354 MachineRepresentation rep = store_rep.representation(); in VisitStore() [all …]
|