| OLD | NEW |
| 1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 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 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3426 static const int kHeapObjectMapOffset = 0; | 3426 static const int kHeapObjectMapOffset = 0; |
| 3427 static const int kMapInstanceTypeOffset = kApiPointerSize + kApiIntSize; | 3427 static const int kMapInstanceTypeOffset = kApiPointerSize + kApiIntSize; |
| 3428 static const int kStringResourceOffset = | 3428 static const int kStringResourceOffset = |
| 3429 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3429 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
| 3430 | 3430 |
| 3431 static const int kProxyProxyOffset = kApiPointerSize; | 3431 static const int kProxyProxyOffset = kApiPointerSize; |
| 3432 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3432 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 3433 static const int kFullStringRepresentationMask = 0x07; | 3433 static const int kFullStringRepresentationMask = 0x07; |
| 3434 static const int kExternalTwoByteRepresentationTag = 0x02; | 3434 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 3435 | 3435 |
| 3436 static const int kJSObjectType = 0x9f; | 3436 static const int kJSObjectType = 0xa0; |
| 3437 static const int kFirstNonstringType = 0x80; | 3437 static const int kFirstNonstringType = 0x80; |
| 3438 static const int kProxyType = 0x85; | 3438 static const int kProxyType = 0x85; |
| 3439 | 3439 |
| 3440 static inline bool HasHeapObjectTag(internal::Object* value) { | 3440 static inline bool HasHeapObjectTag(internal::Object* value) { |
| 3441 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3441 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
| 3442 kHeapObjectTag); | 3442 kHeapObjectTag); |
| 3443 } | 3443 } |
| 3444 | 3444 |
| 3445 static inline bool HasSmiTag(internal::Object* value) { | 3445 static inline bool HasSmiTag(internal::Object* value) { |
| 3446 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3446 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3823 | 3823 |
| 3824 | 3824 |
| 3825 } // namespace v8 | 3825 } // namespace v8 |
| 3826 | 3826 |
| 3827 | 3827 |
| 3828 #undef V8EXPORT | 3828 #undef V8EXPORT |
| 3829 #undef TYPE_CHECK | 3829 #undef TYPE_CHECK |
| 3830 | 3830 |
| 3831 | 3831 |
| 3832 #endif // V8_H_ | 3832 #endif // V8_H_ |
| OLD | NEW |