Home
last modified time | relevance | path

Searched refs:FunctionKind (Results 1 – 25 of 43) sorted by relevance

12

/external/v8/src/objects/
Dfunction-kind.h14 enum FunctionKind : uint8_t { enum
63 inline bool IsArrowFunction(FunctionKind kind) { in IsArrowFunction()
64 return base::IsInRange(kind, FunctionKind::kArrowFunction, in IsArrowFunction()
65 FunctionKind::kAsyncArrowFunction); in IsArrowFunction()
68 inline bool IsModule(FunctionKind kind) { in IsModule()
69 return base::IsInRange(kind, FunctionKind::kModule, in IsModule()
70 FunctionKind::kAsyncModule); in IsModule()
73 inline bool IsAsyncModule(FunctionKind kind) { in IsAsyncModule()
74 return kind == FunctionKind::kAsyncModule; in IsAsyncModule()
77 inline bool IsAsyncGeneratorFunction(FunctionKind kind) { in IsAsyncGeneratorFunction()
[all …]
Dshared-function-info.tq17 type FunctionKind extends uint8 constexpr 'FunctionKind';
22 // Have FunctionKind first to make it cheaper to access.
23 function_kind: FunctionKind: 5 bit;
Dscope-info.tq39 function_kind: FunctionKind: 5 bit;
Dshared-function-info.h478 inline FunctionKind kind() const;
677 inline void set_kind(FunctionKind kind);
Dscope-info.h186 FunctionKind function_kind() const;
Dcontexts-inl.h201 int Context::FunctionMapIndex(LanguageMode language_mode, FunctionKind kind,
Dshared-function-info-inl.h251 FunctionKind SharedFunctionInfo::kind() const { in kind()
256 void SharedFunctionInfo::set_kind(FunctionKind kind) { in set_kind()
Dscope-info.cc187 FunctionKind function_kind = kNormalFunction; in Create()
492 FunctionKindBits::encode(FunctionKind::kNormalFunction) | in CreateForBootstrapping()
949 FunctionKind ScopeInfo::function_kind() const { in function_kind()
/external/clang/lib/AST/
DComment.cpp159 Kind = FunctionKind; in fill()
179 Kind = FunctionKind; in fill()
189 Kind = FunctionKind; in fill()
277 Kind = FunctionKind; in fill()
296 Kind = FunctionKind; in fill()
/external/v8/src/parsing/
Dexpression-scope.h740 ArrowHeadParsingScope(ParserT* parser, FunctionKind kind) in ArrowHeadParsingScope()
743 kind == FunctionKind::kArrowFunction in ArrowHeadParsingScope()
747 DCHECK(kind == FunctionKind::kAsyncArrowFunction || in ArrowHeadParsingScope()
748 kind == FunctionKind::kArrowFunction); in ArrowHeadParsingScope()
815 FunctionKind kind() const { in kind()
817 ? FunctionKind::kAsyncArrowFunction in kind()
818 : FunctionKind::kArrowFunction; in kind()
Dparser-base.h447 FunctionKind kind() const { return scope()->function_kind(); } in kind()
804 DeclarationScope* NewFunctionScope(FunctionKind kind,
1116 V8_INLINE IdentifierT ParseIdentifier(FunctionKind function_kind);
1216 void CheckArityRestrictions(int param_count, FunctionKind function_type,
1240 FunctionKind kind,
1374 FunctionKind FunctionKindForImpl(bool is_method, ParseFunctionFlags flags) { in FunctionKindForImpl()
1375 static const FunctionKind kFunctionKinds[][2][2] = { in FunctionKindForImpl()
1379 FunctionKind::kNormalFunction, FunctionKind::kAsyncFunction}, in FunctionKindForImpl()
1381 FunctionKind::kGeneratorFunction, in FunctionKindForImpl()
1382 FunctionKind::kAsyncGeneratorFunction}, in FunctionKindForImpl()
[all …]
Dparse-info.h111 FunctionKind function_kind() const { return function_kind_; } in function_kind()
112 UnoptimizedCompileFlags& set_function_kind(FunctionKind value) { in set_function_kind()
144 FunctionKind function_kind_;
Dparser.h301 void ParseAndRewriteGeneratorFunctionBody(int pos, FunctionKind kind,
304 int pos, FunctionKind kind, ScopedPtrList<Statement>* body);
379 FunctionNameValidity function_name_validity, FunctionKind kind,
427 bool SkipFunction(const AstRawString* function_name, FunctionKind kind,
440 int pos, FunctionKind kind, FunctionSyntaxKind function_syntax_kind,
507 Expression* BuildInitialYield(int pos, FunctionKind kind);
508 Assignment* BuildCreateJSGeneratorObject(int pos, FunctionKind kind);
Dpreparser.h960 const AstRawString* function_name, FunctionKind kind,
1001 V8_INLINE bool SkipFunction(const AstRawString* name, FunctionKind kind,
1011 FunctionNameValidity function_name_validity, FunctionKind kind,
1135 int pos, FunctionKind kind, PreParserScopedStatementList* body) {
1139 int pos, FunctionKind kind, PreParserScopedStatementList* body) {
1249 FunctionKind kind = has_extends ? FunctionKind::kDefaultDerivedConstructor
1250 : FunctionKind::kDefaultBaseConstructor;
Dpreparser.cc106 const AstRawString* function_name, FunctionKind kind, in PreParseFunction()
265 FunctionNameValidity function_name_validity, FunctionKind kind, in ParseFunctionLiteral()
Dparser.cc43 FunctionKind kind = call_super ? FunctionKind::kDefaultDerivedConstructor in DefaultConstructor()
44 : FunctionKind::kDefaultBaseConstructor; in DefaultConstructor()
911 FunctionKind kind = flags().function_kind(); in DoParseFunction()
1938 int pos, FunctionKind kind, ScopedPtrList<Statement>* body) { in ParseAndRewriteGeneratorFunctionBody()
1947 int pos, FunctionKind kind, ScopedPtrList<Statement>* body) { in ParseAndRewriteAsyncGeneratorFunctionBody()
2480 FunctionNameValidity function_name_validity, FunctionKind kind, in ParseFunctionLiteral()
2697 bool Parser::SkipFunction(const AstRawString* function_name, FunctionKind kind, in SkipFunction()
2885 Expression* Parser::BuildInitialYield(int pos, FunctionKind kind) { in BuildInitialYield()
2898 FunctionKind kind, FunctionSyntaxKind function_syntax_kind, in ParseFunction()
3099 FunctionKind::kClassMembersInitializerFunction); in CreateInitializerFunction()
Dparse-info.cc27 function_kind_(FunctionKind::kNormalFunction), in UnoptimizedCompileFlags()
/external/llvm/include/llvm/IR/
DModuleSummaryIndex.h90 enum SummaryKind { AliasKind, FunctionKind, GlobalVarKind }; enumerator
247 : GlobalValueSummary(FunctionKind, Flags), InstCount(NumInsts) {} in FunctionSummary()
251 return GVS->getSummaryKind() == FunctionKind; in classof()
/external/v8/src/ast/
Dprettyprinter.h75 FunctionKind function_kind_;
Dscopes.h816 FunctionKind function_kind = kNormalFunction);
823 FunctionKind function_kind() const { return function_kind_; }
1237 FunctionKind function_kind_;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DModuleSummaryIndex.h236 enum SummaryKind : unsigned { AliasKind, FunctionKind, GlobalVarKind };
513 : GlobalValueSummary(FunctionKind, Flags, std::move(Refs)),
528 return GVS->getSummaryKind() == FunctionKind;
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1287 } FunctionKind; in diagnoseRepeatedUseOfWeak() local
1290 FunctionKind = Block; in diagnoseRepeatedUseOfWeak()
1292 FunctionKind = Lambda; in diagnoseRepeatedUseOfWeak()
1294 FunctionKind = Method; in diagnoseRepeatedUseOfWeak()
1296 FunctionKind = Function; in diagnoseRepeatedUseOfWeak()
1345 << int(ObjectKind) << KeyProp << int(FunctionKind) in diagnoseRepeatedUseOfWeak()
DSemaStmt.cpp3248 int FunctionKind = 0; in BuildReturnStmt() local
3250 FunctionKind = 1; in BuildReturnStmt()
3252 FunctionKind = 2; in BuildReturnStmt()
3254 FunctionKind = 3; in BuildReturnStmt()
3257 << CurDecl->getDeclName() << FunctionKind in BuildReturnStmt()
3294 int FunctionKind = 0; in BuildReturnStmt() local
3296 FunctionKind = 1; in BuildReturnStmt()
3298 FunctionKind = 2; in BuildReturnStmt()
3300 FunctionKind = 3; in BuildReturnStmt()
3303 << CurDecl->getDeclName() << FunctionKind in BuildReturnStmt()
/external/v8/src/heap/
Dsetup-heap-internal.cc56 FunctionKind kind = FunctionKind::kNormalFunction) { in CreateSharedFunctionInfo()
1091 FunctionKind::kConciseMethod); in CreateInitialObjects()
1099 1, FunctionKind::kConciseMethod); in CreateInitialObjects()
Dfactory-base.h215 FunctionKind kind = kNormalFunction); in EXPORT_TEMPLATE_DECLARE()

12