Home
last modified time | relevance | path

Searched refs:function_scope (Results 1 – 14 of 14) sorted by relevance

/third_party/node/deps/v8/src/parsing/
Dpreparser.cc108 FunctionSyntaxKind function_syntax_kind, DeclarationScope* function_scope, in PreParseFunction() argument
110 DCHECK_EQ(FUNCTION_SCOPE, function_scope->scope_type()); in PreParseFunction()
113 function_scope->set_is_being_lazily_parsed(true); in PreParseFunction()
116 PreParserFormalParameters formals(function_scope); in PreParseFunction()
128 FunctionState function_state(&function_state_, &scope_, function_scope); in PreParseFunction()
135 formals.is_simple = function_scope->has_simple_parameters(); in PreParseFunction()
137 preparse_data_builder_scope.Start(function_scope); in PreParseFunction()
154 function_scope->start_position(), in PreParseFunction()
159 DeclarationScope* inner_scope = function_scope; in PreParseFunction()
176 if (is_sloppy(function_scope->language_mode())) { in PreParseFunction()
[all …]
Dpreparse-data.cc107 DeclarationScope* function_scope) { in Start() argument
113 function_scope->set_preparse_data_builder(builder_); in Start()
232 DeclarationScope* function_scope, int function_length, in SetSkippableFunction() argument
235 builder_->function_scope_ = function_scope; in SetSkippableFunction()
288 DeclarationScope* function_scope = builder->function_scope_; in SaveDataForSkippableFunction() local
292 byte_data_.WriteVarint32(function_scope->start_position()); in SaveDataForSkippableFunction()
293 byte_data_.WriteVarint32(function_scope->end_position()); in SaveDataForSkippableFunction()
297 function_scope->num_parameters() == builder->function_length_; in SaveDataForSkippableFunction()
301 NumberOfParametersField::encode(function_scope->num_parameters()); in SaveDataForSkippableFunction()
309 LanguageField::encode(function_scope->language_mode()) | in SaveDataForSkippableFunction()
[all …]
Dparser.cc47 DeclarationScope* function_scope = NewFunctionScope(kind); in DefaultConstructor() local
48 SetLanguageMode(function_scope, LanguageMode::kStrict); in DefaultConstructor()
50 function_scope->set_start_position(pos); in DefaultConstructor()
51 function_scope->set_end_position(pos); in DefaultConstructor()
55 FunctionState function_state(&function_state_, &scope_, function_scope); in DefaultConstructor()
62 Variable* constructor_args = function_scope->DeclareParameter( in DefaultConstructor()
84 name, function_scope, body, expected_property_count, parameter_count, in DefaultConstructor()
929 DeclarationScope* function_scope = result->scope(); in ParseFunction() local
933 function_scope->start_position(), in ParseFunction()
934 function_scope->end_position(), function_name.get(), in ParseFunction()
[all …]
Dpreparser.h967 FunctionSyntaxKind function_syntax_kind, DeclarationScope* function_scope,
1009 DeclarationScope* function_scope,
1141 DeclarationScope* function_scope) {
1143 function_scope->LookupLocal(function_name) == nullptr) {
1144 DCHECK_EQ(function_scope, scope());
1145 function_scope->DeclareFunctionVar(function_name);
1152 DeclarationScope* function_scope) {
1154 function_scope);
1253 DeclarationScope* function_scope = NewFunctionScope(kind);
1254 SetLanguageMode(function_scope, LanguageMode::kStrict);
[all …]
Dpreparse-data.h119 void Start(DeclarationScope* function_scope);
120 void SetSkippableFunction(DeclarationScope* function_scope,
Dparser-base.h4312 DeclarationScope* function_scope = parameters.scope; in ParseFunctionBody() local
4313 DeclarationScope* inner_scope = function_scope; in ParseFunctionBody()
4382 DCHECK_EQ(inner_scope, function_scope); in ParseFunctionBody()
4383 if (is_sloppy(function_scope->language_mode())) { in ParseFunctionBody()
4384 impl()->InsertSloppyBlockFunctionVarBindings(function_scope); in ParseFunctionBody()
4387 is_sloppy(function_scope->language_mode()) && !IsConciseMethod(kind); in ParseFunctionBody()
4390 DCHECK_EQ(function_scope, scope()); in ParseFunctionBody()
4391 DCHECK_EQ(function_scope, inner_scope->outer_scope()); in ParseFunctionBody()
4392 impl()->SetLanguageMode(function_scope, inner_scope->language_mode()); in ParseFunctionBody()
4407 function_scope, VariableMode::kLastLexicalVariableMode); in ParseFunctionBody()
[all …]
Dparser.h325 DeclarationScope* function_scope);
448 DeclarationScope* function_scope, int* num_parameters,
460 DeclarationScope* function_scope, int* num_parameters,
/third_party/ltp/tools/sparse/sparse-src/
Dscope.c40 *function_scope = &builtin_scope, // labels, arguments etc variable
84 function_scope = scope; in start_file_scope()
97 function_scope = label_scope; in start_function_scope()
143 function_scope = label_scope; in end_function_scope()
178 if (inner == function_scope) in is_in_scope()
Dscope.h38 *function_scope,
Dexpression.c130 bind_symbol_with_scope(decl, ident, NS_SYMBOL, function_scope); in handle_func()
Dsymbol.c786 scope = function_scope; in bind_symbol()
/third_party/node/deps/v8/src/objects/
Dscope-info.cc204 DeclarationScope* function_scope = scope->AsDeclarationScope(); in Create() local
205 has_simple_parameters = function_scope->has_simple_parameters(); in Create()
207 is_asm_module = function_scope->is_asm_module(); in Create()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DAttributor.h241 static const IRPosition function_scope(const IRPosition &IRP) { in function_scope() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DAttributor.cpp1632 A.getAAFor<AANoFree>(*this, IRPosition::function_scope(IRP)); in updateImpl()
2398 *this, IRPosition::function_scope(getIRPosition())); in updateImpl()
4971 const IRPosition &FnPos = IRPosition::function_scope(IRP); in updateImpl()