Searched refs:MachineRepresentation (Results 1 - 25 of 85) sorted by relevance

1234

/external/v8/src/
H A Dmachine-type.cc11 std::ostream& operator<<(std::ostream& os, MachineRepresentation rep) {
13 case MachineRepresentation::kNone:
15 case MachineRepresentation::kBit:
17 case MachineRepresentation::kWord8:
19 case MachineRepresentation::kWord16:
21 case MachineRepresentation::kWord32:
23 case MachineRepresentation::kWord64:
25 case MachineRepresentation::kFloat32:
27 case MachineRepresentation::kFloat64:
29 case MachineRepresentation
[all...]
H A Dmachine-type.h18 enum class MachineRepresentation : uint8_t { class in namespace:v8::internal
44 : representation_(MachineRepresentation::kNone),
46 MachineType(MachineRepresentation representation, MachineSemantic semantic)
57 MachineRepresentation representation() const { return representation_; }
69 static MachineRepresentation PointerRepresentation() {
70 return (kPointerSize == 4) ? MachineRepresentation::kWord32
71 : MachineRepresentation::kWord64;
80 return MachineType(MachineRepresentation::kFloat32,
84 return MachineType(MachineRepresentation::kFloat64,
88 return MachineType(MachineRepresentation
[all...]
/external/v8/test/cctest/compiler/
H A Dtest-representation-change.cc86 void CheckTypeError(MachineRepresentation from, Type* from_type,
87 MachineRepresentation to) {
96 void CheckNop(MachineRepresentation from, Type* from_type,
97 MachineRepresentation to) {
117 true_node, MachineRepresentation::kTagged, Type::None(),
118 MachineRepresentation::kBit);
123 false_node, MachineRepresentation::kTagged, Type::None(),
124 MachineRepresentation::kBit);
135 node, MachineRepresentation::kBit, Type::Boolean(),
136 MachineRepresentation
[all...]
H A Dtest-gap-resolver.cc181 MachineRepresentation RandomRepresentation() {
185 return MachineRepresentation::kWord32;
187 return MachineRepresentation::kWord64;
189 return MachineRepresentation::kTagged;
192 return MachineRepresentation::kNone;
195 MachineRepresentation RandomDoubleRepresentation() {
197 if (index == 0) return MachineRepresentation::kFloat64;
198 return MachineRepresentation::kFloat32;
/external/v8/src/compiler/
H A Drepresentation-change.cc101 bool IsWord(MachineRepresentation rep) {
102 return rep == MachineRepresentation::kWord8 ||
103 rep == MachineRepresentation::kWord16 ||
104 rep == MachineRepresentation::kWord32;
115 Node* node, MachineRepresentation output_rep, Type* output_type,
116 MachineRepresentation use_rep, Truncation truncation) {
117 if (output_rep == MachineRepresentation::kNone) {
133 case MachineRepresentation::kTagged:
135 case MachineRepresentation::kFloat32:
138 case MachineRepresentation
[all...]
H A Drepresentation-change.h89 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 us
[all...]
H A Dsimplified-lowering.cc76 UseInfo(MachineRepresentation preferred, Truncation truncation)
79 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32());
82 return UseInfo(MachineRepresentation::kWord64, Truncation::Word64());
85 return UseInfo(MachineRepresentation::kBit, Truncation::Bool());
88 return UseInfo(MachineRepresentation::kFloat32, Truncation::Float32());
91 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64());
97 return UseInfo(MachineRepresentation::kTagged, Truncation::Any());
102 return UseInfo(MachineRepresentation::kNone, Truncation::Any());
105 return UseInfo(MachineRepresentation::kNone, Truncation::None());
111 return UseInfo(MachineRepresentation
[all...]
H A Dmachine-operator.h71 StoreRepresentation(MachineRepresentation representation,
76 MachineRepresentation representation() const { return representation_; }
80 MachineRepresentation representation_;
101 typedef MachineRepresentation CheckedStoreRepresentation;
148 MachineRepresentation word = MachineType::PointerRepresentation(),
316 bool Is32() const { return word() == MachineRepresentation::kWord32; }
317 bool Is64() const { return word() == MachineRepresentation::kWord64; }
318 MachineRepresentation word() const { return word_; }
351 MachineRepresentation const word_;
H A Dcommon-operator.h74 explicit SelectParameters(MachineRepresentation representation,
78 MachineRepresentation representation() const { return 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,
H A Dinstruction.cc143 case MachineRepresentation::kNone:
146 case MachineRepresentation::kBit:
149 case MachineRepresentation::kWord8:
152 case MachineRepresentation::kWord16:
155 case MachineRepresentation::kWord32:
158 case MachineRepresentation::kWord64:
161 case MachineRepresentation::kFloat32:
164 case MachineRepresentation::kFloat64:
167 case MachineRepresentation::kTagged:
242 ExplicitOperand::ExplicitOperand(LocationKind kind, MachineRepresentation re
[all...]
H A Dinstruction-selector-impl.h71 MachineRepresentation rep) {
132 MachineRepresentation rep = InstructionSequence::DefaultRepresentation();
147 MachineRepresentation rep) {
155 MachineRepresentation rep = MachineType::PointerRepresentation();
173 sequence()->MarkAsRepresentation(MachineRepresentation::kFloat64,
188 MachineRepresentation rep) {
255 MachineRepresentation rep,
H A Dinstruction-selector.h173 void MarkAsRepresentation(MachineRepresentation rep, Node* node);
175 MarkAsRepresentation(MachineRepresentation::kWord32, node);
178 MarkAsRepresentation(MachineRepresentation::kWord64, node);
181 MarkAsRepresentation(MachineRepresentation::kFloat32, node);
184 MarkAsRepresentation(MachineRepresentation::kFloat64, node);
187 MarkAsRepresentation(MachineRepresentation::kTagged, node);
192 void MarkAsRepresentation(MachineRepresentation rep,
H A Dinstruction.h404 MachineRepresentation rep, int index)
434 MachineRepresentation representation() const {
438 static bool IsSupportedRepresentation(MachineRepresentation rep) {
440 case MachineRepresentation::kWord32:
441 case MachineRepresentation::kWord64:
442 case MachineRepresentation::kFloat32:
443 case MachineRepresentation::kFloat64:
444 case MachineRepresentation::kTagged:
446 case MachineRepresentation::kBit:
447 case MachineRepresentation
[all...]
H A Dmachine-operator.cc288 StoreRepresentation(MachineRepresentation::Type, \
316 "CheckedStore", 4, 1, 1, 0, 1, 0, MachineRepresentation::Type) { \
335 MachineRepresentation word,
338 DCHECK(word == MachineRepresentation::kWord32 ||
339 word == MachineRepresentation::kWord64);
386 case MachineRepresentation::kRep: \
400 case MachineRepresentation::kBit:
401 case MachineRepresentation::kNone:
426 case MachineRepresentation::kRep: \
430 case MachineRepresentation
[all...]
/external/v8/test/unittests/compiler/
H A Dselect-lowering-unittest.cc38 common()->Select(MachineRepresentation::kWord32), p0, p1, p2);
48 MachineRepresentation::kWord32, p1, p2,
56 common()->Select(MachineRepresentation::kWord32), p0, p3, p4));
58 EXPECT_THAT(r.replacement(), IsPhi(MachineRepresentation::kWord32, p3, p4,
65 common()->Select(MachineRepresentation::kWord32), p0, s0, p0));
67 EXPECT_THAT(r.replacement(), IsPhi(MachineRepresentation::kWord32, s0, p0,
H A Dmachine-operator-unittest.cc21 ::testing::tuple<MachineRepresentation, T> > {
23 MachineRepresentation representation() const {
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
[all...]
H A Dcommon-operator-reducer-unittest.cc58 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, re
[all...]
H A Dchange-lowering-unittest.cc30 virtual MachineRepresentation WordRepresentation() const = 0;
34 return WordRepresentation() == MachineRepresentation::kWord32;
37 return WordRepresentation() == MachineRepresentation::kWord64;
101 public ::testing::WithParamInterface<MachineRepresentation> {
105 MachineRepresentation WordRepresentation() const final { return GetParam(); }
114 EXPECT_THAT(r.replacement(), IsSelect(MachineRepresentation::kTagged, value,
196 IsStore(StoreRepresentation(MachineRepresentation::kTagged,
215 IsStore(StoreRepresentation(MachineRepresentation::kTagged,
261 IsStore(StoreRepresentation(MachineRepresentation::kTagged,
285 IsStore(StoreRepresentation(MachineRepresentation
[all...]
H A Ddead-code-elimination-unittest.cc39 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
[all...]
H A Dbranch-elimination-unittest.cc58 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2),
65 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2),
77 IsPhi(MachineRepresentation::kWord32, IsInt32Constant(1),
100 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2),
106 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2),
118 IsPhi(MachineRepresentation::kWord32, IsInt32Constant(2),
134 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2),
142 graph()->NewNode(common()->Phi(MachineRepresentation::kWord32, 2),
H A Dcommon-operator-unittest.cc275 static const MachineRepresentation kMachineRepresentations[] = {
276 MachineRepresentation::kBit, MachineRepresentation::kWord8,
277 MachineRepresentation::kWord16, MachineRepresentation::kWord32,
278 MachineRepresentation::kWord64, MachineRepresentation::kFloat32,
279 MachineRepresentation::kFloat64, MachineRepresentation::kTagged};
282 TRACED_FOREACH(MachineRepresentation, re
[all...]
/external/v8/src/compiler/ppc/
H A Dinstruction-selector-ppc.cc171 case MachineRepresentation::kFloat32:
174 case MachineRepresentation::kFloat64:
177 case MachineRepresentation::kBit: // Fall through.
178 case MachineRepresentation::kWord8:
181 case MachineRepresentation::kWord16:
185 case MachineRepresentation::kTagged: // Fall through.
187 case MachineRepresentation::kWord32:
195 case MachineRepresentation::kTagged: // Fall through.
196 case MachineRepresentation::kWord64:
201 case MachineRepresentation
[all...]
/external/v8/src/compiler/ia32/
H A Dinstruction-selector-ia32.cc176 case MachineRepresentation::kFloat32:
179 case MachineRepresentation::kFloat64:
182 case MachineRepresentation::kBit: // Fall through.
183 case MachineRepresentation::kWord8:
186 case MachineRepresentation::kWord16:
189 case MachineRepresentation::kTagged: // Fall through.
190 case MachineRepresentation::kWord32:
193 case MachineRepresentation::kWord64: // Fall through.
194 case MachineRepresentation::kNone:
219 MachineRepresentation re
[all...]
/external/v8/src/compiler/x87/
H A Dinstruction-selector-x87.cc137 case MachineRepresentation::kFloat32:
140 case MachineRepresentation::kFloat64:
143 case MachineRepresentation::kBit: // Fall through.
144 case MachineRepresentation::kWord8:
147 case MachineRepresentation::kWord16:
150 case MachineRepresentation::kTagged: // Fall through.
151 case MachineRepresentation::kWord32:
154 case MachineRepresentation::kWord64: // Fall through.
155 case MachineRepresentation::kNone:
180 MachineRepresentation re
[all...]
/external/v8/src/compiler/mips/
H A Dinstruction-selector-mips.cc137 case MachineRepresentation::kFloat32:
140 case MachineRepresentation::kFloat64:
143 case MachineRepresentation::kBit: // Fall through.
144 case MachineRepresentation::kWord8:
147 case MachineRepresentation::kWord16:
150 case MachineRepresentation::kTagged: // Fall through.
151 case MachineRepresentation::kWord32:
154 case MachineRepresentation::kWord64: // Fall through.
155 case MachineRepresentation::kNone:
182 MachineRepresentation re
[all...]

Completed in 1676 milliseconds

1234