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 4961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4972 | 4972 |
4973 void SetEnumLength(int length) { | 4973 void SetEnumLength(int length) { |
4974 if (length != kInvalidEnumCache) { | 4974 if (length != kInvalidEnumCache) { |
4975 ASSERT(length >= 0); | 4975 ASSERT(length >= 0); |
4976 ASSERT(length == 0 || instance_descriptors()->HasEnumCache()); | 4976 ASSERT(length == 0 || instance_descriptors()->HasEnumCache()); |
4977 ASSERT(length <= NumberOfOwnDescriptors()); | 4977 ASSERT(length <= NumberOfOwnDescriptors()); |
4978 } | 4978 } |
4979 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); | 4979 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); |
4980 } | 4980 } |
4981 | 4981 |
4982 | 4982 inline bool CanTrackAllocationSite(); |
4983 inline bool owns_descriptors(); | 4983 inline bool owns_descriptors(); |
4984 inline void set_owns_descriptors(bool is_shared); | 4984 inline void set_owns_descriptors(bool is_shared); |
4985 inline bool is_observed(); | 4985 inline bool is_observed(); |
4986 inline void set_is_observed(bool is_observed); | 4986 inline void set_is_observed(bool is_observed); |
4987 | 4987 |
4988 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); | 4988 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); |
4989 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); | 4989 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); |
4990 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); | 4990 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); |
4991 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( | 4991 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( |
4992 DescriptorArray* descriptors, | 4992 DescriptorArray* descriptors, |
(...skipping 3824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8817 } else { | 8817 } else { |
8818 value &= ~(1 << bit_position); | 8818 value &= ~(1 << bit_position); |
8819 } | 8819 } |
8820 return value; | 8820 return value; |
8821 } | 8821 } |
8822 }; | 8822 }; |
8823 | 8823 |
8824 } } // namespace v8::internal | 8824 } } // namespace v8::internal |
8825 | 8825 |
8826 #endif // V8_OBJECTS_H_ | 8826 #endif // V8_OBJECTS_H_ |
OLD | NEW |