Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(921)

Unified Diff: src/scopes.cc

Issue 1250423002: Find right scope associated with prologue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scopes.h ('k') | test/mjsunit/harmony/regress/regress-513474.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index 4aca42042233652d3ad0b597804793652e8b106d..d2618c871b268878c09b9fa5338ebc1653fd534d 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -529,7 +529,7 @@ void Scope::RemoveUnresolved(VariableProxy* var) {
Variable* Scope::NewTemporary(const AstRawString* name) {
DCHECK(!already_resolved());
- Scope* scope = this->TemporaryScope();
+ Scope* scope = this->ClosureScope();
Variable* var = new(zone()) Variable(scope,
name,
TEMPORARY,
@@ -761,7 +761,7 @@ Scope* Scope::DeclarationScope() {
}
-Scope* Scope::TemporaryScope() {
+Scope* Scope::ClosureScope() {
Scope* scope = this;
while (!scope->is_declaration_scope() || scope->is_block_scope()) {
scope = scope->outer_scope();
« no previous file with comments | « src/scopes.h ('k') | test/mjsunit/harmony/regress/regress-513474.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698