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 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1606 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); | 1606 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); |
1607 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); | 1607 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); |
1608 | 1608 |
1609 /** | 1609 /** |
1610 * Call an Object as a function if a callback is set by the | 1610 * Call an Object as a function if a callback is set by the |
1611 * ObjectTemplate::SetCallAsFunctionHandler method. | 1611 * ObjectTemplate::SetCallAsFunctionHandler method. |
1612 */ | 1612 */ |
1613 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv, | 1613 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv, |
1614 int argc, | 1614 int argc, |
1615 Handle<Value> argv[]); | 1615 Handle<Value> argv[]); |
1616 /** | |
1617 * Call an Object as a consturctor if a callback is set by the | |
1618 * ObjectTemplate::SetCallAsFunctionHandler method. | |
1619 * Note: This method behaves like the Function::NewInstance method. | |
1620 */ | |
1621 V8EXPORT Local<Object> CallAsConstructor( | |
1622 int argc, | |
1623 Handle<Value> argv[]) const; | |
Mads Ager (chromium)
2011/05/05 09:03:33
I would remove the const here for consistency with
| |
1616 | 1624 |
1617 V8EXPORT static Local<Object> New(); | 1625 V8EXPORT static Local<Object> New(); |
1618 static inline Object* Cast(Value* obj); | 1626 static inline Object* Cast(Value* obj); |
1619 private: | 1627 private: |
1620 V8EXPORT Object(); | 1628 V8EXPORT Object(); |
1621 V8EXPORT static void CheckCast(Value* obj); | 1629 V8EXPORT static void CheckCast(Value* obj); |
1622 V8EXPORT Local<Value> CheckedGetInternalField(int index); | 1630 V8EXPORT Local<Value> CheckedGetInternalField(int index); |
1623 V8EXPORT void* SlowGetPointerFromInternalField(int index); | 1631 V8EXPORT void* SlowGetPointerFromInternalField(int index); |
1624 | 1632 |
1625 /** | 1633 /** |
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4063 | 4071 |
4064 | 4072 |
4065 } // namespace v8 | 4073 } // namespace v8 |
4066 | 4074 |
4067 | 4075 |
4068 #undef V8EXPORT | 4076 #undef V8EXPORT |
4069 #undef TYPE_CHECK | 4077 #undef TYPE_CHECK |
4070 | 4078 |
4071 | 4079 |
4072 #endif // V8_H_ | 4080 #endif // V8_H_ |
OLD | NEW |