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

Side by Side Diff: src/objects.h

Issue 15358005: Don't create new maps in CurrentMapForDeprecated. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 | « src/hydrogen.cc ('k') | 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 5359 matching lines...) Expand 10 before | Expand all | Expand 10 after
5370 inline bool owns_descriptors(); 5370 inline bool owns_descriptors();
5371 inline void set_owns_descriptors(bool is_shared); 5371 inline void set_owns_descriptors(bool is_shared);
5372 inline bool is_observed(); 5372 inline bool is_observed();
5373 inline void set_is_observed(bool is_observed); 5373 inline void set_is_observed(bool is_observed);
5374 inline void deprecate(); 5374 inline void deprecate();
5375 inline bool is_deprecated(); 5375 inline bool is_deprecated();
5376 inline bool CanBeDeprecated(); 5376 inline bool CanBeDeprecated();
5377 // Returns a non-deprecated version of the input. If the input was not 5377 // Returns a non-deprecated version of the input. If the input was not
5378 // deprecated, it is directly returned. Otherwise, the non-deprecated version 5378 // deprecated, it is directly returned. Otherwise, the non-deprecated version
5379 // is found by re-transitioning from the root of the transition tree using the 5379 // is found by re-transitioning from the root of the transition tree using the
5380 // descriptor array of the map. New maps (and transitions) may be created if 5380 // descriptor array of the map. Returns NULL if no updated map is found.
5381 // no new (more general) version exists. 5381 Map* CurrentMapForDeprecated();
5382 static inline Handle<Map> CurrentMapForDeprecated(Handle<Map> map);
5383 5382
5384 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); 5383 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size);
5385 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); 5384 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors();
5386 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); 5385 MUST_USE_RESULT MaybeObject* CopyDropDescriptors();
5387 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( 5386 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors(
5388 DescriptorArray* descriptors, 5387 DescriptorArray* descriptors,
5389 Name* name, 5388 Name* name,
5390 TransitionFlag flag, 5389 TransitionFlag flag,
5391 int descriptor_index); 5390 int descriptor_index);
5392 MUST_USE_RESULT MaybeObject* CopyInstallDescriptors( 5391 MUST_USE_RESULT MaybeObject* CopyInstallDescriptors(
(...skipping 4215 matching lines...) Expand 10 before | Expand all | Expand 10 after
9608 } else { 9607 } else {
9609 value &= ~(1 << bit_position); 9608 value &= ~(1 << bit_position);
9610 } 9609 }
9611 return value; 9610 return value;
9612 } 9611 }
9613 }; 9612 };
9614 9613
9615 } } // namespace v8::internal 9614 } } // namespace v8::internal
9616 9615
9617 #endif // V8_OBJECTS_H_ 9616 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698