OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 6588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6599 enum EmbedderDataFields { kDebugIdIndex = 0 }; | 6599 enum EmbedderDataFields { kDebugIdIndex = 0 }; |
6600 | 6600 |
6601 /** | 6601 /** |
6602 * Gets the embedder data with the given index, which must have been set by a | 6602 * Gets the embedder data with the given index, which must have been set by a |
6603 * previous call to SetEmbedderData with the same index. Note that index 0 | 6603 * previous call to SetEmbedderData with the same index. Note that index 0 |
6604 * currently has a special meaning for Chrome's debugger. | 6604 * currently has a special meaning for Chrome's debugger. |
6605 */ | 6605 */ |
6606 V8_INLINE Local<Value> GetEmbedderData(int index); | 6606 V8_INLINE Local<Value> GetEmbedderData(int index); |
6607 | 6607 |
6608 /** | 6608 /** |
6609 * Gets the exports object used by V8 extras. Extra natives get a reference | 6609 * Gets the binding object used by V8 extras. Extra natives get a reference |
6610 * to this object and can use it to export functionality. | 6610 * to this object and can use it to "export" functionality by adding |
| 6611 * properties. Extra natives can also "import" functionality by accessing |
| 6612 * properties added by the embedder using the V8 API. |
6611 */ | 6613 */ |
6612 Local<Object> GetExtrasExportsObject(); | 6614 Local<Object> GetExtrasBindingObject(); |
6613 | 6615 |
6614 /** | 6616 /** |
6615 * Sets the embedder data with the given index, growing the data as | 6617 * Sets the embedder data with the given index, growing the data as |
6616 * needed. Note that index 0 currently has a special meaning for Chrome's | 6618 * needed. Note that index 0 currently has a special meaning for Chrome's |
6617 * debugger. | 6619 * debugger. |
6618 */ | 6620 */ |
6619 void SetEmbedderData(int index, Local<Value> value); | 6621 void SetEmbedderData(int index, Local<Value> value); |
6620 | 6622 |
6621 /** | 6623 /** |
6622 * Gets a 2-byte-aligned native pointer from the embedder data with the given | 6624 * Gets a 2-byte-aligned native pointer from the embedder data with the given |
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8317 */ | 8319 */ |
8318 | 8320 |
8319 | 8321 |
8320 } // namespace v8 | 8322 } // namespace v8 |
8321 | 8323 |
8322 | 8324 |
8323 #undef TYPE_CHECK | 8325 #undef TYPE_CHECK |
8324 | 8326 |
8325 | 8327 |
8326 #endif // V8_H_ | 8328 #endif // V8_H_ |
OLD | NEW |