Searched refs:AsType (Results 1 – 3 of 3) sorted by relevance
282 static Type* AsType(TypeBase* type) { return reinterpret_cast<Type*>(type); } in AsType() function306 return AsType(new (zone->New(sizeof(OtherNumberConstantType))) in New()335 return AsType(new (zone->New(sizeof(HeapConstantType))) in NON_EXPORTED_BASE()389 return AsType(new (zone->New(sizeof(RangeType))) RangeType(bits, lim)); in New()458 return AsType(new (zone->New(sizeof(TupleType))) TupleType(length, zone)); in New()482 return AsType(new (zone->New(sizeof(UnionType))) UnionType(length, zone)); in New()
384 static AstType* AsType(AstTypeBase* type) { in AsType() function407 return AsType(new (zone->New(sizeof(AstClassType))) in New()438 return AsType(new (zone->New(sizeof(AstConstantType))) in New()500 return AsType(new (zone->New(sizeof(AstRangeType))) in New()529 return AsType(new (zone->New(sizeof(AstContextType))) in New()558 return AsType(new (zone->New(sizeof(AstArrayType))) AstArrayType(element)); in New()629 return AsType(new (zone->New(sizeof(AstFunctionType))) in New()656 return AsType(new (zone->New(sizeof(AstTupleType))) in New()682 return AsType(new (zone->New(sizeof(AstUnionType))) in New()
145 template <class AsType>147 AsType value; in readPointerHelper()148 memcpy(&value, p, sizeof(AsType)); in readPointerHelper()149 p += sizeof(AsType); in readPointerHelper()