| Index: src/variables.h
|
| ===================================================================
|
| --- src/variables.h (revision 9006)
|
| +++ src/variables.h (working copy)
|
| @@ -46,6 +46,8 @@
|
|
|
| CONST, // declared via 'const' declarations
|
|
|
| + LET, // declared via 'let' declarations
|
| +
|
| // Variables introduced by the compiler:
|
| DYNAMIC, // always require dynamic lookup (we don't know
|
| // the declaration)
|
| @@ -95,11 +97,12 @@
|
|
|
| Handle<String> name() const { return name_; }
|
| Mode mode() const { return mode_; }
|
| - bool is_accessed_from_inner_scope() const {
|
| - return is_accessed_from_inner_scope_;
|
| + bool is_accessed_from_inner_function_scope() const {
|
| + return is_accessed_from_inner_function_scope_;
|
| }
|
| - void MarkAsAccessedFromInnerScope() {
|
| - is_accessed_from_inner_scope_ = true;
|
| + void MarkAsAccessedFromInnerFunctionScope() {
|
| + ASSERT(mode_ != TEMPORARY);
|
| + is_accessed_from_inner_function_scope_ = true;
|
| }
|
| bool is_used() { return is_used_; }
|
| void set_is_used(bool flag) { is_used_ = flag; }
|
| @@ -156,7 +159,7 @@
|
| bool is_valid_LHS_;
|
|
|
| // Usage info.
|
| - bool is_accessed_from_inner_scope_; // set by variable resolver
|
| + bool is_accessed_from_inner_function_scope_; // set by variable resolver
|
| bool is_used_;
|
| };
|
|
|
|
|