Home
last modified time | relevance | path

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

123

/third_party/node/deps/v8/src/objects/
Dfunction-kind.h14 enum class FunctionKind : uint8_t { enum
69 STATIC_ASSERT(static_cast<int>(FunctionKind::kLastFunctionKind) <
72 inline bool IsArrowFunction(FunctionKind kind) { in IsArrowFunction()
73 return base::IsInRange(kind, FunctionKind::kArrowFunction, in IsArrowFunction()
74 FunctionKind::kAsyncArrowFunction); in IsArrowFunction()
77 inline bool IsModule(FunctionKind kind) { in IsModule()
78 return base::IsInRange(kind, FunctionKind::kModule, in IsModule()
79 FunctionKind::kAsyncModule); in IsModule()
82 inline bool IsAsyncModule(FunctionKind kind) { in IsAsyncModule()
83 return kind == FunctionKind::kAsyncModule; in IsAsyncModule()
[all …]
Dtemplates.cc41 FunctionKind function_kind; in GetOrCreateSharedFunctionInfo()
43 function_kind = FunctionKind::kConciseMethod; in GetOrCreateSharedFunctionInfo()
45 function_kind = FunctionKind::kNormalFunction; in GetOrCreateSharedFunctionInfo()
Dshared-function-info.tq17 type FunctionKind extends uint8 constexpr 'FunctionKind';
23 // Have FunctionKind first to make it cheaper to access.
24 function_kind: FunctionKind: 5 bit;
Dshared-function-info.h498 inline FunctionKind kind() const;
677 STATIC_ASSERT(FunctionKind::kLastFunctionKind <= FunctionKindBits::kMax);
711 inline void set_kind(FunctionKind kind);
Dscope-info.h222 FunctionKind function_kind() const;
297 STATIC_ASSERT(FunctionKind::kLastFunctionKind <= FunctionKindBits::kMax);
Dscope-info.cc210 FunctionKind function_kind = FunctionKind::kNormalFunction; in Create()
442 FunctionKindBits::encode(FunctionKind::kNormalFunction) | in CreateForWithScope()
520 FunctionKindBits::encode(FunctionKind::kNormalFunction) | in CreateForBootstrapping()
1029 FunctionKind ScopeInfo::function_kind() const { in function_kind()
/third_party/rust/crates/bindgen/bindgen/ir/
Dfunction.rs23 pub enum FunctionKind { enum
30 impl FunctionKind { implementation
33 pub fn from_cursor(cursor: &clang::Cursor) -> Option<FunctionKind> { in from_cursor() argument
36 clang_sys::CXCursor_FunctionDecl => FunctionKind::Function, in from_cursor()
38 FunctionKind::Method(MethodKind::Constructor) in from_cursor()
41 FunctionKind::Method(if cursor.method_is_virtual() { in from_cursor()
51 FunctionKind::Method(MethodKind::Virtual { in from_cursor()
55 FunctionKind::Method(MethodKind::Static) in from_cursor()
57 FunctionKind::Method(MethodKind::Normal) in from_cursor()
93 kind: FunctionKind,
[all …]
Ditem.rs13 use super::function::{Function, FunctionKind};
1020 FunctionKind::Function => cc.functions(), in is_enabled_for_codegen()
1021 FunctionKind::Method(MethodKind::Constructor) => { in is_enabled_for_codegen()
1024 FunctionKind::Method(MethodKind::Destructor) | in is_enabled_for_codegen()
1025 FunctionKind::Method(MethodKind::VirtualDestructor { in is_enabled_for_codegen()
1028 FunctionKind::Method(MethodKind::Static) | in is_enabled_for_codegen()
1029 FunctionKind::Method(MethodKind::Normal) | in is_enabled_for_codegen()
1030 FunctionKind::Method(MethodKind::Virtual { .. }) => { in is_enabled_for_codegen()
1609 if FunctionKind::from_cursor(parent).is_some() { in from_ty_with_id()
/third_party/node/deps/v8/src/web-snapshot/
Dweb-snapshot.cc51 FunctionKind kind) { in FunctionKindToFunctionFlags()
54 case FunctionKind::kNormalFunction: in FunctionKindToFunctionFlags()
55 case FunctionKind::kArrowFunction: in FunctionKindToFunctionFlags()
56 case FunctionKind::kGeneratorFunction: in FunctionKindToFunctionFlags()
57 case FunctionKind::kAsyncFunction: in FunctionKindToFunctionFlags()
58 case FunctionKind::kAsyncArrowFunction: in FunctionKindToFunctionFlags()
59 case FunctionKind::kAsyncGeneratorFunction: in FunctionKindToFunctionFlags()
60 case FunctionKind::kBaseConstructor: in FunctionKindToFunctionFlags()
61 case FunctionKind::kDefaultBaseConstructor: in FunctionKindToFunctionFlags()
62 case FunctionKind::kConciseMethod: in FunctionKindToFunctionFlags()
[all …]
Dweb-snapshot.h66 uint32_t FunctionKindToFunctionFlags(FunctionKind kind);
67 FunctionKind FunctionFlagsToFunctionKind(uint32_t flags);
/third_party/node/deps/v8/src/parsing/
Dparser-base.h451 FunctionKind kind() const { return scope()->function_kind(); } in kind()
816 DeclarationScope* NewFunctionScope(FunctionKind kind,
1142 V8_INLINE IdentifierT ParseIdentifier(FunctionKind function_kind);
1250 void CheckArityRestrictions(int param_count, FunctionKind function_type,
1274 FunctionKind kind,
1412 FunctionKind FunctionKindForImpl(SubFunctionKind sub_function_kind, in FunctionKindForImpl()
1414 static const FunctionKind kFunctionKinds[][2][2] = { in FunctionKindForImpl()
1418 FunctionKind::kNormalFunction, FunctionKind::kAsyncFunction}, in FunctionKindForImpl()
1420 FunctionKind::kGeneratorFunction, in FunctionKindForImpl()
1421 FunctionKind::kAsyncGeneratorFunction}, in FunctionKindForImpl()
[all …]
Dexpression-scope.h750 ArrowHeadParsingScope(ParserT* parser, FunctionKind kind) in ArrowHeadParsingScope()
753 kind == FunctionKind::kArrowFunction in ArrowHeadParsingScope()
757 DCHECK(kind == FunctionKind::kAsyncArrowFunction || in ArrowHeadParsingScope()
758 kind == FunctionKind::kArrowFunction); in ArrowHeadParsingScope()
830 FunctionKind kind() const { in kind()
832 ? FunctionKind::kAsyncArrowFunction in kind()
833 : FunctionKind::kArrowFunction; in kind()
Dparse-info.h108 FunctionKind function_kind() const { return function_kind_; } in function_kind()
109 UnoptimizedCompileFlags& set_function_kind(FunctionKind value) { in set_function_kind()
151 FunctionKind function_kind_;
Dparser.h319 void ParseAndRewriteGeneratorFunctionBody(int pos, FunctionKind kind,
322 int pos, FunctionKind kind, ScopedPtrList<Statement>* body);
398 FunctionNameValidity function_name_validity, FunctionKind kind,
446 bool SkipFunction(const AstRawString* function_name, FunctionKind kind,
459 int pos, FunctionKind kind, FunctionSyntaxKind function_syntax_kind,
522 Expression* BuildInitialYield(int pos, FunctionKind kind);
523 Assignment* BuildCreateJSGeneratorObject(int pos, FunctionKind kind);
Dpreparser.h966 const AstRawString* function_name, FunctionKind kind,
1007 V8_INLINE bool SkipFunction(const AstRawString* name, FunctionKind kind,
1017 FunctionNameValidity function_name_validity, FunctionKind kind,
1132 int pos, FunctionKind kind, PreParserScopedStatementList* body) {
1136 int pos, FunctionKind kind, PreParserScopedStatementList* body) {
1251 FunctionKind kind = has_extends ? FunctionKind::kDefaultDerivedConstructor
1252 : FunctionKind::kDefaultBaseConstructor;
Dpreparser.cc107 const AstRawString* function_name, FunctionKind kind, in PreParseFunction()
266 FunctionNameValidity function_name_validity, FunctionKind kind, in ParseFunctionLiteral()
Dparser.cc45 FunctionKind kind = call_super ? FunctionKind::kDefaultDerivedConstructor in DefaultConstructor()
46 : FunctionKind::kDefaultBaseConstructor; in DefaultConstructor()
610 kNoSourcePosition, FunctionKind::kGeneratorFunction); in DoParseProgram()
766 FunctionKind::kNormalFunction, kNoSourcePosition, in ParseWrapped()
854 FunctionKind::kClassMembersInitializerFunction && in ParseFunction()
968 FunctionKind kind = flags().function_kind(); in DoParseFunction()
1083 FunctionKind::kClassMembersInitializerFunction) { in DoParseDeserializedFunction()
1146 FunctionKind::kClassMembersInitializerFunction); in ParseClassForInstanceMemberInitialization()
2074 int pos, FunctionKind kind, ScopedPtrList<Statement>* body) { in ParseAndRewriteGeneratorFunctionBody()
2083 int pos, FunctionKind kind, ScopedPtrList<Statement>* body) { in ParseAndRewriteAsyncGeneratorFunctionBody()
[all …]
/third_party/node/deps/v8/src/ast/
Dscopes.h859 FunctionKind function_kind = FunctionKind::kNormalFunction);
867 FunctionKind function_kind() const { return function_kind_; }
996 function_kind_ = FunctionKind::kAsyncModule;
1289 FunctionKind function_kind_;
1359 FunctionKind function_kind = receiver_scope->function_kind();
Dprettyprinter.h76 FunctionKind function_kind_;
Dscopes.cc147 ? FunctionKind::kAsyncFunction in DeclarationScope()
148 : FunctionKind::kNormalFunction), in DeclarationScope()
159 FunctionKind function_kind) in DeclarationScope()
170 MODULE_SCOPE, FunctionKind::kModule), in ModuleScope()
1515 FunctionKind function_kind = scope->AsDeclarationScope()->function_kind(); in GetHomeObjectScope()
1786 const char* Header(ScopeType scope_type, FunctionKind function_kind, in Header()
1904 FunctionKind function_kind = is_function_scope() in Print()
1906 : FunctionKind::kNormalFunction; in Print()
/third_party/rust/crates/bindgen/bindgen/codegen/
Dserialize.rs7 use crate::ir::function::{Function, FunctionKind};
67 if self.kind() != FunctionKind::Function { in serialize()
/third_party/node/deps/v8/src/heap/
Dfactory-base.h301 FunctionKind kind = FunctionKind::kNormalFunction); in EXPORT_TEMPLATE_DECLARE()
Dsetup-heap-internal.cc59 FunctionKind kind = FunctionKind::kNormalFunction) { in CreateSharedFunctionInfo()
1005 FunctionKind::kConciseMethod); in CreateInitialObjects()
1013 FunctionKind::kConciseMethod); in CreateInitialObjects()
/third_party/node/deps/v8/src/builtins/
Dbuiltins-struct.cc70 FunctionKind::kNormalFunction); in BUILTIN()
/third_party/node/deps/v8/src/debug/
Ddebug-stack-trace-iterator.cc86 FunctionKind::kArrowFunction) { in GetReceiver()

123