diff options
Diffstat (limited to 'deps/v8/src/variables.cc')
-rw-r--r-- | deps/v8/src/variables.cc | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/deps/v8/src/variables.cc b/deps/v8/src/variables.cc index 69495bb40f..6cf6e0b04a 100644 --- a/deps/v8/src/variables.cc +++ b/deps/v8/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) { |