| 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 3798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3809 static const int kHeapObjectMapOffset = 0; | 3809 static const int kHeapObjectMapOffset = 0; |
| 3810 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; | 3810 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
| 3811 static const int kStringResourceOffset = | 3811 static const int kStringResourceOffset = |
| 3812 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3812 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
| 3813 | 3813 |
| 3814 static const int kForeignAddressOffset = kApiPointerSize; | 3814 static const int kForeignAddressOffset = kApiPointerSize; |
| 3815 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3815 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 3816 static const int kFullStringRepresentationMask = 0x07; | 3816 static const int kFullStringRepresentationMask = 0x07; |
| 3817 static const int kExternalTwoByteRepresentationTag = 0x02; | 3817 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 3818 | 3818 |
| 3819 static const int kJSObjectType = 0xa6; | 3819 static const int kJSObjectType = 0xa7; |
| 3820 static const int kFirstNonstringType = 0x80; | 3820 static const int kFirstNonstringType = 0x80; |
| 3821 static const int kForeignType = 0x85; | 3821 static const int kForeignType = 0x85; |
| 3822 | 3822 |
| 3823 static inline bool HasHeapObjectTag(internal::Object* value) { | 3823 static inline bool HasHeapObjectTag(internal::Object* value) { |
| 3824 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3824 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
| 3825 kHeapObjectTag); | 3825 kHeapObjectTag); |
| 3826 } | 3826 } |
| 3827 | 3827 |
| 3828 static inline bool HasSmiTag(internal::Object* value) { | 3828 static inline bool HasSmiTag(internal::Object* value) { |
| 3829 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3829 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4248 | 4248 |
| 4249 | 4249 |
| 4250 } // namespace v8 | 4250 } // namespace v8 |
| 4251 | 4251 |
| 4252 | 4252 |
| 4253 #undef V8EXPORT | 4253 #undef V8EXPORT |
| 4254 #undef TYPE_CHECK | 4254 #undef TYPE_CHECK |
| 4255 | 4255 |
| 4256 | 4256 |
| 4257 #endif // V8_H_ | 4257 #endif // V8_H_ |
| OLD | NEW |