diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-02 17:11:31 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-06 16:53:06 +0200 |
commit | 704fd8f3745527fc080f96e54e5ec1857c505399 (patch) | |
tree | bff68e8a731f3618d3e8f1708aa9de194bc1f612 /deps/v8/src/property.h | |
parent | eec43351c44c0bec31a83e1a28be15e30722936a (diff) | |
download | node-new-704fd8f3745527fc080f96e54e5ec1857c505399.tar.gz |
v8: upgrade to v3.20.2
Diffstat (limited to 'deps/v8/src/property.h')
-rw-r--r-- | deps/v8/src/property.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/src/property.h b/deps/v8/src/property.h index f853fc8ba0..5213ee6077 100644 --- a/deps/v8/src/property.h +++ b/deps/v8/src/property.h @@ -112,7 +112,7 @@ class ConstantFunctionDescriptor: public Descriptor { JSFunction* function, PropertyAttributes attributes) : Descriptor(key, function, attributes, CONSTANT_FUNCTION, - Representation::Tagged()) {} + Representation::HeapObject()) {} }; @@ -351,7 +351,7 @@ class LookupResult BASE_EMBEDDED { Object* value; value = holder()->property_dictionary()->ValueAt(GetDictionaryEntry()); if (holder()->IsGlobalObject()) { - value = JSGlobalPropertyCell::cast(value)->value(); + value = PropertyCell::cast(value)->value(); } return value; } @@ -392,6 +392,11 @@ class LookupResult BASE_EMBEDDED { return IsTransition() && GetTransitionDetails(map).type() == FIELD; } + bool IsTransitionToConstantFunction(Map* map) { + return IsTransition() && + GetTransitionDetails(map).type() == CONSTANT_FUNCTION; + } + Map* GetTransitionMap() { ASSERT(IsTransition()); return Map::cast(GetValue()); |