From 704fd8f3745527fc080f96e54e5ec1857c505399 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 2 Jul 2013 17:11:31 +0200 Subject: v8: upgrade to v3.20.2 --- deps/v8/src/property.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'deps/v8/src/property.h') 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()); -- cgit v1.2.1