/external/v8/src/ast/ |
D | ast-types.h | 277 class AstType; variable 315 static bitset Glb(AstType* type); // greatest lower bound that's a bitset 317 static bitset Lub(AstType* type); // least upper bound that's a bitset 332 static bool IsBitset(AstType* type) { in IsBitset() 336 static AstType* NewForTesting(bitset bits) { return New(bits); } in NewForTesting() 339 friend class AstType; 341 static AstType* New(bitset bits) { in New() 342 return reinterpret_cast<AstType*>(static_cast<uintptr_t>(bits | 1u)); in New() 359 friend class AstType; 375 static bool IsKind(AstType* type, Kind kind) { in IsKind() [all …]
|
D | ast-types.cc | 20 bool AstType::IsInteger(i::Object* x) { in IsInteger() 21 return x->IsNumber() && AstType::IsInteger(x->Number()); in IsInteger() 47 bool AstType::Overlap(AstRangeType* lhs, AstRangeType* rhs) { in Overlap() 54 bool AstType::Contains(AstRangeType* lhs, AstRangeType* rhs) { in Contains() 59 bool AstType::Contains(AstRangeType* lhs, AstConstantType* rhs) { in Contains() 65 bool AstType::Contains(AstRangeType* range, i::Object* val) { in Contains() 74 double AstType::Min() { in Min() 90 double AstType::Max() { in Max() 110 AstType::bitset AstBitsetType::Glb(AstType* type) { in Glb() 129 AstType::bitset AstBitsetType::Lub(AstType* type) { in Lub() [all …]
|
D | ast.h | 961 AstType* compare_type() { return compare_type_; } in compare_type() 962 void set_compare_type(AstType* type) { compare_type_ = type; } in set_compare_type() 982 AstType* compare_type_; 2200 AstType* type() const { return type_; } in type() 2207 void set_type(AstType* type) { type_ = type; } in set_type() 2250 AstType* type_; 2270 AstType* combined_type() const { return combined_type_; } in combined_type() 2271 void set_combined_type(AstType* type) { combined_type_ = type; } in set_combined_type() 2294 combined_type_(AstType::None()) { in CompareOperation() 2305 AstType* combined_type_;
|
D | ast.cc | 1089 compare_type_(AstType::None()) {} in CaseClause()
|
/external/v8/src/ |
D | type-info.cc | 179 AstType* CompareOpHintToType(CompareOperationHint hint) { in CompareOpHintToType() 182 return AstType::None(); in CompareOpHintToType() 184 return AstType::SignedSmall(); in CompareOpHintToType() 186 return AstType::Number(); in CompareOpHintToType() 188 return AstType::NumberOrOddball(); in CompareOpHintToType() 190 return AstType::InternalizedString(); in CompareOpHintToType() 192 return AstType::String(); in CompareOpHintToType() 194 return AstType::Receiver(); in CompareOpHintToType() 196 return AstType::Any(); in CompareOpHintToType() 199 return AstType::None(); in CompareOpHintToType() [all …]
|
D | type-info.h | 79 void BinaryType(TypeFeedbackId id, FeedbackSlot slot, AstType** left, 80 AstType** right, AstType** result, 85 void CompareType(TypeFeedbackId id, FeedbackSlot slot, AstType** left, 86 AstType** right, AstType** combined); 88 AstType* CountType(TypeFeedbackId id, FeedbackSlot slot);
|
D | code-stubs-hydrogen.cc | 393 AstType* left_type = state.GetLeftType(); in BuildCodeInitializedStub() 394 AstType* right_type = state.GetRightType(); in BuildCodeInitializedStub() 395 AstType* result_type = state.GetResultType(); in BuildCodeInitializedStub() 397 DCHECK(!left_type->Is(AstType::None()) && !right_type->Is(AstType::None()) && in BuildCodeInitializedStub() 398 (state.HasSideEffects() || !result_type->Is(AstType::None()))); in BuildCodeInitializedStub() 402 if (state.op() == Token::ADD && (left_type->Maybe(AstType::String()) || in BuildCodeInitializedStub() 403 right_type->Maybe(AstType::String())) && in BuildCodeInitializedStub() 404 !left_type->Is(AstType::String()) && !right_type->Is(AstType::String())) { in BuildCodeInitializedStub() 407 if (left_type->Maybe(AstType::String())) { in BuildCodeInitializedStub() 412 Push(BuildBinaryOperation(state.op(), left, right, AstType::String(), in BuildCodeInitializedStub() [all …]
|
D | field-type.cc | 75 AstType* FieldType::Convert(Zone* zone) { in Convert() 76 if (IsAny()) return AstType::NonInternal(); in Convert() 77 if (IsNone()) return AstType::None(); in Convert() 79 return AstType::Class(AsClass(), zone); in Convert()
|
D | field-type.h | 44 AstType* Convert(Zone* zone);
|
/external/v8/src/crankshaft/ |
D | typing.cc | 37 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 …]
|
D | hydrogen-types.cc | 16 HType HType::FromType(AstType* type) { in FromType() 17 if (AstType::Any()->Is(type)) return HType::Any(); in FromType() 19 if (type->Is(AstType::SignedSmall())) return HType::Smi(); in FromType() 20 if (type->Is(AstType::Number())) return HType::TaggedNumber(); in FromType() 21 if (type->Is(AstType::Null())) return HType::Null(); in FromType() 22 if (type->Is(AstType::String())) return HType::String(); in FromType() 23 if (type->Is(AstType::Boolean())) return HType::Boolean(); in FromType() 24 if (type->Is(AstType::Undefined())) return HType::Undefined(); in FromType() 25 if (type->Is(AstType::Object())) return HType::JSObject(); in FromType() 26 if (type->Is(AstType::DetectableReceiver())) return HType::JSReceiver(); in FromType()
|
D | typing.h | 57 void NarrowLowerType(Expression* e, AstType* t) { in NarrowLowerType()
|
D | hydrogen-types.h | 67 static HType FromType(AstType* type) WARN_UNUSED_RESULT;
|
D | hydrogen.cc | 1792 HValue* HGraphBuilder::BuildNumberToString(HValue* object, AstType* type) { in BuildNumberToString() 1842 if (type->Is(AstType::SignedSmall())) { in BuildNumberToString() 1898 if (type->Is(AstType::Number())) { in BuildNumberToString() 4553 AstType* tag_type = bounds_.get(stmt->tag()).lower; in VisitSwitchStatement() 4570 AstType* label_type = bounds_.get(clause->label()).lower; in VisitSwitchStatement() 4571 AstType* combined_type = clause->compare_type(); in VisitSwitchStatement() 10420 static Representation RepresentationFor(AstType* type) { in RepresentationFor() 10422 if (type->Is(AstType::None())) return Representation::None(); in RepresentationFor() 10423 if (type->Is(AstType::SignedSmall())) return Representation::Smi(); in RepresentationFor() 10424 if (type->Is(AstType::Signed32())) return Representation::Integer32(); in RepresentationFor() [all …]
|
D | hydrogen.h | 1387 HValue* BuildNumberToString(HValue* object, AstType* type); 1465 AstType* left_type, AstType* right_type, 1466 AstType* result_type, Maybe<int> fixed_right_arg, 1479 HValue* EnforceNumberType(HValue* number, AstType* expected); 1480 HValue* TruncateToNumber(HValue* value, AstType** expected); 2670 Token::Value op, HValue* left, HValue* right, AstType* left_type, 2671 AstType* right_type, AstType* combined_type, SourcePosition left_position,
|
/external/v8/src/ic/ |
D | ic-state.cc | 207 AstType* BinaryOpICState::GetResultType() const { in GetResultType() 212 return AstType::NumberOrString(); in GetResultType() 214 return AstType::Unsigned32(); in GetResultType() 335 AstType* BinaryOpICState::KindToType(Kind kind) { in KindToType() 338 return AstType::None(); in KindToType() 340 return AstType::SignedSmall(); in KindToType() 342 return AstType::Signed32(); in KindToType() 344 return AstType::Number(); in KindToType() 346 return AstType::String(); in KindToType() 348 return AstType::Any(); in KindToType() [all …]
|
D | ic-state.h | 14 class AstType; variable 90 AstType* GetLeftType() const { return KindToType(left_kind_); } in GetLeftType() 91 AstType* GetRightType() const { return KindToType(right_kind_); } in GetRightType() 92 AstType* GetResultType() const; 110 static AstType* KindToType(Kind kind); 172 static AstType* StateToType(Zone* zone, State state,
|