OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 5731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5742 static bool IsValidElementsTransition(ElementsKind from_kind, | 5742 static bool IsValidElementsTransition(ElementsKind from_kind, |
5743 ElementsKind to_kind); | 5743 ElementsKind to_kind); |
5744 | 5744 |
5745 inline bool HasTransitionArray(); | 5745 inline bool HasTransitionArray(); |
5746 inline bool HasElementsTransition(); | 5746 inline bool HasElementsTransition(); |
5747 inline Map* elements_transition_map(); | 5747 inline Map* elements_transition_map(); |
5748 MUST_USE_RESULT inline MaybeObject* set_elements_transition_map( | 5748 MUST_USE_RESULT inline MaybeObject* set_elements_transition_map( |
5749 Map* transitioned_map); | 5749 Map* transitioned_map); |
5750 inline void SetTransition(int transition_index, Map* target); | 5750 inline void SetTransition(int transition_index, Map* target); |
5751 inline Map* GetTransition(int transition_index); | 5751 inline Map* GetTransition(int transition_index); |
| 5752 |
| 5753 static Handle<TransitionArray> AddTransition(Handle<Map> map, |
| 5754 Handle<Name> key, |
| 5755 Handle<Map> target, |
| 5756 SimpleTransitionFlag flag); |
| 5757 |
5752 MUST_USE_RESULT inline MaybeObject* AddTransition(Name* key, | 5758 MUST_USE_RESULT inline MaybeObject* AddTransition(Name* key, |
5753 Map* target, | 5759 Map* target, |
5754 SimpleTransitionFlag flag); | 5760 SimpleTransitionFlag flag); |
5755 DECL_ACCESSORS(transitions, TransitionArray) | 5761 DECL_ACCESSORS(transitions, TransitionArray) |
5756 inline void ClearTransitions(Heap* heap, | 5762 inline void ClearTransitions(Heap* heap, |
5757 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); | 5763 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); |
5758 | 5764 |
5759 void DeprecateTransitionTree(); | 5765 void DeprecateTransitionTree(); |
5760 void DeprecateTarget(Name* key, DescriptorArray* new_descriptors); | 5766 void DeprecateTarget(Name* key, DescriptorArray* new_descriptors); |
5761 | 5767 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5976 DescriptorArray* descriptors, | 5982 DescriptorArray* descriptors, |
5977 Descriptor* descriptor, | 5983 Descriptor* descriptor, |
5978 int index, | 5984 int index, |
5979 TransitionFlag flag); | 5985 TransitionFlag flag); |
5980 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind); | 5986 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind); |
5981 | 5987 |
5982 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, | 5988 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, |
5983 TransitionFlag flag); | 5989 TransitionFlag flag); |
5984 | 5990 |
5985 static Handle<Map> CopyForObserved(Handle<Map> map); | 5991 static Handle<Map> CopyForObserved(Handle<Map> map); |
5986 MUST_USE_RESULT MaybeObject* CopyForObserved(); | |
5987 | 5992 |
5988 static Handle<Map> CopyNormalized(Handle<Map> map, | 5993 static Handle<Map> CopyNormalized(Handle<Map> map, |
5989 PropertyNormalizationMode mode, | 5994 PropertyNormalizationMode mode, |
5990 NormalizedMapSharingMode sharing); | 5995 NormalizedMapSharingMode sharing); |
5991 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode, | 5996 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode, |
5992 NormalizedMapSharingMode sharing); | 5997 NormalizedMapSharingMode sharing); |
5993 | 5998 |
5994 inline void AppendDescriptor(Descriptor* desc, | 5999 inline void AppendDescriptor(Descriptor* desc, |
5995 const DescriptorArray::WhitenessWitness&); | 6000 const DescriptorArray::WhitenessWitness&); |
5996 | 6001 |
(...skipping 4422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10419 } else { | 10424 } else { |
10420 value &= ~(1 << bit_position); | 10425 value &= ~(1 << bit_position); |
10421 } | 10426 } |
10422 return value; | 10427 return value; |
10423 } | 10428 } |
10424 }; | 10429 }; |
10425 | 10430 |
10426 } } // namespace v8::internal | 10431 } } // namespace v8::internal |
10427 | 10432 |
10428 #endif // V8_OBJECTS_H_ | 10433 #endif // V8_OBJECTS_H_ |
OLD | NEW |