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

Side by Side Diff: include/v8.h

Issue 2806303002: [debug,api] Do not use embedder field for debug context id. (Closed)
Patch Set: 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.
8302 * The value is propagated to the scripts compiled in given Context and
8303 * can be used for filtering scripts.
8304 */
8305 enum EmbedderDataFields { kDebugIdIndex = 0 };
jochen (gone - plz use gerrit) 2017/04/10 12:50:34 this won't work unless you first clean up blink
8306
8307 /**
8308 * Gets the embedder data with the given index, which must have been set by a 8301 * 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 8302 * previous call to SetEmbedderData with the same index.
8310 * currently has a special meaning for Chrome's debugger.
8311 */ 8303 */
8312 V8_INLINE Local<Value> GetEmbedderData(int index); 8304 V8_INLINE Local<Value> GetEmbedderData(int index);
8313 8305
8314 /** 8306 /**
8315 * Gets the binding object used by V8 extras. Extra natives get a reference 8307 * 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 8308 * to this object and can use it to "export" functionality by adding
8317 * properties. Extra natives can also "import" functionality by accessing 8309 * properties. Extra natives can also "import" functionality by accessing
8318 * properties added by the embedder using the V8 API. 8310 * properties added by the embedder using the V8 API.
8319 */ 8311 */
8320 Local<Object> GetExtrasBindingObject(); 8312 Local<Object> GetExtrasBindingObject();
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
10000 */ 9992 */
10001 9993
10002 9994
10003 } // namespace v8 9995 } // namespace v8
10004 9996
10005 9997
10006 #undef TYPE_CHECK 9998 #undef TYPE_CHECK
10007 9999
10008 10000
10009 #endif // INCLUDE_V8_H_ 10001 #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