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

Side by Side Diff: src/objects.h

Issue 32483006: Handlify Map::CopyNormalized (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ws 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') | src/objects.cc » ('J')
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 5928 matching lines...) Expand 10 before | Expand all | Expand 10 after
5939 inline bool is_migration_target(); 5939 inline bool is_migration_target();
5940 inline void deprecate(); 5940 inline void deprecate();
5941 inline bool is_deprecated(); 5941 inline bool is_deprecated();
5942 inline bool CanBeDeprecated(); 5942 inline bool CanBeDeprecated();
5943 // Returns a non-deprecated version of the input. If the input was not 5943 // Returns a non-deprecated version of the input. If the input was not
5944 // deprecated, it is directly returned. Otherwise, the non-deprecated version 5944 // deprecated, it is directly returned. Otherwise, the non-deprecated version
5945 // is found by re-transitioning from the root of the transition tree using the 5945 // is found by re-transitioning from the root of the transition tree using the
5946 // descriptor array of the map. Returns NULL if no updated map is found. 5946 // descriptor array of the map. Returns NULL if no updated map is found.
5947 Map* CurrentMapForDeprecated(); 5947 Map* CurrentMapForDeprecated();
5948 5948
5949 static Handle<Map> RawCopy(Handle<Map> map, int instance_size);
5949 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); 5950 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size);
5950 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); 5951 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors();
5951 static Handle<Map> CopyDropDescriptors(Handle<Map> map); 5952 static Handle<Map> CopyDropDescriptors(Handle<Map> map);
5952 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); 5953 MUST_USE_RESULT MaybeObject* CopyDropDescriptors();
5953 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map, 5954 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map,
5954 Handle<DescriptorArray> descriptors, 5955 Handle<DescriptorArray> descriptors,
5955 TransitionFlag flag, 5956 TransitionFlag flag,
5956 Handle<Name> name); 5957 Handle<Name> name);
5957 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( 5958 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors(
5958 DescriptorArray* descriptors, 5959 DescriptorArray* descriptors,
(...skipping 22 matching lines...) Expand all
5981 5982
5982 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, 5983 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind,
5983 TransitionFlag flag); 5984 TransitionFlag flag);
5984 5985
5985 static Handle<Map> CopyForObserved(Handle<Map> map); 5986 static Handle<Map> CopyForObserved(Handle<Map> map);
5986 MUST_USE_RESULT MaybeObject* CopyForObserved(); 5987 MUST_USE_RESULT MaybeObject* CopyForObserved();
5987 5988
5988 static Handle<Map> CopyNormalized(Handle<Map> map, 5989 static Handle<Map> CopyNormalized(Handle<Map> map,
5989 PropertyNormalizationMode mode, 5990 PropertyNormalizationMode mode,
5990 NormalizedMapSharingMode sharing); 5991 NormalizedMapSharingMode sharing);
5991 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode,
5992 NormalizedMapSharingMode sharing);
5993 5992
5994 inline void AppendDescriptor(Descriptor* desc, 5993 inline void AppendDescriptor(Descriptor* desc,
5995 const DescriptorArray::WhitenessWitness&); 5994 const DescriptorArray::WhitenessWitness&);
5996 5995
5997 // Returns a copy of the map, with all transitions dropped from the 5996 // Returns a copy of the map, with all transitions dropped from the
5998 // instance descriptors. 5997 // instance descriptors.
5999 static Handle<Map> Copy(Handle<Map> map); 5998 static Handle<Map> Copy(Handle<Map> map);
6000 MUST_USE_RESULT MaybeObject* Copy(); 5999 MUST_USE_RESULT MaybeObject* Copy();
6001 6000
6002 // Returns the next free property index (only valid for FAST MODE). 6001 // Returns the next free property index (only valid for FAST MODE).
(...skipping 4416 matching lines...) Expand 10 before | Expand all | Expand 10 after
10419 } else { 10418 } else {
10420 value &= ~(1 << bit_position); 10419 value &= ~(1 << bit_position);
10421 } 10420 }
10422 return value; 10421 return value;
10423 } 10422 }
10424 }; 10423 };
10425 10424
10426 } } // namespace v8::internal 10425 } } // namespace v8::internal
10427 10426
10428 #endif // V8_OBJECTS_H_ 10427 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698