| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index d7645b148f91b4b88492a5b7f2a61170074013fe..7ce97c3cbdfc739a6beea545ace3ff8e7a007be5 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2187,7 +2187,6 @@ class JSObject: public JSReceiver {
|
| // arguments object.
|
| DECL_ACCESSORS(elements, FixedArrayBase)
|
| inline void initialize_elements();
|
| - MUST_USE_RESULT inline MaybeObject* ResetElements();
|
| static void ResetElements(Handle<JSObject> object);
|
| static inline void SetMapAndElements(Handle<JSObject> object,
|
| Handle<Map> map,
|
| @@ -2585,11 +2584,8 @@ class JSObject: public JSReceiver {
|
| // map and the ElementsKind set.
|
| static Handle<Map> GetElementsTransitionMap(Handle<JSObject> object,
|
| ElementsKind to_kind);
|
| - inline MUST_USE_RESULT MaybeObject* GetElementsTransitionMap(
|
| - Isolate* isolate,
|
| - ElementsKind elements_kind);
|
| - MUST_USE_RESULT MaybeObject* GetElementsTransitionMapSlow(
|
| - ElementsKind elements_kind);
|
| + static Handle<Map> GetElementsTransitionMapSlow(Handle<JSObject> object,
|
| + ElementsKind elements_kind);
|
|
|
| static void TransitionElementsKind(Handle<JSObject> object,
|
| ElementsKind to_kind);
|
| @@ -3479,17 +3475,13 @@ class DescriptorArray: public FixedArray {
|
| int new_size,
|
| DescriptorArray* other);
|
|
|
| - MUST_USE_RESULT MaybeObject* CopyUpTo(int enumeration_index) {
|
| - return CopyUpToAddAttributes(enumeration_index, NONE);
|
| - }
|
| + static Handle<DescriptorArray> CopyUpTo(Handle<DescriptorArray> desc,
|
| + int enumeration_index);
|
|
|
| static Handle<DescriptorArray> CopyUpToAddAttributes(
|
| Handle<DescriptorArray> desc,
|
| int enumeration_index,
|
| PropertyAttributes attributes);
|
| - MUST_USE_RESULT MaybeObject* CopyUpToAddAttributes(
|
| - int enumeration_index,
|
| - PropertyAttributes attributes);
|
|
|
| // Sort the instance descriptors by the hash codes of their keys.
|
| void Sort();
|
| @@ -6184,20 +6176,17 @@ class Map: public HeapObject {
|
| inline bool HasTransitionArray();
|
| inline bool HasElementsTransition();
|
| inline Map* elements_transition_map();
|
| - MUST_USE_RESULT inline MaybeObject* set_elements_transition_map(
|
| - Map* transitioned_map);
|
| + static Handle<TransitionArray> SetElementsTransitionMap(
|
| + Handle<Map> map, Handle<Map> transitioned_map);
|
| inline void SetTransition(int transition_index, Map* target);
|
| inline Map* GetTransition(int transition_index);
|
| inline int SearchTransition(Name* name);
|
| + inline FixedArrayBase* GetInitialElements();
|
|
|
| static Handle<TransitionArray> AddTransition(Handle<Map> map,
|
| Handle<Name> key,
|
| Handle<Map> target,
|
| SimpleTransitionFlag flag);
|
| -
|
| - MUST_USE_RESULT inline MaybeObject* AddTransition(Name* key,
|
| - Map* target,
|
| - SimpleTransitionFlag flag);
|
| DECL_ACCESSORS(transitions, TransitionArray)
|
| inline void ClearTransitions(Heap* heap,
|
| WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
|
| @@ -6403,37 +6392,42 @@ class Map: public HeapObject {
|
| MUST_USE_RESULT MaybeObject* RawCopy(int instance_size);
|
| static Handle<Map> CopyDropDescriptors(Handle<Map> map);
|
| MUST_USE_RESULT MaybeObject* CopyDropDescriptors();
|
| - static Handle<Map> CopyReplaceDescriptors(Handle<Map> map,
|
| - Handle<DescriptorArray> descriptors,
|
| - TransitionFlag flag,
|
| - Handle<Name> name);
|
| - MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors(
|
| - DescriptorArray* descriptors,
|
| + static Handle<Map> CopyReplaceDescriptors(
|
| + Handle<Map> map,
|
| + Handle<DescriptorArray> descriptors,
|
| + TransitionFlag flag,
|
| + Handle<Name> name,
|
| + SimpleTransitionFlag simple_flag = FULL_TRANSITION);
|
| + static Handle<Map> CopyReplaceDescriptors(
|
| + Handle<Map> map,
|
| + Handle<DescriptorArray> descriptors,
|
| TransitionFlag flag,
|
| - Name* name = NULL,
|
| SimpleTransitionFlag simple_flag = FULL_TRANSITION);
|
| static Handle<Map> CopyInstallDescriptors(
|
| Handle<Map> map,
|
| int new_descriptor,
|
| Handle<DescriptorArray> descriptors);
|
| - MUST_USE_RESULT MaybeObject* ShareDescriptor(DescriptorArray* descriptors,
|
| - Descriptor* descriptor);
|
| - MUST_USE_RESULT MaybeObject* CopyAddDescriptor(Descriptor* descriptor,
|
| - TransitionFlag flag);
|
| - MUST_USE_RESULT MaybeObject* CopyInsertDescriptor(Descriptor* descriptor,
|
| - TransitionFlag flag);
|
| - MUST_USE_RESULT MaybeObject* CopyReplaceDescriptor(
|
| - DescriptorArray* descriptors,
|
| + static Handle<Map> ShareDescriptor(Handle<Map> map,
|
| + Handle<DescriptorArray> descriptors,
|
| + Descriptor* descriptor);
|
| + static Handle<Map> CopyAddDescriptor(Handle<Map> map,
|
| + Descriptor* descriptor,
|
| + TransitionFlag flag);
|
| + static Handle<Map> CopyInsertDescriptor(Handle<Map> map,
|
| + Descriptor* descriptor,
|
| + TransitionFlag flag);
|
| + static Handle<Map> CopyReplaceDescriptor(
|
| + Handle<Map> map,
|
| + Handle<DescriptorArray> descriptors,
|
| Descriptor* descriptor,
|
| int index,
|
| TransitionFlag flag);
|
|
|
| - MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind);
|
| -
|
| static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind);
|
|
|
| - MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind,
|
| - TransitionFlag flag);
|
| + static Handle<Map> CopyAsElementsKind(Handle<Map> map,
|
| + ElementsKind kind,
|
| + TransitionFlag flag);
|
|
|
| static Handle<Map> CopyForObserved(Handle<Map> map);
|
|
|
| @@ -6449,7 +6443,6 @@ class Map: public HeapObject {
|
| static Handle<Map> Copy(Handle<Map> map);
|
| static Handle<Map> Create(Handle<JSFunction> constructor,
|
| int extra_inobject_properties);
|
| - MUST_USE_RESULT MaybeObject* Copy();
|
|
|
| // Returns the next free property index (only valid for FAST MODE).
|
| int NextFreePropertyIndex();
|
|
|