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