| 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 4683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4694 // Bit field 3. | 4694 // Bit field 3. |
| 4695 inline int bit_field3(); | 4695 inline int bit_field3(); |
| 4696 inline void set_bit_field3(int value); | 4696 inline void set_bit_field3(int value); |
| 4697 | 4697 |
| 4698 class EnumLengthBits: public BitField<int, 0, 11> {}; | 4698 class EnumLengthBits: public BitField<int, 0, 11> {}; |
| 4699 class NumberOfOwnDescriptorsBits: public BitField<int, 11, 11> {}; | 4699 class NumberOfOwnDescriptorsBits: public BitField<int, 11, 11> {}; |
| 4700 class IsShared: public BitField<bool, 22, 1> {}; | 4700 class IsShared: public BitField<bool, 22, 1> {}; |
| 4701 class FunctionWithPrototype: public BitField<bool, 23, 1> {}; | 4701 class FunctionWithPrototype: public BitField<bool, 23, 1> {}; |
| 4702 class DictionaryMap: public BitField<bool, 24, 1> {}; | 4702 class DictionaryMap: public BitField<bool, 24, 1> {}; |
| 4703 class OwnsDescriptors: public BitField<bool, 25, 1> {}; | 4703 class OwnsDescriptors: public BitField<bool, 25, 1> {}; |
| 4704 class IsObserved: public BitField<bool, 26, 1> {}; |
| 4704 | 4705 |
| 4705 // Tells whether the object in the prototype property will be used | 4706 // Tells whether the object in the prototype property will be used |
| 4706 // for instances created from this function. If the prototype | 4707 // for instances created from this function. If the prototype |
| 4707 // property is set to a value that is not a JSObject, the prototype | 4708 // property is set to a value that is not a JSObject, the prototype |
| 4708 // property will not be used to create instances of the function. | 4709 // property will not be used to create instances of the function. |
| 4709 // See ECMA-262, 13.2.2. | 4710 // See ECMA-262, 13.2.2. |
| 4710 inline void set_non_instance_prototype(bool value); | 4711 inline void set_non_instance_prototype(bool value); |
| 4711 inline bool has_non_instance_prototype(); | 4712 inline bool has_non_instance_prototype(); |
| 4712 | 4713 |
| 4713 // Tells whether function has special prototype property. If not, prototype | 4714 // Tells whether function has special prototype property. If not, prototype |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4961 ASSERT(length >= 0); | 4962 ASSERT(length >= 0); |
| 4962 ASSERT(length == 0 || instance_descriptors()->HasEnumCache()); | 4963 ASSERT(length == 0 || instance_descriptors()->HasEnumCache()); |
| 4963 ASSERT(length <= NumberOfOwnDescriptors()); | 4964 ASSERT(length <= NumberOfOwnDescriptors()); |
| 4964 } | 4965 } |
| 4965 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); | 4966 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); |
| 4966 } | 4967 } |
| 4967 | 4968 |
| 4968 | 4969 |
| 4969 inline bool owns_descriptors(); | 4970 inline bool owns_descriptors(); |
| 4970 inline void set_owns_descriptors(bool is_shared); | 4971 inline void set_owns_descriptors(bool is_shared); |
| 4972 inline bool is_observed(); |
| 4973 inline void set_is_observed(bool is_observed); |
| 4971 | 4974 |
| 4972 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); | 4975 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); |
| 4973 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); | 4976 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); |
| 4974 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); | 4977 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); |
| 4975 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( | 4978 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( |
| 4976 DescriptorArray* descriptors, | 4979 DescriptorArray* descriptors, |
| 4977 String* name, | 4980 String* name, |
| 4978 TransitionFlag flag, | 4981 TransitionFlag flag, |
| 4979 int descriptor_index); | 4982 int descriptor_index); |
| 4980 MUST_USE_RESULT MaybeObject* ShareDescriptor(DescriptorArray* descriptors, | 4983 MUST_USE_RESULT MaybeObject* ShareDescriptor(DescriptorArray* descriptors, |
| (...skipping 3974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8955 } else { | 8958 } else { |
| 8956 value &= ~(1 << bit_position); | 8959 value &= ~(1 << bit_position); |
| 8957 } | 8960 } |
| 8958 return value; | 8961 return value; |
| 8959 } | 8962 } |
| 8960 }; | 8963 }; |
| 8961 | 8964 |
| 8962 } } // namespace v8::internal | 8965 } } // namespace v8::internal |
| 8963 | 8966 |
| 8964 #endif // V8_OBJECTS_H_ | 8967 #endif // V8_OBJECTS_H_ |
| OLD | NEW |