| 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 3664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3675 static const int kHeapObjectMapOffset = 0; | 3675 static const int kHeapObjectMapOffset = 0; |
| 3676 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; | 3676 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
| 3677 static const int kStringResourceOffset = | 3677 static const int kStringResourceOffset = |
| 3678 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3678 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
| 3679 | 3679 |
| 3680 static const int kProxyProxyOffset = kApiPointerSize; | 3680 static const int kProxyProxyOffset = kApiPointerSize; |
| 3681 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3681 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 3682 static const int kFullStringRepresentationMask = 0x07; | 3682 static const int kFullStringRepresentationMask = 0x07; |
| 3683 static const int kExternalTwoByteRepresentationTag = 0x02; | 3683 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 3684 | 3684 |
| 3685 static const int kJSObjectType = 0xa1; | 3685 static const int kJSObjectType = 0xa2; |
| 3686 static const int kFirstNonstringType = 0x80; | 3686 static const int kFirstNonstringType = 0x80; |
| 3687 static const int kProxyType = 0x85; | 3687 static const int kProxyType = 0x85; |
| 3688 | 3688 |
| 3689 static inline bool HasHeapObjectTag(internal::Object* value) { | 3689 static inline bool HasHeapObjectTag(internal::Object* value) { |
| 3690 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3690 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
| 3691 kHeapObjectTag); | 3691 kHeapObjectTag); |
| 3692 } | 3692 } |
| 3693 | 3693 |
| 3694 static inline bool HasSmiTag(internal::Object* value) { | 3694 static inline bool HasSmiTag(internal::Object* value) { |
| 3695 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3695 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4089 | 4089 |
| 4090 | 4090 |
| 4091 } // namespace v8 | 4091 } // namespace v8 |
| 4092 | 4092 |
| 4093 | 4093 |
| 4094 #undef V8EXPORT | 4094 #undef V8EXPORT |
| 4095 #undef TYPE_CHECK | 4095 #undef TYPE_CHECK |
| 4096 | 4096 |
| 4097 | 4097 |
| 4098 #endif // V8_H_ | 4098 #endif // V8_H_ |
| OLD | NEW |