| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 2707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2718 static const int kMapInstanceTypeOffset = sizeof(void*) + sizeof(int); | 2718 static const int kMapInstanceTypeOffset = sizeof(void*) + sizeof(int); |
| 2719 static const int kStringResourceOffset = 2 * sizeof(void*); | 2719 static const int kStringResourceOffset = 2 * sizeof(void*); |
| 2720 static const int kProxyProxyOffset = sizeof(void*); | 2720 static const int kProxyProxyOffset = sizeof(void*); |
| 2721 static const int kJSObjectHeaderSize = 3 * sizeof(void*); | 2721 static const int kJSObjectHeaderSize = 3 * sizeof(void*); |
| 2722 static const int kFullStringRepresentationMask = 0x07; | 2722 static const int kFullStringRepresentationMask = 0x07; |
| 2723 static const int kExternalTwoByteRepresentationTag = 0x03; | 2723 static const int kExternalTwoByteRepresentationTag = 0x03; |
| 2724 static const int kAlignedPointerShift = 2; | 2724 static const int kAlignedPointerShift = 2; |
| 2725 | 2725 |
| 2726 // These constants are compiler dependent so their values must be | 2726 // These constants are compiler dependent so their values must be |
| 2727 // defined within the implementation. | 2727 // defined within the implementation. |
| 2728 static int kJSObjectType; | 2728 V8EXPORT static int kJSObjectType; |
| 2729 static int kFirstNonstringType; | 2729 V8EXPORT static int kFirstNonstringType; |
| 2730 static int kProxyType; | 2730 V8EXPORT static int kProxyType; |
| 2731 | 2731 |
| 2732 static inline bool HasHeapObjectTag(internal::Object* value) { | 2732 static inline bool HasHeapObjectTag(internal::Object* value) { |
| 2733 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 2733 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
| 2734 kHeapObjectTag); | 2734 kHeapObjectTag); |
| 2735 } | 2735 } |
| 2736 | 2736 |
| 2737 static inline bool HasSmiTag(internal::Object* value) { | 2737 static inline bool HasSmiTag(internal::Object* value) { |
| 2738 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 2738 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
| 2739 } | 2739 } |
| 2740 | 2740 |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 | 3080 |
| 3081 } // namespace v8 | 3081 } // namespace v8 |
| 3082 | 3082 |
| 3083 | 3083 |
| 3084 #undef V8EXPORT | 3084 #undef V8EXPORT |
| 3085 #undef V8EXPORT_INLINE | 3085 #undef V8EXPORT_INLINE |
| 3086 #undef TYPE_CHECK | 3086 #undef TYPE_CHECK |
| 3087 | 3087 |
| 3088 | 3088 |
| 3089 #endif // V8_H_ | 3089 #endif // V8_H_ |
| OLD | NEW |