Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: include/v8.h

Issue 1128113006: Add the concept of a V8 extras exports object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Was mising test-extra.js :( Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/standalone.gypi ('k') | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 /**
6374 * Sets the embedder data with the given index, growing the data as 6380 * Sets the embedder data with the given index, growing the data as
6375 * needed. Note that index 0 currently has a special meaning for Chrome's 6381 * needed. Note that index 0 currently has a special meaning for Chrome's
6376 * debugger. 6382 * debugger.
6377 */ 6383 */
6378 void SetEmbedderData(int index, Handle<Value> value); 6384 void SetEmbedderData(int index, Handle<Value> value);
6379 6385
6380 /** 6386 /**
6381 * Gets a 2-byte-aligned native pointer from the embedder data with the given 6387 * Gets a 2-byte-aligned native pointer from the embedder data with the given
6382 * index, which must have bees set by a previous call to 6388 * index, which must have bees set by a previous call to
6383 * SetAlignedPointerInEmbedderData with the same index. Note that index 0 6389 * SetAlignedPointerInEmbedderData with the same index. Note that index 0
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
8021 */ 8027 */
8022 8028
8023 8029
8024 } // namespace v8 8030 } // namespace v8
8025 8031
8026 8032
8027 #undef TYPE_CHECK 8033 #undef TYPE_CHECK
8028 8034
8029 8035
8030 #endif // V8_H_ 8036 #endif // V8_H_
OLDNEW
« no previous file with comments | « build/standalone.gypi ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698