• Home
  • Raw
  • Download

Lines Matching refs:Scope

33 Variable* VariableMap::Declare(Scope* scope, const AstRawString* name,  in Declare()
70 Scope::Scope(Scope* outer_scope, ScopeType scope_type, in Scope() function in v8::internal::Scope
93 Scope::Scope(Scope* inner_scope, in Scope() function in v8::internal::Scope
121 Scope::Scope(Scope* inner_scope, const AstRawString* catch_variable_name, in Scope() function in v8::internal::Scope
149 void Scope::SetDefaults(ScopeType scope_type, in SetDefaults()
150 Scope* outer_scope, in SetDefaults()
187 Scope* Scope::DeserializeScopeChain(Context* context, Scope* global_scope, in DeserializeScopeChain()
190 Scope* current_scope = NULL; in DeserializeScopeChain()
191 Scope* innermost_scope = NULL; in DeserializeScopeChain()
195 Scope* with_scope = new(zone) Scope(current_scope, in DeserializeScopeChain()
203 for (Scope* s = innermost_scope; s != NULL; s = s->outer_scope()) { in DeserializeScopeChain()
208 current_scope = new(zone) Scope(current_scope, in DeserializeScopeChain()
215 current_scope = new(zone) Scope(current_scope, in DeserializeScopeChain()
222 current_scope = new(zone) Scope(current_scope, in DeserializeScopeChain()
231 current_scope = new(zone) Scope(current_scope, in DeserializeScopeChain()
239 current_scope = new (zone) Scope( in DeserializeScopeChain()
260 bool Scope::Analyze(CompilationInfo* info) { in Analyze()
262 Scope* scope = info->function()->scope(); in Analyze()
263 Scope* top = scope; in Analyze()
297 void Scope::Initialize() { in Initialize()
345 Scope* Scope::FinalizeBlockScope() { in FinalizeBlockScope()
375 Variable* Scope::LookupLocal(const AstRawString* name) { in LookupLocal()
416 Variable* Scope::LookupFunctionVar(const AstRawString* name, in LookupFunctionVar()
440 Variable* Scope::Lookup(const AstRawString* name) { in Lookup()
441 for (Scope* scope = this; in Lookup()
451 Variable* Scope::DeclareParameter(const AstRawString* name, VariableMode mode) { in DeclareParameter()
461 Variable* Scope::DeclareLocal(const AstRawString* name, VariableMode mode, in DeclareLocal()
476 Variable* Scope::DeclareDynamicGlobal(const AstRawString* name) { in DeclareDynamicGlobal()
487 void Scope::RemoveUnresolved(VariableProxy* var) { in RemoveUnresolved()
499 Variable* Scope::NewInternal(const AstRawString* name) { in NewInternal()
512 Variable* Scope::NewTemporary(const AstRawString* name) { in NewTemporary()
525 void Scope::AddDeclaration(Declaration* declaration) { in AddDeclaration()
530 void Scope::SetIllegalRedeclaration(Expression* expression) { in SetIllegalRedeclaration()
539 void Scope::VisitIllegalRedeclaration(AstVisitor* visitor) { in VisitIllegalRedeclaration()
545 Declaration* Scope::CheckConflictingVarDeclarations() { in CheckConflictingVarDeclarations()
553 Scope* previous = NULL; in CheckConflictingVarDeclarations()
554 Scope* current = decl->scope(); in CheckConflictingVarDeclarations()
584 void Scope::CollectStackAndContextLocals(ZoneList<Variable*>* stack_locals, in CollectStackAndContextLocals()
636 bool Scope::AllocateVariables(CompilationInfo* info, in AllocateVariables()
663 bool Scope::HasTrivialContext() const { in HasTrivialContext()
668 for (const Scope* scope = this; scope != NULL; scope = scope->outer_scope_) { in HasTrivialContext()
677 bool Scope::HasTrivialOuterContext() const { in HasTrivialOuterContext()
678 Scope* outer = outer_scope_; in HasTrivialOuterContext()
687 bool Scope::HasLazyCompilableOuterContext() const { in HasLazyCompilableOuterContext()
688 Scope* outer = outer_scope_; in HasLazyCompilableOuterContext()
695 for (const Scope* scope = outer; scope != NULL; scope = scope->outer_scope_) { in HasLazyCompilableOuterContext()
705 bool Scope::AllowsLazyCompilation() const { in AllowsLazyCompilation()
710 bool Scope::AllowsLazyCompilationWithoutContext() const { in AllowsLazyCompilationWithoutContext()
715 int Scope::ContextChainLength(Scope* scope) { in ContextChainLength()
717 for (Scope* s = this; s != scope; s = s->outer_scope_) { in ContextChainLength()
728 Scope* Scope::GlobalScope() { in GlobalScope()
729 Scope* scope = this; in GlobalScope()
737 Scope* Scope::DeclarationScope() { in DeclarationScope()
738 Scope* scope = this; in DeclarationScope()
746 Handle<ScopeInfo> Scope::GetScopeInfo() { in GetScopeInfo()
754 void Scope::GetNestedScopeChain( in GetNestedScopeChain()
760 Scope* scope = inner_scopes_[i]; in GetNestedScopeChain()
848 void Scope::Print(int n) { in Print()
942 Variable* Scope::NonLocal(const AstRawString* name, VariableMode mode) { in NonLocal()
963 Variable* Scope::LookupRecursive(VariableProxy* proxy, in LookupRecursive()
1027 bool Scope::ResolveVariable(CompilationInfo* info, in ResolveVariable()
1136 bool Scope::ResolveVariablesRecursively( in ResolveVariablesRecursively()
1156 void Scope::PropagateScopeInfo(bool outer_scope_calls_sloppy_eval ) { in PropagateScopeInfo()
1164 Scope* inner = inner_scopes_[i]; in PropagateScopeInfo()
1179 bool Scope::MustAllocate(Variable* var) { in MustAllocate()
1200 bool Scope::MustAllocateInContext(Variable* var) { in MustAllocateInContext()
1222 bool Scope::HasArgumentsParameter() { in HasArgumentsParameter()
1233 void Scope::AllocateStackSlot(Variable* var) { in AllocateStackSlot()
1238 void Scope::AllocateHeapSlot(Variable* var) { in AllocateHeapSlot()
1243 void Scope::AllocateParameterLocals() { in AllocateParameterLocals()
1299 void Scope::AllocateNonParameterLocal(Variable* var) { in AllocateNonParameterLocal()
1313 void Scope::AllocateNonParameterLocals() { in AllocateNonParameterLocals()
1346 void Scope::AllocateVariablesRecursively() { in AllocateVariablesRecursively()
1382 void Scope::AllocateModulesRecursively(Scope* host_scope) { in AllocateModulesRecursively()
1393 Scope* inner_scope = inner_scopes_.at(i); in AllocateModulesRecursively()
1399 int Scope::StackLocalCount() const { in StackLocalCount()
1405 int Scope::ContextLocalCount() const { in ContextLocalCount()