| Index: src/variables.h
|
| diff --git a/src/variables.h b/src/variables.h
|
| index b1ff0db646dc4968b4908f691c0315f220ec0309..a9c06d1eeaa486411e95b66ec7eab69a729b29f9 100644
|
| --- a/src/variables.h
|
| +++ b/src/variables.h
|
| @@ -81,7 +81,7 @@ class Variable: public ZoneObject {
|
| // Printing support
|
| static const char* Mode2String(Mode mode);
|
|
|
| - // Type testing & conversion
|
| + // Type testing & conversion. Global variables are not slots.
|
| Property* AsProperty() const;
|
| Slot* AsSlot() const;
|
|
|
| @@ -138,8 +138,8 @@ class Variable: public ZoneObject {
|
| local_if_not_shadowed_ = local;
|
| }
|
|
|
| - Expression* rewrite() const { return rewrite_; }
|
| - void set_rewrite(Expression* expr) { rewrite_ = expr; }
|
| + Slot* rewrite() const { return rewrite_; }
|
| + void set_rewrite(Slot* slot) { rewrite_ = slot; }
|
|
|
| private:
|
| Scope* scope_;
|
| @@ -150,8 +150,7 @@ class Variable: public ZoneObject {
|
| Variable* local_if_not_shadowed_;
|
|
|
| // Code generation.
|
| - // rewrite_ is usually a Slot or a Property, but may be any expression.
|
| - Expression* rewrite_;
|
| + Slot* rewrite_;
|
|
|
| // Valid as a LHS? (const and this are not valid LHS, for example)
|
| bool is_valid_LHS_;
|
|
|