| 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 5742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5753 | 5753 |
| 5754 void SetEnumLength(int length) { | 5754 void SetEnumLength(int length) { |
| 5755 if (length != kInvalidEnumCache) { | 5755 if (length != kInvalidEnumCache) { |
| 5756 ASSERT(length >= 0); | 5756 ASSERT(length >= 0); |
| 5757 ASSERT(length == 0 || instance_descriptors()->HasEnumCache()); | 5757 ASSERT(length == 0 || instance_descriptors()->HasEnumCache()); |
| 5758 ASSERT(length <= NumberOfOwnDescriptors()); | 5758 ASSERT(length <= NumberOfOwnDescriptors()); |
| 5759 } | 5759 } |
| 5760 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); | 5760 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); |
| 5761 } | 5761 } |
| 5762 | 5762 |
| 5763 inline bool CanTrackAllocationSite(); | |
| 5764 inline bool owns_descriptors(); | 5763 inline bool owns_descriptors(); |
| 5765 inline void set_owns_descriptors(bool is_shared); | 5764 inline void set_owns_descriptors(bool is_shared); |
| 5766 inline bool is_observed(); | 5765 inline bool is_observed(); |
| 5767 inline void set_is_observed(bool is_observed); | 5766 inline void set_is_observed(bool is_observed); |
| 5768 inline void freeze(); | 5767 inline void freeze(); |
| 5769 inline bool is_frozen(); | 5768 inline bool is_frozen(); |
| 5770 inline void mark_unstable(); | 5769 inline void mark_unstable(); |
| 5771 inline bool is_stable(); | 5770 inline bool is_stable(); |
| 5772 inline void set_migration_target(bool value); | 5771 inline void set_migration_target(bool value); |
| 5773 inline bool is_migration_target(); | 5772 inline bool is_migration_target(); |
| (...skipping 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7822 return transition_info()->IsJSArray(); | 7821 return transition_info()->IsJSArray(); |
| 7823 } | 7822 } |
| 7824 | 7823 |
| 7825 DECLARE_PRINTER(AllocationSite) | 7824 DECLARE_PRINTER(AllocationSite) |
| 7826 DECLARE_VERIFIER(AllocationSite) | 7825 DECLARE_VERIFIER(AllocationSite) |
| 7827 | 7826 |
| 7828 static inline AllocationSite* cast(Object* obj); | 7827 static inline AllocationSite* cast(Object* obj); |
| 7829 static inline AllocationSiteMode GetMode( | 7828 static inline AllocationSiteMode GetMode( |
| 7830 ElementsKind boilerplate_elements_kind); | 7829 ElementsKind boilerplate_elements_kind); |
| 7831 static inline AllocationSiteMode GetMode(ElementsKind from, ElementsKind to); | 7830 static inline AllocationSiteMode GetMode(ElementsKind from, ElementsKind to); |
| 7831 static inline bool CanTrack(InstanceType type); |
| 7832 | 7832 |
| 7833 static const int kTransitionInfoOffset = HeapObject::kHeaderSize; | 7833 static const int kTransitionInfoOffset = HeapObject::kHeaderSize; |
| 7834 static const int kWeakNextOffset = kTransitionInfoOffset + kPointerSize; | 7834 static const int kWeakNextOffset = kTransitionInfoOffset + kPointerSize; |
| 7835 static const int kSize = kWeakNextOffset + kPointerSize; | 7835 static const int kSize = kWeakNextOffset + kPointerSize; |
| 7836 | 7836 |
| 7837 typedef FixedBodyDescriptor<HeapObject::kHeaderSize, | 7837 typedef FixedBodyDescriptor<HeapObject::kHeaderSize, |
| 7838 kTransitionInfoOffset + kPointerSize, | 7838 kTransitionInfoOffset + kPointerSize, |
| 7839 kSize> BodyDescriptor; | 7839 kSize> BodyDescriptor; |
| 7840 | 7840 |
| 7841 private: | 7841 private: |
| (...skipping 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10175 } else { | 10175 } else { |
| 10176 value &= ~(1 << bit_position); | 10176 value &= ~(1 << bit_position); |
| 10177 } | 10177 } |
| 10178 return value; | 10178 return value; |
| 10179 } | 10179 } |
| 10180 }; | 10180 }; |
| 10181 | 10181 |
| 10182 } } // namespace v8::internal | 10182 } } // namespace v8::internal |
| 10183 | 10183 |
| 10184 #endif // V8_OBJECTS_H_ | 10184 #endif // V8_OBJECTS_H_ |
| OLD | NEW |