| Index: src/variables.cc
|
| ===================================================================
|
| --- src/variables.cc (revision 8618)
|
| +++ src/variables.cc (working copy)
|
| @@ -57,32 +57,26 @@
|
| }
|
|
|
|
|
| -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;
|
| }
|
|
|
|
|
|
|