diff options
Diffstat (limited to 'deps/v8/src/variables.h')
-rw-r--r-- | deps/v8/src/variables.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/deps/v8/src/variables.h b/deps/v8/src/variables.h index f49b6e127..ba26b8047 100644 --- a/deps/v8/src/variables.h +++ b/deps/v8/src/variables.h @@ -55,7 +55,7 @@ class Variable: public ZoneObject { UNALLOCATED, // A slot in the parameter section on the stack. index() is the - // parameter index, counting left-to-right. The reciever is index -1; + // parameter index, counting left-to-right. The receiver is index -1; // the first parameter is index 0. PARAMETER, @@ -118,21 +118,14 @@ class Variable: public ZoneObject { bool IsStackAllocated() const { return IsParameter() || IsStackLocal(); } bool IsContextSlot() const { return location_ == CONTEXT; } bool IsLookupSlot() const { return location_ == LOOKUP; } + bool IsGlobalObjectProperty() const; - bool is_dynamic() const { - return (mode_ == DYNAMIC || - mode_ == DYNAMIC_GLOBAL || - mode_ == DYNAMIC_LOCAL); - } - bool is_const_mode() const { - return (mode_ == CONST || - mode_ == CONST_HARMONY); - } + bool is_dynamic() const { return IsDynamicVariableMode(mode_); } + bool is_const_mode() const { return IsImmutableVariableMode(mode_); } bool binding_needs_init() const { return initialization_flag_ == kNeedsInitialization; } - bool is_global() const; bool is_this() const { return kind_ == THIS; } bool is_arguments() const { return kind_ == ARGUMENTS; } |