Home
last modified time | relevance | path

Searched refs:AstType (Results 1 – 17 of 17) sorted by relevance

/external/v8/src/ast/
Dast-types.h279 class AstType; variable
317 static bitset Glb(AstType* type); // greatest lower bound that's a bitset
319 static bitset Lub(AstType* type); // least upper bound that's a bitset
334 static bool IsBitset(AstType* type) { in IsBitset()
338 static AstType* NewForTesting(bitset bits) { return New(bits); } in NewForTesting()
341 friend class AstType;
343 static AstType* New(bitset bits) { in New()
344 return reinterpret_cast<AstType*>(static_cast<uintptr_t>(bits | 1u)); in New()
361 friend class AstType;
377 static bool IsKind(AstType* type, Kind kind) { in IsKind()
[all …]
Dast-types.cc19 bool AstType::IsInteger(i::Object* x) { in IsInteger()
20 return x->IsNumber() && AstType::IsInteger(x->Number()); in IsInteger()
46 bool AstType::Overlap(AstRangeType* lhs, AstRangeType* rhs) { in Overlap()
53 bool AstType::Contains(AstRangeType* lhs, AstRangeType* rhs) { in Contains()
58 bool AstType::Contains(AstRangeType* lhs, AstConstantType* rhs) { in Contains()
64 bool AstType::Contains(AstRangeType* range, i::Object* val) { in Contains()
73 double AstType::Min() { in Min()
89 double AstType::Max() { in Max()
109 AstType::bitset AstBitsetType::Glb(AstType* type) { in Glb()
128 AstType::bitset AstBitsetType::Lub(AstType* type) { in Lub()
[all …]
Dast.h978 AstType* compare_type() { return compare_type_; } in compare_type()
979 void set_compare_type(AstType* type) { compare_type_ = type; } in set_compare_type()
1001 AstType* compare_type_;
2210 AstType* type() const { return type_; } in type()
2217 void set_type(AstType* type) { type_ = type; } in set_type()
2260 AstType* type_;
2280 AstType* combined_type() const { return combined_type_; } in combined_type()
2281 void set_combined_type(AstType* type) { combined_type_ = type; } in set_combined_type()
2306 combined_type_(AstType::None()) { in CompareOperation()
2317 AstType* combined_type_;
Dast.cc932 compare_type_(AstType::None()) {} in CaseClause()
/external/v8/src/
Dtype-info.cc196 AstType* CompareOpHintToType(CompareOperationHint hint) { in CompareOpHintToType()
199 return AstType::None(); in CompareOpHintToType()
201 return AstType::SignedSmall(); in CompareOpHintToType()
203 return AstType::Number(); in CompareOpHintToType()
205 return AstType::NumberOrOddball(); in CompareOpHintToType()
207 return AstType::Any(); in CompareOpHintToType()
210 return AstType::None(); in CompareOpHintToType()
213 AstType* BinaryOpFeedbackToType(int hint) { in BinaryOpFeedbackToType()
216 return AstType::None(); in BinaryOpFeedbackToType()
218 return AstType::SignedSmall(); in BinaryOpFeedbackToType()
[all …]
Dtype-info.h80 void BinaryType(TypeFeedbackId id, FeedbackVectorSlot slot, AstType** left,
81 AstType** right, AstType** result,
86 void CompareType(TypeFeedbackId id, FeedbackVectorSlot slot, AstType** left,
87 AstType** right, AstType** combined);
89 AstType* CountType(TypeFeedbackId id, FeedbackVectorSlot slot);
Dfield-type.cc74 AstType* FieldType::Convert(Zone* zone) { in Convert()
75 if (IsAny()) return AstType::NonInternal(); in Convert()
76 if (IsNone()) return AstType::None(); in Convert()
78 return AstType::Class(AsClass(), zone); in Convert()
Dcode-stubs-hydrogen.cc897 AstType* left_type = state.GetLeftType(); in BuildCodeInitializedStub()
898 AstType* right_type = state.GetRightType(); in BuildCodeInitializedStub()
899 AstType* result_type = state.GetResultType(); in BuildCodeInitializedStub()
901 DCHECK(!left_type->Is(AstType::None()) && !right_type->Is(AstType::None()) && in BuildCodeInitializedStub()
902 (state.HasSideEffects() || !result_type->Is(AstType::None()))); in BuildCodeInitializedStub()
906 if (state.op() == Token::ADD && (left_type->Maybe(AstType::String()) || in BuildCodeInitializedStub()
907 right_type->Maybe(AstType::String())) && in BuildCodeInitializedStub()
908 !left_type->Is(AstType::String()) && !right_type->Is(AstType::String())) { in BuildCodeInitializedStub()
911 if (left_type->Maybe(AstType::String())) { in BuildCodeInitializedStub()
916 Push(BuildBinaryOperation(state.op(), left, right, AstType::String(), in BuildCodeInitializedStub()
[all …]
Dfield-type.h42 AstType* Convert(Zone* zone);
/external/v8/src/crankshaft/
Dtyping.cc37 static void PrintObserved(Variable* var, Object* value, AstType* type) { in PrintObserved()
49 AstType* lower = AstType::NowOf(value, zone()); in ObservedOnStack()
50 return Effect(AstBounds(lower, AstType::Any())); in ObservedOnStack()
208 AstType* tag_type; in VisitSwitchStatement()
209 AstType* label_type; in VisitSwitchStatement()
210 AstType* combined_type; in VisitSwitchStatement()
384 AstType* type = AstType::Constant(expr->value(), zone()); in VisitLiteral()
391 NarrowType(expr, AstBounds(AstType::Object())); in VisitRegExpLiteral()
419 NarrowType(expr, AstBounds(AstType::Object())); in VisitObjectLiteral()
430 NarrowType(expr, AstBounds(AstType::Object())); in VisitArrayLiteral()
[all …]
Dhydrogen-types.cc15 HType HType::FromType(AstType* type) { in FromType()
16 if (AstType::Any()->Is(type)) return HType::Any(); in FromType()
18 if (type->Is(AstType::SignedSmall())) return HType::Smi(); in FromType()
19 if (type->Is(AstType::Number())) return HType::TaggedNumber(); in FromType()
20 if (type->Is(AstType::Null())) return HType::Null(); in FromType()
21 if (type->Is(AstType::String())) return HType::String(); in FromType()
22 if (type->Is(AstType::Boolean())) return HType::Boolean(); in FromType()
23 if (type->Is(AstType::Undefined())) return HType::Undefined(); in FromType()
24 if (type->Is(AstType::Object())) return HType::JSObject(); in FromType()
25 if (type->Is(AstType::DetectableReceiver())) return HType::JSReceiver(); in FromType()
Dhydrogen.cc1840 HValue* HGraphBuilder::BuildNumberToString(HValue* object, AstType* type) { in BuildNumberToString()
1890 if (type->Is(AstType::SignedSmall())) { in BuildNumberToString()
1946 if (type->Is(AstType::Number())) { in BuildNumberToString()
4598 AstType* tag_type = bounds_.get(stmt->tag()).lower; in VisitSwitchStatement()
4615 AstType* label_type = bounds_.get(clause->label()).lower; in VisitSwitchStatement()
4616 AstType* combined_type = clause->compare_type(); in VisitSwitchStatement()
10362 static Representation RepresentationFor(AstType* type) { in RepresentationFor()
10364 if (type->Is(AstType::None())) return Representation::None(); in RepresentationFor()
10365 if (type->Is(AstType::SignedSmall())) return Representation::Smi(); in RepresentationFor()
10366 if (type->Is(AstType::Signed32())) return Representation::Integer32(); in RepresentationFor()
[all …]
Dhydrogen-types.h67 static HType FromType(AstType* type) WARN_UNUSED_RESULT;
Dtyping.h57 void NarrowLowerType(Expression* e, AstType* t) { in NarrowLowerType()
Dhydrogen.h1392 HValue* BuildNumberToString(HValue* object, AstType* type);
1470 AstType* left_type, AstType* right_type,
1471 AstType* result_type, Maybe<int> fixed_right_arg,
1484 HValue* EnforceNumberType(HValue* number, AstType* expected);
1485 HValue* TruncateToNumber(HValue* value, AstType** expected);
2656 Token::Value op, HValue* left, HValue* right, AstType* left_type,
2657 AstType* right_type, AstType* combined_type, SourcePosition left_position,
/external/v8/src/ic/
Dic-state.cc192 AstType* BinaryOpICState::GetResultType() const { in GetResultType()
197 return AstType::NumberOrString(); in GetResultType()
199 return AstType::Unsigned32(); in GetResultType()
320 AstType* BinaryOpICState::KindToType(Kind kind) { in KindToType()
323 return AstType::None(); in KindToType()
325 return AstType::SignedSmall(); in KindToType()
327 return AstType::Signed32(); in KindToType()
329 return AstType::Number(); in KindToType()
331 return AstType::String(); in KindToType()
333 return AstType::Any(); in KindToType()
[all …]
Dic-state.h120 AstType* GetLeftType() const { return KindToType(left_kind_); } in GetLeftType()
121 AstType* GetRightType() const { return KindToType(right_kind_); } in GetRightType()
122 AstType* GetResultType() const;
140 static AstType* KindToType(Kind kind);
202 static AstType* StateToType(Zone* zone, State state,