Home
last modified time | relevance | path

Searched refs:is_function_scope (Results 1 – 12 of 12) sorted by relevance

/external/v8/src/ast/
Dscopes.h349 bool is_function_scope() const { return scope_type_ == FUNCTION_SCOPE; } in NON_EXPORTED_BASE()
654 return is_function_scope() && IsArrowFunction(function_kind_); in is_arrow_scope()
752 return (is_function_scope() && !is_arrow_scope()) || is_module_scope(); in has_this_declaration()
763 DCHECK(is_function_scope() || is_module_scope()); in generator_object_var()
768 DCHECK(is_function_scope()); in promise_var()
777 DCHECK(is_function_scope() || is_module_scope()); in parameter()
803 DCHECK(is_function_scope()); in SetHasNonSimpleParameters()
809 DCHECK(is_function_scope()); in GetArgumentsType()
829 (is_function_scope() && (IsClassConstructor(function_kind()) || in this_function_var()
913 DCHECK(is_function_scope()); in set_has_inferred_function_name()
Dscopes.cc366 return !scope->is_function_scope() || scope->has_simple_parameters(); in HasSimpleParameters()
382 return is_function_scope() && AsDeclarationScope()->asm_module(); in IsAsmModule()
391 if (!scope->is_function_scope() || in ContainsAsmModule()
514 DCHECK(is_function_scope() || is_eval_scope() || is_script_scope() || in HoistSloppyBlockFunctions()
515 (is_block_scope() && outer_scope()->is_function_scope())); in HoistSloppyBlockFunctions()
724 DCHECK(is_function_scope()); in DeclareArguments()
743 DCHECK(is_function_scope()); in DeclareDefaultFunctionVariables()
759 DCHECK(is_function_scope()); in DeclareFunctionVar()
776 DCHECK(is_function_scope() || is_module_scope()); in DeclareGeneratorObjectVar()
786 DCHECK(is_function_scope()); in DeclarePromiseVar()
[all …]
/external/v8/src/interpreter/
Dbytecode-flags.cc34 uint8_t CreateClosureFlags::Encode(bool pretenure, bool is_function_scope) { in Encode() argument
37 pretenure == NOT_TENURED && is_function_scope) { in Encode()
Dbytecode-flags.h46 static uint8_t Encode(bool pretenure, bool is_function_scope);
Dbytecode-generator.cc1803 expr->pretenure(), closure_scope()->is_function_scope()); in VisitFunctionLiteral()
4733 DCHECK(scope->is_function_scope() || scope->is_eval_scope()); in BuildNewLocalActivationContext()
/external/v8/src/parsing/
Dpreparser.cc385 DCHECK_EQ(this->scope()->is_function_scope(), formals->is_simple); in ParseStatementListAndLogFunction()
394 DCHECK(scope()->is_function_scope()); in BuildParameterInitializationBlock()
Dexpression-scope-reparenter.cc117 DCHECK(scope->outer_scope()->is_function_scope()); in ReparentExpressionScope()
Dpattern-rewriter.cc350 DCHECK(scope()->outer_scope()->is_function_scope()); in DeclaresParameterContainingSloppyEval()
Dparser.cc2864 DCHECK(scope()->is_function_scope()); in BuildParameterInitializationBlock()
3340 DCHECK(function_scope->is_function_scope()); in InsertShadowingVarBindingInitializers()
Dparser-base.h3698 if (!GetReceiverScope()->is_function_scope()) { in ParseNewTargetExpression()
6042 (!scope->is_function_scope() || in MarkLoopVariableAsAssigned()
/external/v8/src/objects/
Dscope-info.cc110 const bool has_inferred_function_name = scope->is_function_scope(); in Create()
114 if (scope->is_function_scope()) { in Create()
158 if (scope->is_function_scope()) { in Create()
/external/v8/src/debug/
Ddebug-scopes.cc529 if (!inner_scope->is_function_scope()) { in RetrieveScopeChain()