Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index 1818909afc51a74f85a306b39671fc6c4557c0f0..43b4f213a5cdda96142e5bab6d4512eeecaec676 100644 |
--- a/src/scopes.cc |
+++ b/src/scopes.cc |
@@ -366,7 +366,7 @@ Scope* Scope::FinalizeBlockScope() { |
} |
-Variable* Scope::LocalLookup(Handle<String> name) { |
+Variable* Scope::LookupLocal(Handle<String> name) { |
Variable* result = variables_.Lookup(name); |
if (result != NULL || scope_info_.is_null()) { |
return result; |
@@ -425,7 +425,7 @@ Variable* Scope::Lookup(Handle<String> name) { |
for (Scope* scope = this; |
scope != NULL; |
scope = scope->outer_scope()) { |
- Variable* var = scope->LocalLookup(name); |
+ Variable* var = scope->LookupLocal(name); |
if (var != NULL) return var; |
} |
return NULL; |
@@ -950,7 +950,7 @@ Variable* Scope::LookupRecursive(Handle<String> name, |
} |
// Try to find the variable in this scope. |
- Variable* var = LocalLookup(name); |
+ Variable* var = LookupLocal(name); |
// We found a variable and we are done. (Even if there is an 'eval' in |
// this scope which introduces the same variable again, the resulting |
@@ -1211,7 +1211,7 @@ void Scope::AllocateHeapSlot(Variable* var) { |
void Scope::AllocateParameterLocals() { |
ASSERT(is_function_scope()); |
- Variable* arguments = LocalLookup(isolate_->factory()->arguments_string()); |
+ Variable* arguments = LookupLocal(isolate_->factory()->arguments_string()); |
ASSERT(arguments != NULL); // functions have 'arguments' declared implicitly |
bool uses_sloppy_arguments = false; |