Lines Matching refs:Scope

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