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 5170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5181 | 5181 |
5182 class EnumLengthBits: public BitField<int, 0, 11> {}; | 5182 class EnumLengthBits: public BitField<int, 0, 11> {}; |
5183 class NumberOfOwnDescriptorsBits: public BitField<int, 11, 11> {}; | 5183 class NumberOfOwnDescriptorsBits: public BitField<int, 11, 11> {}; |
5184 class IsShared: public BitField<bool, 22, 1> {}; | 5184 class IsShared: public BitField<bool, 22, 1> {}; |
5185 class FunctionWithPrototype: public BitField<bool, 23, 1> {}; | 5185 class FunctionWithPrototype: public BitField<bool, 23, 1> {}; |
5186 class DictionaryMap: public BitField<bool, 24, 1> {}; | 5186 class DictionaryMap: public BitField<bool, 24, 1> {}; |
5187 class OwnsDescriptors: public BitField<bool, 25, 1> {}; | 5187 class OwnsDescriptors: public BitField<bool, 25, 1> {}; |
5188 class IsObserved: public BitField<bool, 26, 1> {}; | 5188 class IsObserved: public BitField<bool, 26, 1> {}; |
5189 class Deprecated: public BitField<bool, 27, 1> {}; | 5189 class Deprecated: public BitField<bool, 27, 1> {}; |
5190 class IsFrozen: public BitField<bool, 28, 1> {}; | 5190 class IsFrozen: public BitField<bool, 28, 1> {}; |
| 5191 class IsUnstable: public BitField<bool, 29, 1> {}; |
5191 | 5192 |
5192 // Tells whether the object in the prototype property will be used | 5193 // Tells whether the object in the prototype property will be used |
5193 // for instances created from this function. If the prototype | 5194 // for instances created from this function. If the prototype |
5194 // property is set to a value that is not a JSObject, the prototype | 5195 // property is set to a value that is not a JSObject, the prototype |
5195 // property will not be used to create instances of the function. | 5196 // property will not be used to create instances of the function. |
5196 // See ECMA-262, 13.2.2. | 5197 // See ECMA-262, 13.2.2. |
5197 inline void set_non_instance_prototype(bool value); | 5198 inline void set_non_instance_prototype(bool value); |
5198 inline bool has_non_instance_prototype(); | 5199 inline bool has_non_instance_prototype(); |
5199 | 5200 |
5200 // Tells whether function has special prototype property. If not, prototype | 5201 // Tells whether function has special prototype property. If not, prototype |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5485 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); | 5486 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); |
5486 } | 5487 } |
5487 | 5488 |
5488 inline bool CanTrackAllocationSite(); | 5489 inline bool CanTrackAllocationSite(); |
5489 inline bool owns_descriptors(); | 5490 inline bool owns_descriptors(); |
5490 inline void set_owns_descriptors(bool is_shared); | 5491 inline void set_owns_descriptors(bool is_shared); |
5491 inline bool is_observed(); | 5492 inline bool is_observed(); |
5492 inline void set_is_observed(bool is_observed); | 5493 inline void set_is_observed(bool is_observed); |
5493 inline void freeze(); | 5494 inline void freeze(); |
5494 inline bool is_frozen(); | 5495 inline bool is_frozen(); |
| 5496 inline void mark_unstable(); |
| 5497 inline bool is_stable(); |
5495 inline void deprecate(); | 5498 inline void deprecate(); |
5496 inline bool is_deprecated(); | 5499 inline bool is_deprecated(); |
5497 inline bool CanBeDeprecated(); | 5500 inline bool CanBeDeprecated(); |
5498 // Returns a non-deprecated version of the input. If the input was not | 5501 // Returns a non-deprecated version of the input. If the input was not |
5499 // deprecated, it is directly returned. Otherwise, the non-deprecated version | 5502 // deprecated, it is directly returned. Otherwise, the non-deprecated version |
5500 // is found by re-transitioning from the root of the transition tree using the | 5503 // is found by re-transitioning from the root of the transition tree using the |
5501 // descriptor array of the map. Returns NULL if no updated map is found. | 5504 // descriptor array of the map. Returns NULL if no updated map is found. |
5502 Map* CurrentMapForDeprecated(); | 5505 Map* CurrentMapForDeprecated(); |
5503 | 5506 |
5504 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); | 5507 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); |
(...skipping 4374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9879 } else { | 9882 } else { |
9880 value &= ~(1 << bit_position); | 9883 value &= ~(1 << bit_position); |
9881 } | 9884 } |
9882 return value; | 9885 return value; |
9883 } | 9886 } |
9884 }; | 9887 }; |
9885 | 9888 |
9886 } } // namespace v8::internal | 9889 } } // namespace v8::internal |
9887 | 9890 |
9888 #endif // V8_OBJECTS_H_ | 9891 #endif // V8_OBJECTS_H_ |
OLD | NEW |