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 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1649 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); | 1649 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); |
1650 | 1650 |
1651 /** | 1651 /** |
1652 * Checks whether a callback is set by the | 1652 * Checks whether a callback is set by the |
1653 * ObjectTemplate::SetCallAsFunctionHandler method. | 1653 * ObjectTemplate::SetCallAsFunctionHandler method. |
1654 * When an Object is callable this method returns true. | 1654 * When an Object is callable this method returns true. |
1655 */ | 1655 */ |
1656 V8EXPORT bool IsCallable(); | 1656 V8EXPORT bool IsCallable(); |
1657 | 1657 |
1658 /** | 1658 /** |
1659 * Call an Object as a function if a callback is set by the | 1659 * Call an Object as a function if a callback is set by the |
1660 * ObjectTemplate::SetCallAsFunctionHandler method. | 1660 * ObjectTemplate::SetCallAsFunctionHandler method. |
1661 */ | 1661 */ |
1662 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv, | 1662 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv, |
1663 int argc, | 1663 int argc, |
1664 Handle<Value> argv[]); | 1664 Handle<Value> argv[]); |
1665 | 1665 |
1666 /** | 1666 /** |
1667 * Call an Object as a constructor if a callback is set by the | 1667 * Call an Object as a constructor if a callback is set by the |
1668 * ObjectTemplate::SetCallAsFunctionHandler method. | 1668 * ObjectTemplate::SetCallAsFunctionHandler method. |
1669 * Note: This method behaves like the Function::NewInstance method. | 1669 * Note: This method behaves like the Function::NewInstance method. |
(...skipping 1885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3555 * // V8 not locked. | 3555 * // V8 not locked. |
3556 * } | 3556 * } |
3557 * isolate->Enter(); | 3557 * isolate->Enter(); |
3558 * // V8 locked again (2 levels). | 3558 * // V8 locked again (2 levels). |
3559 * } | 3559 * } |
3560 * // V8 still locked (1 level). | 3560 * // V8 still locked (1 level). |
3561 * } | 3561 * } |
3562 * // V8 Now no longer locked. | 3562 * // V8 Now no longer locked. |
3563 * \endcode | 3563 * \endcode |
3564 * | 3564 * |
3565 * | 3565 * |
3566 */ | 3566 */ |
3567 class V8EXPORT Unlocker { | 3567 class V8EXPORT Unlocker { |
3568 public: | 3568 public: |
3569 /** | 3569 /** |
3570 * Initialize Unlocker for a given Isolate. NULL means default isolate. | 3570 * Initialize Unlocker for a given Isolate. NULL means default isolate. |
3571 */ | 3571 */ |
3572 explicit Unlocker(Isolate* isolate = NULL); | 3572 explicit Unlocker(Isolate* isolate = NULL); |
3573 ~Unlocker(); | 3573 ~Unlocker(); |
3574 private: | 3574 private: |
3575 internal::Isolate* isolate_; | 3575 internal::Isolate* isolate_; |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4198 | 4198 |
4199 | 4199 |
4200 } // namespace v8 | 4200 } // namespace v8 |
4201 | 4201 |
4202 | 4202 |
4203 #undef V8EXPORT | 4203 #undef V8EXPORT |
4204 #undef TYPE_CHECK | 4204 #undef TYPE_CHECK |
4205 | 4205 |
4206 | 4206 |
4207 #endif // V8_H_ | 4207 #endif // V8_H_ |
OLD | NEW |