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

Side by Side Diff: include/v8.h

Issue 2806303002: [debug,api] Do not use embedder field for debug context id. (Closed)
Patch Set: restore enum Created 3 years, 8 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 | « no previous file | 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 8280 matching lines...) Expand 10 before | Expand all | Expand 10 after
8291 /** 8291 /**
8292 * Exit this context. Exiting the current context restores the 8292 * Exit this context. Exiting the current context restores the
8293 * context that was in place when entering the current context. 8293 * context that was in place when entering the current context.
8294 */ 8294 */
8295 void Exit(); 8295 void Exit();
8296 8296
8297 /** Returns an isolate associated with a current context. */ 8297 /** Returns an isolate associated with a current context. */
8298 Isolate* GetIsolate(); 8298 Isolate* GetIsolate();
8299 8299
8300 /** 8300 /**
8301 * The field at kDebugIdIndex is reserved for V8 debugger implementation. 8301 * The field at kDebugIdIndex used to be reserved for the inspector.
8302 * The value is propagated to the scripts compiled in given Context and 8302 * It now serves no purpose.
8303 * can be used for filtering scripts.
8304 */ 8303 */
8305 enum EmbedderDataFields { kDebugIdIndex = 0 }; 8304 enum EmbedderDataFields { kDebugIdIndex = 0 };
8306 8305
8307 /** 8306 /**
8308 * Gets the embedder data with the given index, which must have been set by a 8307 * Gets the embedder data with the given index, which must have been set by a
8309 * previous call to SetEmbedderData with the same index. Note that index 0 8308 * previous call to SetEmbedderData with the same index.
8310 * currently has a special meaning for Chrome's debugger.
8311 */ 8309 */
8312 V8_INLINE Local<Value> GetEmbedderData(int index); 8310 V8_INLINE Local<Value> GetEmbedderData(int index);
8313 8311
8314 /** 8312 /**
8315 * Gets the binding object used by V8 extras. Extra natives get a reference 8313 * Gets the binding object used by V8 extras. Extra natives get a reference
8316 * to this object and can use it to "export" functionality by adding 8314 * to this object and can use it to "export" functionality by adding
8317 * properties. Extra natives can also "import" functionality by accessing 8315 * properties. Extra natives can also "import" functionality by accessing
8318 * properties added by the embedder using the V8 API. 8316 * properties added by the embedder using the V8 API.
8319 */ 8317 */
8320 Local<Object> GetExtrasBindingObject(); 8318 Local<Object> GetExtrasBindingObject();
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
10000 */ 9998 */
10001 9999
10002 10000
10003 } // namespace v8 10001 } // namespace v8
10004 10002
10005 10003
10006 #undef TYPE_CHECK 10004 #undef TYPE_CHECK
10007 10005
10008 10006
10009 #endif // INCLUDE_V8_H_ 10007 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698