Index: src/variables.cc |
diff --git a/src/variables.cc b/src/variables.cc |
index c1440b7f6fd0564780499a46bde1626cd071d366..7f580fc6f0c30b9a6501dfdfd559e7536e49f8e3 100644 |
--- a/src/variables.cc |
+++ b/src/variables.cc |
@@ -98,6 +98,12 @@ bool Variable::IsStackLocal() const { |
} |
+bool Variable::IsContextSlot() const { |
+ Slot* s = AsSlot(); |
+ return s != NULL && s->type() == Slot::CONTEXT; |
+} |
+ |
+ |
Variable::Variable(Scope* scope, |
Handle<String> name, |
Mode mode, |