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 6354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6365 enum EmbedderDataFields { kDebugIdIndex = 0 }; | 6365 enum EmbedderDataFields { kDebugIdIndex = 0 }; |
6366 | 6366 |
6367 /** | 6367 /** |
6368 * Gets the embedder data with the given index, which must have been set by a | 6368 * Gets the embedder data with the given index, which must have been set by a |
6369 * previous call to SetEmbedderData with the same index. Note that index 0 | 6369 * previous call to SetEmbedderData with the same index. Note that index 0 |
6370 * currently has a special meaning for Chrome's debugger. | 6370 * currently has a special meaning for Chrome's debugger. |
6371 */ | 6371 */ |
6372 V8_INLINE Local<Value> GetEmbedderData(int index); | 6372 V8_INLINE Local<Value> GetEmbedderData(int index); |
6373 | 6373 |
6374 /** | 6374 /** |
| 6375 * Gets the exports object used by V8 extras. Extra natives get a reference |
| 6376 * to this object and can use it to export functionality. |
| 6377 */ |
| 6378 Local<Object> GetExtrasExportsObject(); |
| 6379 |
| 6380 /** |
6375 * Sets the embedder data with the given index, growing the data as | 6381 * Sets the embedder data with the given index, growing the data as |
6376 * needed. Note that index 0 currently has a special meaning for Chrome's | 6382 * needed. Note that index 0 currently has a special meaning for Chrome's |
6377 * debugger. | 6383 * debugger. |
6378 */ | 6384 */ |
6379 void SetEmbedderData(int index, Handle<Value> value); | 6385 void SetEmbedderData(int index, Handle<Value> value); |
6380 | 6386 |
6381 /** | 6387 /** |
6382 * Gets a 2-byte-aligned native pointer from the embedder data with the given | 6388 * Gets a 2-byte-aligned native pointer from the embedder data with the given |
6383 * index, which must have bees set by a previous call to | 6389 * index, which must have bees set by a previous call to |
6384 * SetAlignedPointerInEmbedderData with the same index. Note that index 0 | 6390 * SetAlignedPointerInEmbedderData with the same index. Note that index 0 |
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8024 */ | 8030 */ |
8025 | 8031 |
8026 | 8032 |
8027 } // namespace v8 | 8033 } // namespace v8 |
8028 | 8034 |
8029 | 8035 |
8030 #undef TYPE_CHECK | 8036 #undef TYPE_CHECK |
8031 | 8037 |
8032 | 8038 |
8033 #endif // V8_H_ | 8039 #endif // V8_H_ |
OLD | NEW |