Index: src/variables.cc |
diff --git a/src/variables.cc b/src/variables.cc |
index 0502722d91c3ed1c9c5767713b420af530ec991c..67150ea13e1e55cb4e559c96f156fa0c78a123bb 100644 |
--- a/src/variables.cc |
+++ b/src/variables.cc |
@@ -57,32 +57,26 @@ Property* Variable::AsProperty() const { |
} |
-Slot* Variable::AsSlot() const { |
- return rewrite_ == NULL ? NULL : rewrite_->AsSlot(); |
-} |
+Slot* Variable::AsSlot() const { return rewrite_; } |
bool Variable::IsStackAllocated() const { |
- Slot* slot = AsSlot(); |
- return slot != NULL && slot->IsStackAllocated(); |
+ return rewrite_ != NULL && rewrite_->IsStackAllocated(); |
} |
bool Variable::IsParameter() const { |
- Slot* s = AsSlot(); |
- return s != NULL && s->type() == Slot::PARAMETER; |
+ return rewrite_ != NULL && rewrite_->type() == Slot::PARAMETER; |
} |
bool Variable::IsStackLocal() const { |
- Slot* s = AsSlot(); |
- return s != NULL && s->type() == Slot::LOCAL; |
+ return rewrite_ != NULL && rewrite_->type() == Slot::LOCAL; |
} |
bool Variable::IsContextSlot() const { |
- Slot* s = AsSlot(); |
- return s != NULL && s->type() == Slot::CONTEXT; |
+ return rewrite_ != NULL && rewrite_->type() == Slot::CONTEXT; |
} |