Home
last modified time | relevance | path

Searched refs:scope_type (Results 1 – 25 of 48) sorted by relevance

12

/external/v8/src/debug/
Ddebug-scopes.cc80 if (scope_info->scope_type() == FUNCTION_SCOPE) { in ScopeIterator()
91 if (scope_info->scope_type() != FUNCTION_SCOPE) { in ScopeIterator()
95 if (scope_info->scope_type() == EVAL_SCOPE) { in ScopeIterator()
103 } else if (scope_info->scope_type() == MODULE_SCOPE) { in ScopeIterator()
106 DCHECK(scope_info->scope_type() == SCRIPT_SCOPE); in ScopeIterator()
214 ScopeType scope_type = Type(); in Next() local
215 if (scope_type == ScopeTypeGlobal) { in Next()
219 } else if (scope_type == ScopeTypeScript) { in Next()
225 DCHECK_EQ(nested_scope_chain_.last().scope_info->scope_type(), in Next()
253 switch (scope_info->scope_type()) { in Type()
[all …]
Ddebug-evaluate.cc151 ScopeIterator::ScopeType scope_type = it.Type(); in ContextBuilder() local
152 if (scope_type == ScopeIterator::ScopeTypeLocal) { in ContextBuilder()
153 DCHECK_EQ(FUNCTION_SCOPE, it.CurrentScopeInfo()->scope_type()); in ContextBuilder()
174 } else if (scope_type == ScopeIterator::ScopeTypeCatch || in ContextBuilder()
175 scope_type == ScopeIterator::ScopeTypeWith) { in ContextBuilder()
182 } else if (scope_type == ScopeIterator::ScopeTypeBlock || in ContextBuilder()
183 scope_type == ScopeIterator::ScopeTypeEval) { in ContextBuilder()
/external/v8/src/ast/
Dscopes.cc140 Scope::Scope(Zone* zone, Scope* outer_scope, ScopeType scope_type) in Scope() argument
144 scope_type_(scope_type) { in Scope()
145 DCHECK_NE(SCRIPT_SCOPE, scope_type); in Scope()
175 ScopeType scope_type, in DeclarationScope() argument
177 : Scope(zone, outer_scope, scope_type), in DeclarationScope()
181 DCHECK_NE(scope_type, SCRIPT_SCOPE); in DeclarationScope()
242 Scope::Scope(Zone* zone, ScopeType scope_type, Handle<ScopeInfo> scope_info) in Scope() argument
247 scope_type_(scope_type) { in Scope()
259 DeclarationScope::DeclarationScope(Zone* zone, ScopeType scope_type, in DeclarationScope() argument
261 : Scope(zone, scope_type, scope_info), in DeclarationScope()
[all …]
Dscopes.h94 Scope(Zone* zone, Scope* outer_scope, ScopeType scope_type); in NON_EXPORTED_BASE()
346 ScopeType scope_type() const { return scope_type_; } in NON_EXPORTED_BASE()
616 DeclarationScope(Zone* zone, Scope* outer_scope, ScopeType scope_type,
618 DeclarationScope(Zone* zone, ScopeType scope_type,
/external/v8/src/parsing/
Dpreparsed-scope-data.cc32 ScopeType scope_type, in ScopeScope() argument
36 data->backing_store_.push_back(scope_type); in ScopeScope()
Dpreparsed-scope-data.h26 ScopeScope(PreParsedScopeData* data, ScopeType scope_type,
Dpreparser.cc91 DCHECK_EQ(FUNCTION_SCOPE, function_scope->scope_type()); in PreParseFunction()
Dparser-base.h666 Scope* NewScope(ScopeType scope_type) const { in NewScope() argument
667 return NewScopeWithParent(scope(), scope_type); in NewScope()
673 Scope* NewScopeWithParent(Scope* parent, ScopeType scope_type) const { in NewScopeWithParent() argument
676 DCHECK_NE(FUNCTION_SCOPE, scope_type); in NewScopeWithParent()
677 DCHECK_NE(SCRIPT_SCOPE, scope_type); in NewScopeWithParent()
678 DCHECK_NE(MODULE_SCOPE, scope_type); in NewScopeWithParent()
680 return new (zone()) Scope(zone(), parent, scope_type); in NewScopeWithParent()
5113 switch (GetDeclarationScope()->scope_type()) { in ParseReturnStatement()
/external/v8/src/objects/
Dscope-info.cc162 ScopeTypeField::encode(scope->scope_type()) | in Create()
403 ScopeType ScopeInfo::scope_type() { in scope_type() function in v8::internal::ScopeInfo
437 scope_type() == WITH_SCOPE || in ContextLength()
438 (scope_type() == BLOCK_SCOPE && CallsSloppyEval() && in ContextLength()
440 (scope_type() == FUNCTION_SCOPE && CallsSloppyEval()) || in ContextLength()
441 (scope_type() == FUNCTION_SCOPE && IsAsmModule()) || in ContextLength()
442 scope_type() == MODULE_SCOPE; in ContextLength()
497 DCHECK_EQ(scope_type(), WITH_SCOPE); in SetIsDebugEvaluateScope()
525 DCHECK(scope_type() == MODULE_SCOPE); in ModuleDescriptorInfo()
617 DCHECK_EQ(scope_type(), MODULE_SCOPE); in ModuleIndex()
Dscope-info.h38 ScopeType scope_type();
/external/selinux/libsepol/tests/
Dtest-common.h37 extern void test_sym_presence(policydb_t * p, const char *id, int sym_type, unsigned int scope_type
Dtest-common.c29 void test_sym_presence(policydb_t * p, const char *id, int sym_type, unsigned int scope_type, unsig… in test_sym_presence() argument
42 CU_ASSERT(scope->scope == scope_type); in test_sym_presence()
/external/v8/src/compiler/
Djs-operator.cc247 int slot_count, ScopeType scope_type) in CreateFunctionContextParameters() argument
248 : slot_count_(slot_count), scope_type_(scope_type) {} in CreateFunctionContextParameters()
253 lhs.scope_type() == rhs.scope_type(); in operator ==()
263 static_cast<int>(parameters.scope_type())); in hash_value()
268 return os << parameters.slot_count() << ", " << parameters.scope_type(); in operator <<()
1038 ScopeType scope_type) { in CreateFunctionContext() argument
1039 CreateFunctionContextParameters parameters(slot_count, scope_type); in CreateFunctionContext()
Djs-operator.h310 CreateFunctionContextParameters(int slot_count, ScopeType scope_type);
313 ScopeType scope_type() const { return scope_type_; } in scope_type() function
704 const Operator* CreateFunctionContext(int slot_count, ScopeType scope_type); in NON_EXPORTED_BASE()
Djs-generic-lowering.cc402 ScopeType scope_type = parameters.scope_type(); in LowerJSCreateFunctionContext() local
408 CodeFactory::FastNewFunctionContext(isolate(), scope_type); in LowerJSCreateFunctionContext()
412 node->InsertInput(zone(), 1, jsgraph()->SmiConstant(scope_type)); in LowerJSCreateFunctionContext()
Djs-create-lowering.cc844 ScopeType scope_type = parameters.scope_type(); in ReduceJSCreateFunctionContext() local
858 switch (scope_type) { in ReduceJSCreateFunctionContext()
/external/v8/src/builtins/
Dbuiltins-constructor.h22 ScopeType scope_type);
Dbuiltins-constructor.cc326 Node* function, Node* slots, Node* context, ScopeType scope_type) { in EmitFastNewFunctionContext() argument
339 switch (scope_type) { in EmitFastNewFunctionContext()
401 Handle<Code> Builtins::NewFunctionContext(ScopeType scope_type) { in NewFunctionContext() argument
402 switch (scope_type) { in NewFunctionContext()
Dbuiltins.h915 Handle<Code> NewFunctionContext(ScopeType scope_type);
/external/v8/src/
Dcode-factory.cc358 ScopeType scope_type) { in FastNewFunctionContext() argument
359 return Callable(isolate->builtins()->NewFunctionContext(scope_type), in FastNewFunctionContext()
Dcode-factory.h150 ScopeType scope_type);
Dfactory.cc926 DCHECK_EQ(scope_info->scope_type(), SCRIPT_SCOPE); in NewScriptContext()
952 DCHECK_EQ(scope_info->scope_type(), MODULE_SCOPE); in NewModuleContext()
967 ScopeType scope_type) { in NewFunctionContext() argument
968 DCHECK(function->shared()->scope_info()->scope_type() == scope_type); in NewFunctionContext()
972 switch (scope_type) { in NewFunctionContext()
1051 DCHECK_EQ(scope_info->scope_type(), BLOCK_SCOPE); in NewBlockContext()
Dfactory.h305 ScopeType scope_type);
Dobjects-debug.cc644 CHECK_EQ(kind() == kModule, scope_info()->scope_type() == MODULE_SCOPE); in SharedFunctionInfoVerify()
/external/v8/src/runtime/
Druntime-scopes.cc744 CONVERT_SMI_ARG_CHECKED(scope_type, 1); in RUNTIME_FUNCTION()
749 length, function, static_cast<ScopeType>(scope_type)); in RUNTIME_FUNCTION()

12