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 5326 matching lines...) Loading... |
5337 } | 5337 } |
5338 | 5338 |
5339 inline bool CanTrackAllocationSite(); | 5339 inline bool CanTrackAllocationSite(); |
5340 inline bool owns_descriptors(); | 5340 inline bool owns_descriptors(); |
5341 inline void set_owns_descriptors(bool is_shared); | 5341 inline void set_owns_descriptors(bool is_shared); |
5342 inline bool is_observed(); | 5342 inline bool is_observed(); |
5343 inline void set_is_observed(bool is_observed); | 5343 inline void set_is_observed(bool is_observed); |
5344 inline void deprecate(); | 5344 inline void deprecate(); |
5345 inline bool is_deprecated(); | 5345 inline bool is_deprecated(); |
5346 inline bool CanBeDeprecated(); | 5346 inline bool CanBeDeprecated(); |
| 5347 // Returns a non-deprecated version of the input. If the input was not |
| 5348 // deprecated, it is directly returned. Otherwise, the non-deprecated version |
| 5349 // is found by re-transitioning from the root of the transition tree using the |
| 5350 // descriptor array of the map. New maps (and transitions) may be created if |
| 5351 // no new (more general) version exists. |
| 5352 static inline Handle<Map> CurrentMapForDeprecated(Handle<Map> map); |
5347 | 5353 |
5348 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); | 5354 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); |
5349 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); | 5355 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); |
5350 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); | 5356 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); |
5351 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( | 5357 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( |
5352 DescriptorArray* descriptors, | 5358 DescriptorArray* descriptors, |
5353 Name* name, | 5359 Name* name, |
5354 TransitionFlag flag, | 5360 TransitionFlag flag, |
5355 int descriptor_index); | 5361 int descriptor_index); |
5356 MUST_USE_RESULT MaybeObject* CopyInstallDescriptors( | 5362 MUST_USE_RESULT MaybeObject* CopyInstallDescriptors( |
(...skipping 4168 matching lines...) Loading... |
9525 } else { | 9531 } else { |
9526 value &= ~(1 << bit_position); | 9532 value &= ~(1 << bit_position); |
9527 } | 9533 } |
9528 return value; | 9534 return value; |
9529 } | 9535 } |
9530 }; | 9536 }; |
9531 | 9537 |
9532 } } // namespace v8::internal | 9538 } } // namespace v8::internal |
9533 | 9539 |
9534 #endif // V8_OBJECTS_H_ | 9540 #endif // V8_OBJECTS_H_ |
OLD | NEW |