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 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1438 }; | 1438 }; |
1439 | 1439 |
1440 enum ExternalArrayType { | 1440 enum ExternalArrayType { |
1441 kExternalByteArray = 1, | 1441 kExternalByteArray = 1, |
1442 kExternalUnsignedByteArray, | 1442 kExternalUnsignedByteArray, |
1443 kExternalShortArray, | 1443 kExternalShortArray, |
1444 kExternalUnsignedShortArray, | 1444 kExternalUnsignedShortArray, |
1445 kExternalIntArray, | 1445 kExternalIntArray, |
1446 kExternalUnsignedIntArray, | 1446 kExternalUnsignedIntArray, |
1447 kExternalFloatArray, | 1447 kExternalFloatArray, |
| 1448 kExternalDoubleArray, |
1448 kExternalPixelArray | 1449 kExternalPixelArray |
1449 }; | 1450 }; |
1450 | 1451 |
1451 /** | 1452 /** |
1452 * Accessor[Getter|Setter] are used as callback functions when | 1453 * Accessor[Getter|Setter] are used as callback functions when |
1453 * setting|getting a particular property. See Object and ObjectTemplate's | 1454 * setting|getting a particular property. See Object and ObjectTemplate's |
1454 * method SetAccessor. | 1455 * method SetAccessor. |
1455 */ | 1456 */ |
1456 typedef Handle<Value> (*AccessorGetter)(Local<String> property, | 1457 typedef Handle<Value> (*AccessorGetter)(Local<String> property, |
1457 const AccessorInfo& info); | 1458 const AccessorInfo& info); |
(...skipping 2119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3577 static const int kHeapObjectMapOffset = 0; | 3578 static const int kHeapObjectMapOffset = 0; |
3578 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; | 3579 static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSize; |
3579 static const int kStringResourceOffset = | 3580 static const int kStringResourceOffset = |
3580 InternalConstants<kApiPointerSize>::kStringResourceOffset; | 3581 InternalConstants<kApiPointerSize>::kStringResourceOffset; |
3581 | 3582 |
3582 static const int kProxyProxyOffset = kApiPointerSize; | 3583 static const int kProxyProxyOffset = kApiPointerSize; |
3583 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 3584 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
3584 static const int kFullStringRepresentationMask = 0x07; | 3585 static const int kFullStringRepresentationMask = 0x07; |
3585 static const int kExternalTwoByteRepresentationTag = 0x02; | 3586 static const int kExternalTwoByteRepresentationTag = 0x02; |
3586 | 3587 |
3587 static const int kJSObjectType = 0xa0; | 3588 static const int kJSObjectType = 0xa1; |
3588 static const int kFirstNonstringType = 0x80; | 3589 static const int kFirstNonstringType = 0x80; |
3589 static const int kProxyType = 0x85; | 3590 static const int kProxyType = 0x85; |
3590 | 3591 |
3591 static inline bool HasHeapObjectTag(internal::Object* value) { | 3592 static inline bool HasHeapObjectTag(internal::Object* value) { |
3592 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | 3593 return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == |
3593 kHeapObjectTag); | 3594 kHeapObjectTag); |
3594 } | 3595 } |
3595 | 3596 |
3596 static inline bool HasSmiTag(internal::Object* value) { | 3597 static inline bool HasSmiTag(internal::Object* value) { |
3597 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | 3598 return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3991 | 3992 |
3992 | 3993 |
3993 } // namespace v8 | 3994 } // namespace v8 |
3994 | 3995 |
3995 | 3996 |
3996 #undef V8EXPORT | 3997 #undef V8EXPORT |
3997 #undef TYPE_CHECK | 3998 #undef TYPE_CHECK |
3998 | 3999 |
3999 | 4000 |
4000 #endif // V8_H_ | 4001 #endif // V8_H_ |
OLD | NEW |