OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3762 static const int kHeapObjectMapOffset = 0; | 3762 static const int kHeapObjectMapOffset = 0; |
3763 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; | 3763 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
3764 static const int kStringResourceOffset = | 3764 static const int kStringResourceOffset = |
3765 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3765 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
3766 | 3766 |
3767 static const int kForeignAddressOffset = kApiPointerSize; | 3767 static const int kForeignAddressOffset = kApiPointerSize; |
3768 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3768 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
3769 static const int kFullStringRepresentationMask = 0x07; | 3769 static const int kFullStringRepresentationMask = 0x07; |
3770 static const int kExternalTwoByteRepresentationTag = 0x02; | 3770 static const int kExternalTwoByteRepresentationTag = 0x02; |
3771 | 3771 |
3772 static const int kJSObjectType = 0xa3; | 3772 static const int kJSObjectType = 0xa4; |
3773 static const int kFirstNonstringType = 0x80; | 3773 static const int kFirstNonstringType = 0x80; |
3774 static const int kForeignType = 0x85; | 3774 static const int kForeignType = 0x85; |
3775 | 3775 |
3776 static inline bool HasHeapObjectTag(internal::Object* value) { | 3776 static inline bool HasHeapObjectTag(internal::Object* value) { |
3777 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3777 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
3778 kHeapObjectTag); | 3778 kHeapObjectTag); |
3779 } | 3779 } |
3780 | 3780 |
3781 static inline bool HasSmiTag(internal::Object* value) { | 3781 static inline bool HasSmiTag(internal::Object* value) { |
3782 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3782 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4201 | 4201 |
4202 | 4202 |
4203 } // namespace v8 | 4203 } // namespace v8 |
4204 | 4204 |
4205 | 4205 |
4206 #undef V8EXPORT | 4206 #undef V8EXPORT |
4207 #undef TYPE_CHECK | 4207 #undef TYPE_CHECK |
4208 | 4208 |
4209 | 4209 |
4210 #endif // V8_H_ | 4210 #endif // V8_H_ |
OLD | NEW |