Chromium Code Reviews| 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 3832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3843 static const int kHeapObjectMapOffset = 0; | 3843 static const int kHeapObjectMapOffset = 0; |
| 3844 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; | 3844 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
| 3845 static const int kStringResourceOffset = | 3845 static const int kStringResourceOffset = |
| 3846 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3846 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
| 3847 | 3847 |
| 3848 static const int kForeignAddressOffset = kApiPointerSize; | 3848 static const int kForeignAddressOffset = kApiPointerSize; |
| 3849 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3849 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 3850 static const int kFullStringRepresentationMask = 0x07; | 3850 static const int kFullStringRepresentationMask = 0x07; |
| 3851 static const int kExternalTwoByteRepresentationTag = 0x02; | 3851 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 3852 | 3852 |
| 3853 static const int kJSObjectType = 0xa8; | 3853 static const int kJSObjectType = 0xa9; |
|
rossberg
2012/02/24 13:51:05
I love this...
Michael Starzinger
2012/02/24 14:36:41
Me too ...
| |
| 3854 static const int kFirstNonstringType = 0x80; | 3854 static const int kFirstNonstringType = 0x80; |
| 3855 static const int kForeignType = 0x85; | 3855 static const int kForeignType = 0x85; |
| 3856 | 3856 |
| 3857 static inline bool HasHeapObjectTag(internal::Object* value) { | 3857 static inline bool HasHeapObjectTag(internal::Object* value) { |
| 3858 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3858 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
| 3859 kHeapObjectTag); | 3859 kHeapObjectTag); |
| 3860 } | 3860 } |
| 3861 | 3861 |
| 3862 static inline bool HasSmiTag(internal::Object* value) { | 3862 static inline bool HasSmiTag(internal::Object* value) { |
| 3863 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3863 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4282 | 4282 |
| 4283 | 4283 |
| 4284 } // namespace v8 | 4284 } // namespace v8 |
| 4285 | 4285 |
| 4286 | 4286 |
| 4287 #undef V8EXPORT | 4287 #undef V8EXPORT |
| 4288 #undef TYPE_CHECK | 4288 #undef TYPE_CHECK |
| 4289 | 4289 |
| 4290 | 4290 |
| 4291 #endif // V8_H_ | 4291 #endif // V8_H_ |
| OLD | NEW |