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 6264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6275 static const int kInObjectPropertiesOffset = | 6275 static const int kInObjectPropertiesOffset = |
6276 kInstanceSizesOffset + kInObjectPropertiesByte; | 6276 kInstanceSizesOffset + kInObjectPropertiesByte; |
6277 static const int kPreAllocatedPropertyFieldsByte = 2; | 6277 static const int kPreAllocatedPropertyFieldsByte = 2; |
6278 static const int kPreAllocatedPropertyFieldsOffset = | 6278 static const int kPreAllocatedPropertyFieldsOffset = |
6279 kInstanceSizesOffset + kPreAllocatedPropertyFieldsByte; | 6279 kInstanceSizesOffset + kPreAllocatedPropertyFieldsByte; |
6280 static const int kVisitorIdByte = 3; | 6280 static const int kVisitorIdByte = 3; |
6281 static const int kVisitorIdOffset = kInstanceSizesOffset + kVisitorIdByte; | 6281 static const int kVisitorIdOffset = kInstanceSizesOffset + kVisitorIdByte; |
6282 | 6282 |
6283 // Byte offsets within kInstanceAttributesOffset attributes. | 6283 // Byte offsets within kInstanceAttributesOffset attributes. |
6284 static const int kInstanceTypeOffset = kInstanceAttributesOffset + 0; | 6284 static const int kInstanceTypeOffset = kInstanceAttributesOffset + 0; |
6285 static const int kUnusedPropertyFieldsOffset = kInstanceAttributesOffset + 1; | 6285 static const int kBitFieldOffset = kInstanceAttributesOffset + 1; |
6286 static const int kBitFieldOffset = kInstanceAttributesOffset + 2; | 6286 static const int kBitField2Offset = kInstanceAttributesOffset + 2; |
6287 static const int kBitField2Offset = kInstanceAttributesOffset + 3; | 6287 static const int kUnusedPropertyFieldsOffset = kInstanceAttributesOffset + 3; |
6288 | 6288 |
6289 STATIC_CHECK(kInstanceTypeOffset == Internals::kMapInstanceTypeOffset); | 6289 STATIC_CHECK(kInstanceTypeOffset == Internals::kMapInstanceTypeOffset); |
6290 | 6290 |
6291 // Bit positions for bit field. | 6291 // Bit positions for bit field. |
6292 static const int kUnused = 0; // To be used for marking recently used maps. | 6292 static const int kUnused = 0; // To be used for marking recently used maps. |
6293 static const int kHasNonInstancePrototype = 1; | 6293 static const int kHasNonInstancePrototype = 1; |
6294 static const int kIsHiddenPrototype = 2; | 6294 static const int kIsHiddenPrototype = 2; |
6295 static const int kHasNamedInterceptor = 3; | 6295 static const int kHasNamedInterceptor = 3; |
6296 static const int kHasIndexedInterceptor = 4; | 6296 static const int kHasIndexedInterceptor = 4; |
6297 static const int kIsUndetectable = 5; | 6297 static const int kIsUndetectable = 5; |
(...skipping 4319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10617 } else { | 10617 } else { |
10618 value &= ~(1 << bit_position); | 10618 value &= ~(1 << bit_position); |
10619 } | 10619 } |
10620 return value; | 10620 return value; |
10621 } | 10621 } |
10622 }; | 10622 }; |
10623 | 10623 |
10624 } } // namespace v8::internal | 10624 } } // namespace v8::internal |
10625 | 10625 |
10626 #endif // V8_OBJECTS_H_ | 10626 #endif // V8_OBJECTS_H_ |
OLD | NEW |