Lines Matching refs:Scope

66     Scope* scope,
103 // Implementation of Scope
105 Scope::Scope(Scope* outer_scope, ScopeType scope_type, Zone* zone)
126 Scope::Scope(Scope* inner_scope,
152 Scope::Scope(Scope* inner_scope, Handle<String> catch_variable_name, Zone* zone)
178 void Scope::SetDefaults(ScopeType scope_type,
179 Scope* outer_scope,
215 Scope* Scope::DeserializeScopeChain(Context* context, Scope* global_scope,
218 Scope* current_scope = NULL;
219 Scope* innermost_scope = NULL;
223 Scope* with_scope = new(zone) Scope(current_scope,
230 for (Scope* s = innermost_scope; s != NULL; s = s->outer_scope()) {
235 current_scope = new(zone) Scope(current_scope,
241 current_scope = new(zone) Scope(current_scope,
247 current_scope = new(zone) Scope(current_scope,
253 current_scope = new(zone) Scope(current_scope,
260 current_scope = new(zone) Scope(
279 bool Scope::Analyze(CompilationInfo* info) {
281 Scope* scope = info->function()->scope();
282 Scope* top = scope;
316 void Scope::Initialize() {
364 Scope* Scope::FinalizeBlockScope() {
394 Variable* Scope::LocalLookup(Handle<String> name) {
425 Variable* Scope::LookupFunctionVar(Handle<String> name,
449 Variable* Scope::Lookup(Handle<String> name) {
450 for (Scope* scope = this;
460 void Scope::DeclareParameter(Handle<String> name, VariableMode mode) {
469 Variable* Scope::DeclareLocal(Handle<String> name,
484 Variable* Scope::DeclareDynamicGlobal(Handle<String> name) {
495 void Scope::RemoveUnresolved(VariableProxy* var) {
507 Variable* Scope::NewInternal(Handle<String> name) {
520 Variable* Scope::NewTemporary(Handle<String> name) {
533 void Scope::AddDeclaration(Declaration* declaration) {
538 void Scope::SetIllegalRedeclaration(Expression* expression) {
547 void Scope::VisitIllegalRedeclaration(AstVisitor* visitor) {
553 Declaration* Scope::CheckConflictingVarDeclarations() {
561 Scope* previous = NULL;
562 Scope* current = decl->scope();
592 void Scope::CollectStackAndContextLocals(ZoneList<Variable*>* stack_locals,
644 bool Scope::AllocateVariables(CompilationInfo* info,
671 bool Scope::HasTrivialContext() const {
676 for (const Scope* scope = this; scope != NULL; scope = scope->outer_scope_) {
685 bool Scope::HasTrivialOuterContext() const {
686 Scope* outer = outer_scope_;
695 bool Scope::HasLazyCompilableOuterContext() const {
696 Scope* outer = outer_scope_;
703 for (const Scope* scope = outer; scope != NULL; scope = scope->outer_scope_) {
713 bool Scope::AllowsLazyCompilation() const {
718 bool Scope::AllowsLazyCompilationWithoutContext() const {
723 int Scope::ContextChainLength(Scope* scope) {
725 for (Scope* s = this; s != scope; s = s->outer_scope_) {
736 Scope* Scope::GlobalScope() {
737 Scope* scope = this;
745 Scope* Scope::DeclarationScope() {
746 Scope* scope = this;
754 Handle<ScopeInfo> Scope::GetScopeInfo() {
762 void Scope::GetNestedScopeChain(
768 Scope* scope = inner_scopes_[i];
851 void Scope::Print(int n) {
881 // Scope info.
952 Variable* Scope::NonLocal(Handle<String> name, VariableMode mode) {
973 Variable* Scope::LookupRecursive(Handle<String> name,
1036 bool Scope::ResolveVariable(CompilationInfo* info,
1141 bool Scope::ResolveVariablesRecursively(
1161 bool Scope::PropagateScopeInfo(bool outer_scope_calls_non_strict_eval ) {
1169 Scope* inner_scope = inner_scopes_[i];
1182 bool Scope::MustAllocate(Variable* var) {
1202 bool Scope::MustAllocateInContext(Variable* var) {
1224 bool Scope::HasArgumentsParameter() {
1235 void Scope::AllocateStackSlot(Variable* var) {
1240 void Scope::AllocateHeapSlot(Variable* var) {
1245 void Scope::AllocateParameterLocals() {
1301 void Scope::AllocateNonParameterLocal(Variable* var) {
1315 void Scope::AllocateNonParameterLocals() {
1348 void Scope::AllocateVariablesRecursively() {
1384 void Scope::AllocateModulesRecursively(Scope* host_scope) {
1396 Scope* inner_scope = inner_scopes_.at(i);
1402 int Scope::StackLocalCount() const {
1408 int Scope::ContextLocalCount() const {