Home
last modified time | relevance | path

Searched refs:AstBounds (Results 1 – 5 of 5) sorted by relevance

/external/v8/src/ast/
Dast-type-bounds.h23 AstBounds get(Expression* expression) const { in get()
24 ZoneMap<Expression*, AstBounds>::const_iterator i = in get()
26 return (i != bounds_map_.end()) ? i->second : AstBounds::Unbounded(); in get()
29 void set(Expression* expression, AstBounds bounds) { in set()
34 ZoneMap<Expression*, AstBounds> bounds_map_;
Dast-types.h961 struct AstBounds { struct
965 AstBounds() in AstBounds() argument
969 explicit AstBounds(AstType* t) : lower(t), upper(t) {} in AstBounds() function
970 AstBounds(AstType* l, AstType* u) : lower(l), upper(u) { in AstBounds() function
975 static AstBounds Unbounded() { in Unbounded() argument
976 return AstBounds(AstType::None(), AstType::Any()); in Unbounded()
980 static AstBounds Both(AstBounds b1, AstBounds b2, Zone* zone) { in Both() argument
985 return AstBounds(lower, upper); in Both()
989 static AstBounds Either(AstBounds b1, AstBounds b2, Zone* zone) { in Either() argument
992 return AstBounds(lower, upper); in Either()
[all …]
/external/v8/src/crankshaft/
Dtyping.cc50 return Effect(AstBounds(lower, AstType::Any())); in ObservedOnStack()
370 AstBounds::Either(bounds_->get(expr->then_expression()), in VisitConditional()
385 NarrowType(expr, AstBounds(type)); 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()
483 NarrowType(expr, AstBounds(AstType::None())); in VisitThrow()
561 NarrowType(expr, AstBounds(AstType::None(), AstType::Receiver())); in VisitCallNew()
588 NarrowType(expr, AstBounds(AstType::Boolean())); in VisitUnaryOperation()
591 NarrowType(expr, AstBounds(AstType::Undefined())); in VisitUnaryOperation()
[all …]
Dtyping.h54 void NarrowType(Expression* e, AstBounds b) { in NarrowType()
55 bounds_->set(e, AstBounds::Both(bounds_->get(e), b, zone())); in NarrowType()
58 bounds_->set(e, AstBounds::NarrowLower(bounds_->get(e), t, zone())); in NarrowLowerType()
/external/v8/src/
Deffects.h31 AstBounds bounds;
34 explicit Effect(AstBounds b, Modality m = DEFINITE)
39 return Effect(AstBounds::Unbounded(), POSSIBLE); in Unknown()
43 return Effect(AstBounds::Unbounded(), DEFINITE); in Forget()
49 return Effect(AstBounds::Either(e1.bounds, e2.bounds, zone), e1.modality); in Seq()
54 return Effect(AstBounds::Either(e1.bounds, e2.bounds, zone), in Alt()
87 AstBounds LookupBounds(Var var) { in LookupBounds()
90 : AstBounds::Unbounded(); in LookupBounds()