diff options
author | Sergio Ahumada <sergio.ahumada@digia.com> | 2013-03-19 09:25:14 +0100 |
---|---|---|
committer | Sergio Ahumada <sergio.ahumada@digia.com> | 2013-03-19 09:56:31 +0100 |
commit | 6313e1fe4c27755adde87e62db1c2f9fac534ae4 (patch) | |
tree | c57bb29f65e02fbfcc07895a8cc2903fff9300ba /src/3rdparty/v8/src/variables.h | |
parent | b5a49a260d03249c386f1b63c249089383dd81fa (diff) | |
parent | cac65e7a222b848a735a974b0aeb43209b0cfa18 (diff) | |
download | qtjsbackend-6313e1fe4c27755adde87e62db1c2f9fac534ae4.tar.gz |
Merge branch 'dev' into stable
This starts Qt 5.1 release cycle
Change-Id: I892bbc73c276842894a720f761ce31ad1b015672
Diffstat (limited to 'src/3rdparty/v8/src/variables.h')
-rw-r--r-- | src/3rdparty/v8/src/variables.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/3rdparty/v8/src/variables.h b/src/3rdparty/v8/src/variables.h index 43b2c81..d4e851b 100644 --- a/src/3rdparty/v8/src/variables.h +++ b/src/3rdparty/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; } |