| 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 3708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3719 static const int kHeapObjectMapOffset = 0; | 3719 static const int kHeapObjectMapOffset = 0; |
| 3720 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; | 3720 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
| 3721 static const int kStringResourceOffset = | 3721 static const int kStringResourceOffset = |
| 3722 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3722 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
| 3723 | 3723 |
| 3724 static const int kForeignAddressOffset = kApiPointerSize; | 3724 static const int kForeignAddressOffset = kApiPointerSize; |
| 3725 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3725 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 3726 static const int kFullStringRepresentationMask = 0x07; | 3726 static const int kFullStringRepresentationMask = 0x07; |
| 3727 static const int kExternalTwoByteRepresentationTag = 0x02; | 3727 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 3728 | 3728 |
| 3729 static const int kJSObjectType = 0xa2; | 3729 static const int kJSObjectType = 0xa3; |
| 3730 static const int kFirstNonstringType = 0x80; | 3730 static const int kFirstNonstringType = 0x80; |
| 3731 static const int kForeignType = 0x85; | 3731 static const int kForeignType = 0x85; |
| 3732 | 3732 |
| 3733 static inline bool HasHeapObjectTag(internal::Object* value) { | 3733 static inline bool HasHeapObjectTag(internal::Object* value) { |
| 3734 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3734 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
| 3735 kHeapObjectTag); | 3735 kHeapObjectTag); |
| 3736 } | 3736 } |
| 3737 | 3737 |
| 3738 static inline bool HasSmiTag(internal::Object* value) { | 3738 static inline bool HasSmiTag(internal::Object* value) { |
| 3739 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3739 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4138 | 4138 |
| 4139 | 4139 |
| 4140 } // namespace v8 | 4140 } // namespace v8 |
| 4141 | 4141 |
| 4142 | 4142 |
| 4143 #undef V8EXPORT | 4143 #undef V8EXPORT |
| 4144 #undef TYPE_CHECK | 4144 #undef TYPE_CHECK |
| 4145 | 4145 |
| 4146 | 4146 |
| 4147 #endif // V8_H_ | 4147 #endif // V8_H_ |
| OLD | NEW |