OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 2873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2884 static const int kInstanceAttributesOffset = kInstanceSizesOffset + kIntSize; | 2884 static const int kInstanceAttributesOffset = kInstanceSizesOffset + kIntSize; |
2885 static const int kPrototypeOffset = kInstanceAttributesOffset + kIntSize; | 2885 static const int kPrototypeOffset = kInstanceAttributesOffset + kIntSize; |
2886 static const int kConstructorOffset = kPrototypeOffset + kPointerSize; | 2886 static const int kConstructorOffset = kPrototypeOffset + kPointerSize; |
2887 static const int kInstanceDescriptorsOffset = | 2887 static const int kInstanceDescriptorsOffset = |
2888 kConstructorOffset + kPointerSize; | 2888 kConstructorOffset + kPointerSize; |
2889 static const int kCodeCacheOffset = kInstanceDescriptorsOffset + kPointerSize; | 2889 static const int kCodeCacheOffset = kInstanceDescriptorsOffset + kPointerSize; |
2890 static const int kSize = kCodeCacheOffset + kPointerSize; | 2890 static const int kSize = kCodeCacheOffset + kPointerSize; |
2891 | 2891 |
2892 // Byte offsets within kInstanceSizesOffset. | 2892 // Byte offsets within kInstanceSizesOffset. |
2893 static const int kInstanceSizeOffset = kInstanceSizesOffset + 0; | 2893 static const int kInstanceSizeOffset = kInstanceSizesOffset + 0; |
2894 static const int kInObjectPropertiesOffset = kInstanceSizesOffset + 1; | 2894 static const int kInObjectPropertiesByte = 1; |
2895 static const int kPreAllocatedPropertyFieldsOffset = kInstanceSizesOffset + 2; | 2895 static const int kInObjectPropertiesOffset = |
| 2896 kInstanceSizesOffset + kInObjectPropertiesByte; |
| 2897 static const int kPreAllocatedPropertyFieldsByte = 2; |
| 2898 static const int kPreAllocatedPropertyFieldsOffset = |
| 2899 kInstanceSizesOffset + kPreAllocatedPropertyFieldsByte; |
2896 // The byte at position 3 is not in use at the moment. | 2900 // The byte at position 3 is not in use at the moment. |
2897 | 2901 |
2898 // Byte offsets within kInstanceAttributesOffset attributes. | 2902 // Byte offsets within kInstanceAttributesOffset attributes. |
2899 static const int kInstanceTypeOffset = kInstanceAttributesOffset + 0; | 2903 static const int kInstanceTypeOffset = kInstanceAttributesOffset + 0; |
2900 static const int kUnusedPropertyFieldsOffset = kInstanceAttributesOffset + 1; | 2904 static const int kUnusedPropertyFieldsOffset = kInstanceAttributesOffset + 1; |
2901 static const int kBitFieldOffset = kInstanceAttributesOffset + 2; | 2905 static const int kBitFieldOffset = kInstanceAttributesOffset + 2; |
2902 static const int kBitField2Offset = kInstanceAttributesOffset + 3; | 2906 static const int kBitField2Offset = kInstanceAttributesOffset + 3; |
2903 | 2907 |
2904 STATIC_CHECK(kInstanceTypeOffset == Internals::kMapInstanceTypeOffset); | 2908 STATIC_CHECK(kInstanceTypeOffset == Internals::kMapInstanceTypeOffset); |
2905 | 2909 |
(...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4853 } else { | 4857 } else { |
4854 value &= ~(1 << bit_position); | 4858 value &= ~(1 << bit_position); |
4855 } | 4859 } |
4856 return value; | 4860 return value; |
4857 } | 4861 } |
4858 }; | 4862 }; |
4859 | 4863 |
4860 } } // namespace v8::internal | 4864 } } // namespace v8::internal |
4861 | 4865 |
4862 #endif // V8_OBJECTS_H_ | 4866 #endif // V8_OBJECTS_H_ |
OLD | NEW |