| 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 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 V8EXPORT Local<Object> Clone(); | 1629 V8EXPORT Local<Object> Clone(); |
| 1630 | 1630 |
| 1631 /** | 1631 /** |
| 1632 * Set the backing store of the indexed properties to be managed by the | 1632 * Set the backing store of the indexed properties to be managed by the |
| 1633 * embedding layer. Access to the indexed properties will follow the rules | 1633 * embedding layer. Access to the indexed properties will follow the rules |
| 1634 * spelled out in CanvasPixelArray. | 1634 * spelled out in CanvasPixelArray. |
| 1635 * Note: The embedding program still owns the data and needs to ensure that | 1635 * Note: The embedding program still owns the data and needs to ensure that |
| 1636 * the backing store is preserved while V8 has a reference. | 1636 * the backing store is preserved while V8 has a reference. |
| 1637 */ | 1637 */ |
| 1638 V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length); | 1638 V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length); |
| 1639 bool HasIndexedPropertiesInPixelData(); | 1639 V8EXPORT bool HasIndexedPropertiesInPixelData(); |
| 1640 uint8_t* GetIndexedPropertiesPixelData(); | 1640 V8EXPORT uint8_t* GetIndexedPropertiesPixelData(); |
| 1641 int GetIndexedPropertiesPixelDataLength(); | 1641 V8EXPORT int GetIndexedPropertiesPixelDataLength(); |
| 1642 | 1642 |
| 1643 /** | 1643 /** |
| 1644 * Set the backing store of the indexed properties to be managed by the | 1644 * Set the backing store of the indexed properties to be managed by the |
| 1645 * embedding layer. Access to the indexed properties will follow the rules | 1645 * embedding layer. Access to the indexed properties will follow the rules |
| 1646 * spelled out for the CanvasArray subtypes in the WebGL specification. | 1646 * spelled out for the CanvasArray subtypes in the WebGL specification. |
| 1647 * Note: The embedding program still owns the data and needs to ensure that | 1647 * Note: The embedding program still owns the data and needs to ensure that |
| 1648 * the backing store is preserved while V8 has a reference. | 1648 * the backing store is preserved while V8 has a reference. |
| 1649 */ | 1649 */ |
| 1650 V8EXPORT void SetIndexedPropertiesToExternalArrayData( | 1650 V8EXPORT void SetIndexedPropertiesToExternalArrayData( |
| 1651 void* data, | 1651 void* data, |
| 1652 ExternalArrayType array_type, | 1652 ExternalArrayType array_type, |
| 1653 int number_of_elements); | 1653 int number_of_elements); |
| 1654 bool HasIndexedPropertiesInExternalArrayData(); | 1654 V8EXPORT bool HasIndexedPropertiesInExternalArrayData(); |
| 1655 void* GetIndexedPropertiesExternalArrayData(); | 1655 V8EXPORT void* GetIndexedPropertiesExternalArrayData(); |
| 1656 ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); | 1656 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); |
| 1657 int GetIndexedPropertiesExternalArrayDataLength(); | 1657 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); |
| 1658 | 1658 |
| 1659 V8EXPORT static Local<Object> New(); | 1659 V8EXPORT static Local<Object> New(); |
| 1660 static inline Object* Cast(Value* obj); | 1660 static inline Object* Cast(Value* obj); |
| 1661 private: | 1661 private: |
| 1662 V8EXPORT Object(); | 1662 V8EXPORT Object(); |
| 1663 V8EXPORT static void CheckCast(Value* obj); | 1663 V8EXPORT static void CheckCast(Value* obj); |
| 1664 V8EXPORT Local<Value> CheckedGetInternalField(int index); | 1664 V8EXPORT Local<Value> CheckedGetInternalField(int index); |
| 1665 V8EXPORT void* SlowGetPointerFromInternalField(int index); | 1665 V8EXPORT void* SlowGetPointerFromInternalField(int index); |
| 1666 | 1666 |
| 1667 /** | 1667 /** |
| (...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3767 | 3767 |
| 3768 | 3768 |
| 3769 } // namespace v8 | 3769 } // namespace v8 |
| 3770 | 3770 |
| 3771 | 3771 |
| 3772 #undef V8EXPORT | 3772 #undef V8EXPORT |
| 3773 #undef TYPE_CHECK | 3773 #undef TYPE_CHECK |
| 3774 | 3774 |
| 3775 | 3775 |
| 3776 #endif // V8_H_ | 3776 #endif // V8_H_ |
| OLD | NEW |