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

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: 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 5937 matching lines...) Expand 10 before | Expand all | Expand 10 after
5948 inline bool is_migration_target(); 5948 inline bool is_migration_target();
5949 inline void deprecate(); 5949 inline void deprecate();
5950 inline bool is_deprecated(); 5950 inline bool is_deprecated();
5951 inline bool CanBeDeprecated(); 5951 inline bool CanBeDeprecated();
5952 // Returns a non-deprecated version of the input. If the input was not 5952 // Returns a non-deprecated version of the input. If the input was not
5953 // deprecated, it is directly returned. Otherwise, the non-deprecated version 5953 // deprecated, it is directly returned. Otherwise, the non-deprecated version
5954 // is found by re-transitioning from the root of the transition tree using the 5954 // is found by re-transitioning from the root of the transition tree using the
5955 // descriptor array of the map. Returns NULL if no updated map is found. 5955 // descriptor array of the map. Returns NULL if no updated map is found.
5956 Map* CurrentMapForDeprecated(); 5956 Map* CurrentMapForDeprecated();
5957 5957
5958 static Handle<Map> RawCopy(Handle<Map> map, int instance_size);
5958 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); 5959 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size);
5959 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); 5960 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors();
5960 static Handle<Map> CopyDropDescriptors(Handle<Map> map); 5961 static Handle<Map> CopyDropDescriptors(Handle<Map> map);
5961 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); 5962 MUST_USE_RESULT MaybeObject* CopyDropDescriptors();
5962 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map, 5963 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map,
5963 Handle<DescriptorArray> descriptors, 5964 Handle<DescriptorArray> descriptors,
5964 TransitionFlag flag, 5965 TransitionFlag flag,
5965 Handle<Name> name); 5966 Handle<Name> name);
5966 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( 5967 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors(
5967 DescriptorArray* descriptors, 5968 DescriptorArray* descriptors,
(...skipping 21 matching lines...) Expand all
5989 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind); 5990 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind);
5990 5991
5991 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, 5992 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind,
5992 TransitionFlag flag); 5993 TransitionFlag flag);
5993 5994
5994 static Handle<Map> CopyForObserved(Handle<Map> map); 5995 static Handle<Map> CopyForObserved(Handle<Map> map);
5995 5996
5996 static Handle<Map> CopyNormalized(Handle<Map> map, 5997 static Handle<Map> CopyNormalized(Handle<Map> map,
5997 PropertyNormalizationMode mode, 5998 PropertyNormalizationMode mode,
5998 NormalizedMapSharingMode sharing); 5999 NormalizedMapSharingMode sharing);
5999 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode,
6000 NormalizedMapSharingMode sharing);
6001 6000
6002 inline void AppendDescriptor(Descriptor* desc, 6001 inline void AppendDescriptor(Descriptor* desc,
6003 const DescriptorArray::WhitenessWitness&); 6002 const DescriptorArray::WhitenessWitness&);
6004 6003
6005 // Returns a copy of the map, with all transitions dropped from the 6004 // Returns a copy of the map, with all transitions dropped from the
6006 // instance descriptors. 6005 // instance descriptors.
6007 static Handle<Map> Copy(Handle<Map> map); 6006 static Handle<Map> Copy(Handle<Map> map);
6008 MUST_USE_RESULT MaybeObject* Copy(); 6007 MUST_USE_RESULT MaybeObject* Copy();
6009 6008
6010 // Returns the next free property index (only valid for FAST MODE). 6009 // Returns the next free property index (only valid for FAST MODE).
(...skipping 4415 matching lines...) Expand 10 before | Expand all | Expand 10 after
10426 } else { 10425 } else {
10427 value &= ~(1 << bit_position); 10426 value &= ~(1 << bit_position);
10428 } 10427 }
10429 return value; 10428 return value;
10430 } 10429 }
10431 }; 10430 };
10432 10431
10433 } } // namespace v8::internal 10432 } } // namespace v8::internal
10434 10433
10435 #endif // V8_OBJECTS_H_ 10434 #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