| Index: src/variables.cc
|
| diff --git a/src/variables.cc b/src/variables.cc
|
| index 504e2244234d5e4746a4147223541aa9acace82c..c1440b7f6fd0564780499a46bde1626cd071d366 100644
|
| --- a/src/variables.cc
|
| +++ b/src/variables.cc
|
| @@ -86,6 +86,18 @@ bool Variable::IsStackAllocated() const {
|
| }
|
|
|
|
|
| +bool Variable::IsParameter() const {
|
| + Slot* s = AsSlot();
|
| + return s != NULL && s->type() == Slot::PARAMETER;
|
| +}
|
| +
|
| +
|
| +bool Variable::IsStackLocal() const {
|
| + Slot* s = AsSlot();
|
| + return s != NULL && s->type() == Slot::LOCAL;
|
| +}
|
| +
|
| +
|
| Variable::Variable(Scope* scope,
|
| Handle<String> name,
|
| Mode mode,
|
|
|