| Index: src/variables.cc
|
| diff --git a/src/variables.cc b/src/variables.cc
|
| index 69495bb40fdaea610e688319dac480ce091e0747..6cf6e0b04a9a62e4bc865414336558bec7eee590 100644
|
| --- a/src/variables.cc
|
| +++ b/src/variables.cc
|
| @@ -53,34 +53,6 @@ const char* Variable::Mode2String(Mode mode) {
|
| }
|
|
|
|
|
| -Property* Variable::AsProperty() const {
|
| - return rewrite_ == NULL ? NULL : rewrite_->AsProperty();
|
| -}
|
| -
|
| -
|
| -Slot* Variable::AsSlot() const { return rewrite_; }
|
| -
|
| -
|
| -bool Variable::IsStackAllocated() const {
|
| - return rewrite_ != NULL && rewrite_->IsStackAllocated();
|
| -}
|
| -
|
| -
|
| -bool Variable::IsParameter() const {
|
| - return rewrite_ != NULL && rewrite_->type() == Slot::PARAMETER;
|
| -}
|
| -
|
| -
|
| -bool Variable::IsStackLocal() const {
|
| - return rewrite_ != NULL && rewrite_->type() == Slot::LOCAL;
|
| -}
|
| -
|
| -
|
| -bool Variable::IsContextSlot() const {
|
| - return rewrite_ != NULL && rewrite_->type() == Slot::CONTEXT;
|
| -}
|
| -
|
| -
|
| Variable::Variable(Scope* scope,
|
| Handle<String> name,
|
| Mode mode,
|
| @@ -90,8 +62,9 @@ Variable::Variable(Scope* scope,
|
| name_(name),
|
| mode_(mode),
|
| kind_(kind),
|
| + location_(UNALLOCATED),
|
| + index_(-1),
|
| local_if_not_shadowed_(NULL),
|
| - rewrite_(NULL),
|
| is_valid_LHS_(is_valid_LHS),
|
| is_accessed_from_inner_function_scope_(false),
|
| is_used_(false) {
|
|
|