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 3649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3660 static const int kHeapObjectMapOffset = 0; | 3660 static const int kHeapObjectMapOffset = 0; |
3661 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; | 3661 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
3662 static const int kStringResourceOffset = | 3662 static const int kStringResourceOffset = |
3663 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3663 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
3664 | 3664 |
3665 static const int kProxyProxyOffset = kApiPointerSize; | 3665 static const int kProxyProxyOffset = kApiPointerSize; |
3666 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3666 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
3667 static const int kFullStringRepresentationMask = 0x07; | 3667 static const int kFullStringRepresentationMask = 0x07; |
3668 static const int kExternalTwoByteRepresentationTag = 0x02; | 3668 static const int kExternalTwoByteRepresentationTag = 0x02; |
3669 | 3669 |
3670 static const int kJSObjectType = 0xa1; | 3670 static const int kJSObjectType = 0xa2; |
Kevin Millikin (Chromium)
2011/05/13 08:08:30
Wow, that's brittle.
rossberg
2011/05/13 09:21:53
Indeed, I honestly was shocked when I saw it.
| |
3671 static const int kFirstNonstringType = 0x80; | 3671 static const int kFirstNonstringType = 0x80; |
3672 static const int kProxyType = 0x85; | 3672 static const int kProxyType = 0x85; |
3673 | 3673 |
3674 static inline bool HasHeapObjectTag(internal::Object* value) { | 3674 static inline bool HasHeapObjectTag(internal::Object* value) { |
3675 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3675 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
3676 kHeapObjectTag); | 3676 kHeapObjectTag); |
3677 } | 3677 } |
3678 | 3678 |
3679 static inline bool HasSmiTag(internal::Object* value) { | 3679 static inline bool HasSmiTag(internal::Object* value) { |
3680 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3680 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4074 | 4074 |
4075 | 4075 |
4076 } // namespace v8 | 4076 } // namespace v8 |
4077 | 4077 |
4078 | 4078 |
4079 #undef V8EXPORT | 4079 #undef V8EXPORT |
4080 #undef TYPE_CHECK | 4080 #undef TYPE_CHECK |
4081 | 4081 |
4082 | 4082 |
4083 #endif // V8_H_ | 4083 #endif // V8_H_ |
OLD | NEW |