| 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 3443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3454 static const int kHeapObjectMapOffset = 0; | 3454 static const int kHeapObjectMapOffset = 0; |
| 3455 static const int kMapInstanceTypeOffset = kApiPointerSize + kApiIntSize; | 3455 static const int kMapInstanceTypeOffset = kApiPointerSize + kApiIntSize; |
| 3456 static const int kStringResourceOffset = | 3456 static const int kStringResourceOffset = |
| 3457 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3457 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
| 3458 | 3458 |
| 3459 static const int kProxyProxyOffset = kApiPointerSize; | 3459 static const int kProxyProxyOffset = kApiPointerSize; |
| 3460 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3460 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 3461 static const int kFullStringRepresentationMask = 0x07; | 3461 static const int kFullStringRepresentationMask = 0x07; |
| 3462 static const int kExternalTwoByteRepresentationTag = 0x02; | 3462 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 3463 | 3463 |
| 3464 static const int kJSObjectType = 0xa0; | 3464 static const int kJSObjectType = 0xa1; |
| 3465 static const int kFirstNonstringType = 0x80; | 3465 static const int kFirstNonstringType = 0x80; |
| 3466 static const int kProxyType = 0x85; | 3466 static const int kProxyType = 0x85; |
| 3467 | 3467 |
| 3468 static inline bool HasHeapObjectTag(internal::Object* value) { | 3468 static inline bool HasHeapObjectTag(internal::Object* value) { |
| 3469 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3469 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
| 3470 kHeapObjectTag); | 3470 kHeapObjectTag); |
| 3471 } | 3471 } |
| 3472 | 3472 |
| 3473 static inline bool HasSmiTag(internal::Object* value) { | 3473 static inline bool HasSmiTag(internal::Object* value) { |
| 3474 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3474 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3855 | 3855 |
| 3856 | 3856 |
| 3857 } // namespace v8 | 3857 } // namespace v8 |
| 3858 | 3858 |
| 3859 | 3859 |
| 3860 #undef V8EXPORT | 3860 #undef V8EXPORT |
| 3861 #undef TYPE_CHECK | 3861 #undef TYPE_CHECK |
| 3862 | 3862 |
| 3863 | 3863 |
| 3864 #endif // V8_H_ | 3864 #endif // V8_H_ |
| OLD | NEW |