| Index: src/variables.h
|
| ===================================================================
|
| --- src/variables.h (revision 6800)
|
| +++ src/variables.h (working copy)
|
| @@ -138,6 +138,9 @@
|
| bool is_accessed_from_inner_scope() const {
|
| return is_accessed_from_inner_scope_;
|
| }
|
| + void MarkAsAccessedFromInnerScope() {
|
| + is_accessed_from_inner_scope_ = true;
|
| + }
|
| bool is_used() { return is_used_; }
|
| void set_is_used(bool flag) { is_used_ = flag; }
|
|
|
| @@ -148,6 +151,7 @@
|
| bool IsStackAllocated() const;
|
| bool IsParameter() const; // Includes 'this'.
|
| bool IsStackLocal() const;
|
| + bool IsContextSlot() const;
|
|
|
| bool is_dynamic() const {
|
| return (mode_ == DYNAMIC ||
|
| @@ -175,6 +179,7 @@
|
| }
|
|
|
| Expression* rewrite() const { return rewrite_; }
|
| + void set_rewrite(Expression* expr) { rewrite_ = expr; }
|
|
|
| StaticType* type() { return &type_; }
|
|
|
| @@ -182,15 +187,10 @@
|
| Scope* scope_;
|
| Handle<String> name_;
|
| Mode mode_;
|
| - bool is_valid_LHS_;
|
| Kind kind_;
|
|
|
| Variable* local_if_not_shadowed_;
|
|
|
| - // Usage info.
|
| - bool is_accessed_from_inner_scope_; // set by variable resolver
|
| - bool is_used_;
|
| -
|
| // Static type information
|
| StaticType type_;
|
|
|
| @@ -198,7 +198,12 @@
|
| // rewrite_ is usually a Slot or a Property, but may be any expression.
|
| Expression* rewrite_;
|
|
|
| - friend class Scope; // Has explicit access to rewrite_.
|
| + // Valid as a LHS? (const and this are not valid LHS, for example)
|
| + bool is_valid_LHS_;
|
| +
|
| + // Usage info.
|
| + bool is_accessed_from_inner_scope_; // set by variable resolver
|
| + bool is_used_;
|
| };
|
|
|
|
|
|
|