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 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 V8EXPORT void SetIndexedPropertiesToExternalArrayData( | 1600 V8EXPORT void SetIndexedPropertiesToExternalArrayData( |
1601 void* data, | 1601 void* data, |
1602 ExternalArrayType array_type, | 1602 ExternalArrayType array_type, |
1603 int number_of_elements); | 1603 int number_of_elements); |
1604 V8EXPORT bool HasIndexedPropertiesInExternalArrayData(); | 1604 V8EXPORT bool HasIndexedPropertiesInExternalArrayData(); |
1605 V8EXPORT void* GetIndexedPropertiesExternalArrayData(); | 1605 V8EXPORT void* GetIndexedPropertiesExternalArrayData(); |
1606 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); | 1606 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); |
1607 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); | 1607 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); |
1608 | 1608 |
1609 /** | 1609 /** |
| 1610 * Checks whether a callback is set by the |
| 1611 * ObjectTemplate::SetCallAsFunctionHandler method. |
| 1612 * When an Object is callable this method returns true. |
| 1613 */ |
| 1614 V8EXPORT bool IsCallable(); |
| 1615 |
| 1616 /** |
1610 * Call an Object as a function if a callback is set by the | 1617 * Call an Object as a function if a callback is set by the |
1611 * ObjectTemplate::SetCallAsFunctionHandler method. | 1618 * ObjectTemplate::SetCallAsFunctionHandler method. |
1612 */ | 1619 */ |
1613 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv, | 1620 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv, |
1614 int argc, | 1621 int argc, |
1615 Handle<Value> argv[]); | 1622 Handle<Value> argv[]); |
1616 | 1623 |
1617 /** | 1624 /** |
1618 * Call an Object as a consturctor if a callback is set by the | 1625 * Call an Object as a consturctor if a callback is set by the |
1619 * ObjectTemplate::SetCallAsFunctionHandler method. | 1626 * ObjectTemplate::SetCallAsFunctionHandler method. |
(...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4082 | 4089 |
4083 | 4090 |
4084 } // namespace v8 | 4091 } // namespace v8 |
4085 | 4092 |
4086 | 4093 |
4087 #undef V8EXPORT | 4094 #undef V8EXPORT |
4088 #undef TYPE_CHECK | 4095 #undef TYPE_CHECK |
4089 | 4096 |
4090 | 4097 |
4091 #endif // V8_H_ | 4098 #endif // V8_H_ |
OLD | NEW |