Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: src/objects.h

Issue 34023002: Handlify Map::CopyForObserved (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: cr changes Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
5979 DescriptorArray* descriptors, 5985 DescriptorArray* descriptors,
5980 Descriptor* descriptor, 5986 Descriptor* descriptor,
5981 int index, 5987 int index,
5982 TransitionFlag flag); 5988 TransitionFlag flag);
5983 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind); 5989 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind);
5984 5990
5985 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, 5991 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind,
5986 TransitionFlag flag); 5992 TransitionFlag flag);
5987 5993
5988 static Handle<Map> CopyForObserved(Handle<Map> map); 5994 static Handle<Map> CopyForObserved(Handle<Map> map);
5989 MUST_USE_RESULT MaybeObject* CopyForObserved();
5990 5995
5991 static Handle<Map> CopyNormalized(Handle<Map> map, 5996 static Handle<Map> CopyNormalized(Handle<Map> map,
5992 PropertyNormalizationMode mode, 5997 PropertyNormalizationMode mode,
5993 NormalizedMapSharingMode sharing); 5998 NormalizedMapSharingMode sharing);
5994 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode, 5999 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode,
5995 NormalizedMapSharingMode sharing); 6000 NormalizedMapSharingMode sharing);
5996 6001
5997 inline void AppendDescriptor(Descriptor* desc, 6002 inline void AppendDescriptor(Descriptor* desc,
5998 const DescriptorArray::WhitenessWitness&); 6003 const DescriptorArray::WhitenessWitness&);
5999 6004
(...skipping 4421 matching lines...) Expand 10 before | Expand all | Expand 10 after
10421 } else { 10426 } else {
10422 value &= ~(1 << bit_position); 10427 value &= ~(1 << bit_position);
10423 } 10428 }
10424 return value; 10429 return value;
10425 } 10430 }
10426 }; 10431 };
10427 10432
10428 } } // namespace v8::internal 10433 } } // namespace v8::internal
10429 10434
10430 #endif // V8_OBJECTS_H_ 10435 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698