Home
last modified time | relevance | path

Searched refs:DynamicCast (Results 1 – 21 of 21) sorted by relevance

/external/v8/src/torque/
Dtype-visitor.cc115 TorqueMacroDeclaration::DynamicCast(declaration); in DeclareMethods()
254 const ClassType* super_class = ClassType::DynamicCast(super_type); in ComputeType()
266 const ClassType* super_class = ClassType::DynamicCast(super_type); in ComputeType()
335 if (auto* basic = BasicTypeExpression::DynamicCast(type_expression)) { in ComputeType()
359 UnionTypeExpression::DynamicCast(type_expression)) { in ComputeType()
363 FunctionTypeExpression::DynamicCast(type_expression)) { in ComputeType()
440 if (auto literal = NumberLiteralExpression::DynamicCast(*field.index)) { in VisitClassFieldsAndMethods()
476 auto* basic = BasicTypeExpression::DynamicCast(type_expression); in ComputeTypeForStructExpression()
487 ? StructDeclaration::DynamicCast((*maybe_generic_type)->declaration()) in ComputeTypeForStructExpression()
Ddeclaration-visitor.cc302 if (!body && IntrinsicDeclaration::DynamicCast(key.generic->declaration()) == in SpecializeImplicit()
359 if (MacroDeclaration::DynamicCast(declaration) != nullptr) { in Specialize()
363 } else if (IntrinsicDeclaration::DynamicCast(declaration) != nullptr) { in Specialize()
380 if (const TypeAlias* alias = TypeAlias::DynamicCast(declarable)) { in ResolvePredeclarations()
Dimplementation-visitor.cc229 if (const ClassType* class_type = ClassType::DynamicCast(alias->type())) { in Visit()
378 if (Method* method = Method::DynamicCast(macro)) { in VisitMacroCommon()
942 if (auto* identifier = IdentifierExpression::DynamicCast(expr->object)) { in Visit()
1096 if (auto* var_declaration = VarDeclarationStatement::DynamicCast(s)) { in Visit()
1334 if (SpreadExpression* s = SpreadExpression::DynamicCast(e)) { in VisitInitializerResults()
1538 const ClassType* class_type = ClassType::DynamicCast(type); in Visit()
1898 if (GenericCallable* generic = GenericCallable::DynamicCast(declarable)) { in LookupCallable()
1911 } else if (Callable* callable = Callable::DynamicCast(declarable)) { in LookupCallable()
1960 GenericCallable::DynamicCast(overloads[best])) { in LookupCallable()
2044 if (const auto* struct_type = StructType::DynamicCast(type)) { in Visit()
[all …]
Ddeclarable.cc156 if (auto* decl = TorqueMacroDeclaration::DynamicCast(declaration())) { in CallableBody()
159 TorqueBuiltinDeclaration::DynamicCast(declaration())) { in CallableBody()
Ddeclarable.h136 static x* DynamicCast(Declarable* declarable) { \
141 static const x* DynamicCast(const Declarable* declarable) { \
181 if (Scope* scope = Scope::DynamicCast(declarable)) { in LookupShallow()
232 if (Namespace* n = Namespace::DynamicCast(scope)) { in CurrentNamespace()
Dtype-oracle.cc77 if (auto* class_type = ClassType::DynamicCast(t.get())) { in GetClasses()
Dtypes.h77 static x* DynamicCast(TypeBase* declarable) { \
82 static const x* DynamicCast(const TypeBase* declarable) { \
452 if (const UnionType* union_type = UnionType::DynamicCast(t)) { in Extend()
469 const UnionType* union_type = UnionType::DynamicCast(t); in FromType()
704 return parent()->IsClassType() ? ClassType::DynamicCast(parent()) : nullptr; in GetSuperClass()
Dtypes.cc93 if (const UnionType* union_type = UnionType::DynamicCast(supertype)) { in IsSubtypeOf()
115 if (auto* class_type = ClassType::DynamicCast(t)) { in ClassSupertype()
124 if (auto* struct_type = StructType::DynamicCast(t)) { in StructSupertype()
356 if (auto parent_class = ClassType::DynamicCast(parent())) { in HasField()
368 if (auto parent_class = ClassType::DynamicCast(parent())) { in LookupFieldInternal()
1281 IdentifierExpression::DynamicCast(array_size); in ExtractSimpleFieldArraySize()
Dtype-inference.cc61 BasicTypeExpression::DynamicCast(parameter)) { in Match()
Dclass-debug-reader-generator.cc59 BitFieldStructType::DynamicCast(type)) { in operator *()
100 BitFieldStructType::DynamicCast(type)) { in end()
Dinstance-type-generator.cc41 if (const TypeAlias* alias = TypeAlias::DynamicCast(p.get())) { in BuildInstanceTypeTree()
43 const ClassType* class_type = ClassType::DynamicCast(type); in BuildInstanceTypeTree()
Ddeclarations.h29 if (T* t = T::DynamicCast(declarable)) { in FilterDeclarables()
Dtorque-parser.cc304 if (BlockStatement* block = BlockStatement::DynamicCast(statement)) { in CheckNotDeferredStatement()
314 BasicTypeExpression* basic = BasicTypeExpression::DynamicCast(type); in AddConstexpr()
333 if (auto* e = ExpressionStatement::DynamicCast(statement)) { in MakeCall()
334 if (auto* id = IdentifierExpression::DynamicCast(e->expression)) { in MakeCall()
953 if (!BasicTypeExpression::DynamicCast(extends)) { in MakeClassDeclaration()
1246 if (if_false && !(BlockStatement::DynamicCast(if_true) && in MakeIfStatement()
1247 (BlockStatement::DynamicCast(*if_false) || in MakeIfStatement()
1248 IfStatement::DynamicCast(*if_false)))) { in MakeIfStatement()
1925 if (auto* id = IdentifierExpression::DynamicCast(expression)) { in MakeNameAndExpressionFromExpression()
Dinstructions.h228 T* DynamicCast() { in DynamicCast() function
234 const T* DynamicCast() const { in DynamicCast() function
Dcsa-generator.cc240 ClassType::DynamicCast(instruction.specialization_types[0]); in EmitInstruction()
343 if (ExternMacro* extern_macro = ExternMacro::DynamicCast(instruction.macro)) { in EmitInstruction()
412 if (ExternMacro* extern_macro = ExternMacro::DynamicCast(instruction.macro)) { in EmitInstruction()
Dast.h127 static T* DynamicCast(AstNode* node) { \
139 static T* DynamicCast(AstNode* node) { \
1244 if (auto* block = BlockStatement::DynamicCast(stmt)) { in IsDeferred()
Ddeclarations.cc95 if (Builtin* builtin = Builtin::DynamicCast(declarable.get())) { in FindSomeInternalBuiltinWithType()
Dinstructions.cc420 const BuiltinPointerType* f = BuiltinPointerType::DynamicCast(stack->Pop()); in TypeInstruction()
/external/clang/test/SemaTemplate/
Dvirtual-member-functions.cpp110 namespace DynamicCast { namespace
/external/clang/test/CXX/expr/expr.const/
Dp2-0x.cpp387 namespace DynamicCast { namespace
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp911 TEST(DynamicCast, MatchesSimpleCase) { in TEST() argument