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 5158 matching lines...) Loading... |
5169 | 5169 |
5170 // Bit field. | 5170 // Bit field. |
5171 inline byte bit_field(); | 5171 inline byte bit_field(); |
5172 inline void set_bit_field(byte value); | 5172 inline void set_bit_field(byte value); |
5173 | 5173 |
5174 // Bit field 2. | 5174 // Bit field 2. |
5175 inline byte bit_field2(); | 5175 inline byte bit_field2(); |
5176 inline void set_bit_field2(byte value); | 5176 inline void set_bit_field2(byte value); |
5177 | 5177 |
5178 // Bit field 3. | 5178 // Bit field 3. |
5179 inline int bit_field3(); | 5179 inline uint32_t bit_field3(); |
5180 inline void set_bit_field3(int value); | 5180 inline void set_bit_field3(uint32_t bits); |
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 class IsUnstable: public BitField<bool, 29, 1> {}; |
| 5192 class IsMigrationTarget: public BitField<bool, 30, 1> {}; |
5192 | 5193 |
5193 // Tells whether the object in the prototype property will be used | 5194 // Tells whether the object in the prototype property will be used |
5194 // for instances created from this function. If the prototype | 5195 // for instances created from this function. If the prototype |
5195 // property is set to a value that is not a JSObject, the prototype | 5196 // property is set to a value that is not a JSObject, the prototype |
5196 // property will not be used to create instances of the function. | 5197 // property will not be used to create instances of the function. |
5197 // See ECMA-262, 13.2.2. | 5198 // See ECMA-262, 13.2.2. |
5198 inline void set_non_instance_prototype(bool value); | 5199 inline void set_non_instance_prototype(bool value); |
5199 inline bool has_non_instance_prototype(); | 5200 inline bool has_non_instance_prototype(); |
5200 | 5201 |
5201 // Tells whether function has special prototype property. If not, prototype | 5202 // Tells whether function has special prototype property. If not, prototype |
(...skipping 286 matching lines...) Loading... |
5488 | 5489 |
5489 inline bool CanTrackAllocationSite(); | 5490 inline bool CanTrackAllocationSite(); |
5490 inline bool owns_descriptors(); | 5491 inline bool owns_descriptors(); |
5491 inline void set_owns_descriptors(bool is_shared); | 5492 inline void set_owns_descriptors(bool is_shared); |
5492 inline bool is_observed(); | 5493 inline bool is_observed(); |
5493 inline void set_is_observed(bool is_observed); | 5494 inline void set_is_observed(bool is_observed); |
5494 inline void freeze(); | 5495 inline void freeze(); |
5495 inline bool is_frozen(); | 5496 inline bool is_frozen(); |
5496 inline void mark_unstable(); | 5497 inline void mark_unstable(); |
5497 inline bool is_stable(); | 5498 inline bool is_stable(); |
| 5499 inline void set_migration_target(bool value); |
| 5500 inline bool is_migration_target(); |
5498 inline void deprecate(); | 5501 inline void deprecate(); |
5499 inline bool is_deprecated(); | 5502 inline bool is_deprecated(); |
5500 inline bool CanBeDeprecated(); | 5503 inline bool CanBeDeprecated(); |
5501 // Returns a non-deprecated version of the input. If the input was not | 5504 // Returns a non-deprecated version of the input. If the input was not |
5502 // deprecated, it is directly returned. Otherwise, the non-deprecated version | 5505 // deprecated, it is directly returned. Otherwise, the non-deprecated version |
5503 // is found by re-transitioning from the root of the transition tree using the | 5506 // is found by re-transitioning from the root of the transition tree using the |
5504 // descriptor array of the map. Returns NULL if no updated map is found. | 5507 // descriptor array of the map. Returns NULL if no updated map is found. |
5505 Map* CurrentMapForDeprecated(); | 5508 Map* CurrentMapForDeprecated(); |
5506 | 5509 |
5507 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); | 5510 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); |
(...skipping 4390 matching lines...) Loading... |
9898 } else { | 9901 } else { |
9899 value &= ~(1 << bit_position); | 9902 value &= ~(1 << bit_position); |
9900 } | 9903 } |
9901 return value; | 9904 return value; |
9902 } | 9905 } |
9903 }; | 9906 }; |
9904 | 9907 |
9905 } } // namespace v8::internal | 9908 } } // namespace v8::internal |
9906 | 9909 |
9907 #endif // V8_OBJECTS_H_ | 9910 #endif // V8_OBJECTS_H_ |
OLD | NEW |