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

Unified Diff: src/scopes.h

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/full-codegen/x87/full-codegen-x87.cc ('k') | src/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopes.h
diff --git a/src/scopes.h b/src/scopes.h
index 73277252e3ed1bb451f8507603256358ab03ac29..764978bd6c03649fb657e0c5e516bbe8e0983ae6 100644
--- a/src/scopes.h
+++ b/src/scopes.h
@@ -484,8 +484,10 @@ class Scope: public ZoneObject {
// Find the first non-block declaration scope. This should be either a script,
// function, or eval scope. Same as DeclarationScope(), but skips
- // declaration "block" scopes. Used for declaring temporaries.
- Scope* TemporaryScope();
+ // declaration "block" scopes. Used for differentiating associated
+ // function objects (i.e., the scope for which a function prologue allocates
+ // a context) or declaring temporaries.
+ Scope* ClosureScope();
// Find the first (non-arrow) function or script scope. This is where
// 'this' is bound, and what determines the function kind.
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698