| 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 3818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3829 static const int kHeapObjectMapOffset = 0; | 3829 static const int kHeapObjectMapOffset = 0; |
| 3830 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; | 3830 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
| 3831 static const int kStringResourceOffset = | 3831 static const int kStringResourceOffset = |
| 3832 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3832 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
| 3833 | 3833 |
| 3834 static const int kForeignAddressOffset = kApiPointerSize; | 3834 static const int kForeignAddressOffset = kApiPointerSize; |
| 3835 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3835 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 3836 static const int kFullStringRepresentationMask = 0x07; | 3836 static const int kFullStringRepresentationMask = 0x07; |
| 3837 static const int kExternalTwoByteRepresentationTag = 0x02; | 3837 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 3838 | 3838 |
| 3839 static const int kJSObjectType = 0xa7; | 3839 static const int kJSObjectType = 0xa8; |
| 3840 static const int kFirstNonstringType = 0x80; | 3840 static const int kFirstNonstringType = 0x80; |
| 3841 static const int kForeignType = 0x85; | 3841 static const int kForeignType = 0x85; |
| 3842 | 3842 |
| 3843 static inline bool HasHeapObjectTag(internal::Object* value) { | 3843 static inline bool HasHeapObjectTag(internal::Object* value) { |
| 3844 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3844 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
| 3845 kHeapObjectTag); | 3845 kHeapObjectTag); |
| 3846 } | 3846 } |
| 3847 | 3847 |
| 3848 static inline bool HasSmiTag(internal::Object* value) { | 3848 static inline bool HasSmiTag(internal::Object* value) { |
| 3849 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3849 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4268 | 4268 |
| 4269 | 4269 |
| 4270 } // namespace v8 | 4270 } // namespace v8 |
| 4271 | 4271 |
| 4272 | 4272 |
| 4273 #undef V8EXPORT | 4273 #undef V8EXPORT |
| 4274 #undef TYPE_CHECK | 4274 #undef TYPE_CHECK |
| 4275 | 4275 |
| 4276 | 4276 |
| 4277 #endif // V8_H_ | 4277 #endif // V8_H_ |
| OLD | NEW |