Index: src/variables.h |
diff --git a/src/variables.h b/src/variables.h |
index 618f6ace7d5588cc3a5e6d666f23cf58c2ed306b..1b518b7cf1f4d778e514e23315c967f85302fc34 100644 |
--- a/src/variables.h |
+++ b/src/variables.h |
@@ -122,8 +122,9 @@ class Variable: public ZoneObject { |
static const char* Mode2String(Mode mode); |
// Type testing & conversion |
- Property* AsProperty(); |
- Variable* AsVariable(); |
+ Property* AsProperty() const; |
+ Slot* AsSlot() const; |
+ |
bool IsValidLeftHandSide() { return is_valid_LHS_; } |
// The source code for an eval() call may refer to a variable that is |
@@ -172,7 +173,6 @@ class Variable: public ZoneObject { |
} |
Expression* rewrite() const { return rewrite_; } |
- Slot* slot() const; |
StaticType* type() { return &type_; } |