| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 040664dc06641f4df917320456564869c86e8242..b872c245e5d20b901e4a02d60f291d5ba2c6bda1 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2153,11 +2153,19 @@ class JSObject: public JSReceiver {
|
| Object* value,
|
| JSObject* holder,
|
| StrictModeFlag strict_mode);
|
| +
|
| MUST_USE_RESULT MaybeObject* SetPropertyWithInterceptor(
|
| Name* name,
|
| Object* value,
|
| PropertyAttributes attributes,
|
| StrictModeFlag strict_mode);
|
| + static Handle<Object> SetPropertyWithInterceptor(
|
| + Handle<JSObject> object,
|
| + Handle<Name> name,
|
| + Handle<Object> value,
|
| + PropertyAttributes attributes,
|
| + StrictModeFlag strict_mode);
|
| +
|
| MUST_USE_RESULT MaybeObject* SetPropertyPostInterceptor(
|
| Name* name,
|
| Object* value,
|
| @@ -2507,11 +2515,6 @@ class JSObject: public JSReceiver {
|
| PropertyAttributes attributes,
|
| TransitionFlag flag);
|
|
|
| - MUST_USE_RESULT MaybeObject* ReplaceSlowProperty(
|
| - Name* name,
|
| - Object* value,
|
| - PropertyAttributes attributes);
|
| -
|
| // Returns a new map with all transitions dropped from the object's current
|
| // map and the ElementsKind set.
|
| static Handle<Map> GetElementsTransitionMap(Handle<JSObject> object,
|
| @@ -2528,12 +2531,6 @@ class JSObject: public JSReceiver {
|
| MUST_USE_RESULT MaybeObject* TransitionElementsKind(ElementsKind to_kind);
|
| MUST_USE_RESULT MaybeObject* UpdateAllocationSite(ElementsKind to_kind);
|
|
|
| - MUST_USE_RESULT MaybeObject* MigrateToMap(Map* new_map);
|
| - MUST_USE_RESULT MaybeObject* GeneralizeFieldRepresentation(
|
| - int modify_index,
|
| - Representation new_representation,
|
| - StoreMode store_mode);
|
| -
|
| // Add a property to a fast-case object.
|
| MUST_USE_RESULT MaybeObject* AddFastProperty(
|
| Name* name,
|
| @@ -2754,6 +2751,58 @@ class JSObject: public JSReceiver {
|
| friend class DictionaryElementsAccessor;
|
| friend class JSReceiver;
|
|
|
| + static void AddProperty(
|
| + Handle<JSObject> object,
|
| + Handle<Name> name,
|
| + Handle<Object> value,
|
| + PropertyAttributes attributes,
|
| + StrictModeFlag strict_mode,
|
| + StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED,
|
| + ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK,
|
| + ValueType value_type = OPTIMAL_REPRESENTATION,
|
| + StoreMode mode = ALLOW_AS_CONSTANT,
|
| + TransitionFlag flag = INSERT_TRANSITION);
|
| +
|
| + static void AddFastPropertyUsingMap(Handle<JSObject> object,
|
| + Handle<Map> new_map,
|
| + Handle<Name> name,
|
| + Handle<Object> value,
|
| + int field_index,
|
| + Representation representation);
|
| +
|
| + MUST_USE_RESULT MaybeObject* GeneralizeFieldRepresentation(
|
| + int modify_index,
|
| + Representation new_representation,
|
| + StoreMode store_mode);
|
| + static void GeneralizeFieldRepresentation(Handle<JSObject> object,
|
| + int modify_index,
|
| + Representation new_representation,
|
| + StoreMode store_mode);
|
| +
|
| + static void ReplaceSlowProperty(Handle<JSObject> object,
|
| + Handle<Name> name,
|
| + Handle<Object> value,
|
| + PropertyAttributes attributes);
|
| +
|
| + MUST_USE_RESULT MaybeObject* MigrateToMap(Map* new_map);
|
| + static void MigrateToMap(Handle<JSObject> object, Handle<Map> new_map);
|
| +
|
| + static void SetPropertyToField(LookupResult* lookup,
|
| + Handle<Name> name,
|
| + Handle<Object> value);
|
| + static void SetPropertyToFieldWithAttributes(LookupResult* lookup,
|
| + Handle<Name> name,
|
| + Handle<Object> value,
|
| + PropertyAttributes attributes);
|
| + static void SetPropertyUsingTransition(LookupResult* lookup,
|
| + Handle<Name> name,
|
| + Handle<Object> value,
|
| + PropertyAttributes attributes);
|
| + static void ConvertAndSetLocalProperty(LookupResult* lookup,
|
| + Handle<Name> name,
|
| + Handle<Object> value,
|
| + PropertyAttributes attributes);
|
| +
|
| MUST_USE_RESULT MaybeObject* GetElementWithCallback(Object* receiver,
|
| Object* structure,
|
| uint32_t index,
|
| @@ -5629,6 +5678,12 @@ class Map: public HeapObject {
|
| StoreMode store_mode,
|
| PropertyAttributes attributes,
|
| const char* reason);
|
| + static Handle<Map> CopyGeneralizeAllRepresentations(
|
| + Handle<Map> map,
|
| + int modify_index,
|
| + StoreMode store_mode,
|
| + PropertyAttributes attributes,
|
| + const char* reason);
|
|
|
| void PrintGeneralization(FILE* file,
|
| const char* reason,
|
|
|