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

Side by Side Diff: include/v8.h

Issue 1020453002: Introduce explicit constant for per Context debug data set by embedder (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/compiler.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 6237 matching lines...) Expand 10 before | Expand all | Expand 10 after
6248 /** 6248 /**
6249 * Exit this context. Exiting the current context restores the 6249 * Exit this context. Exiting the current context restores the
6250 * context that was in place when entering the current context. 6250 * context that was in place when entering the current context.
6251 */ 6251 */
6252 void Exit(); 6252 void Exit();
6253 6253
6254 /** Returns an isolate associated with a current context. */ 6254 /** Returns an isolate associated with a current context. */
6255 v8::Isolate* GetIsolate(); 6255 v8::Isolate* GetIsolate();
6256 6256
6257 /** 6257 /**
6258 * The field at kDebugIdIndex is reserved for V8 debugger implementation.
6259 * The value is propagated to the scripts compiled in given Context and
6260 * can be used for filtering scripts.
6261 */
6262 enum EmbedderDataFields { kDebugIdIndex = 0 };
6263
6264 /**
6258 * Gets the embedder data with the given index, which must have been set by a 6265 * Gets the embedder data with the given index, which must have been set by a
6259 * previous call to SetEmbedderData with the same index. Note that index 0 6266 * previous call to SetEmbedderData with the same index. Note that index 0
6260 * currently has a special meaning for Chrome's debugger. 6267 * currently has a special meaning for Chrome's debugger.
6261 */ 6268 */
6262 V8_INLINE Local<Value> GetEmbedderData(int index); 6269 V8_INLINE Local<Value> GetEmbedderData(int index);
6263 6270
6264 /** 6271 /**
6265 * Sets the embedder data with the given index, growing the data as 6272 * Sets the embedder data with the given index, growing the data as
6266 * needed. Note that index 0 currently has a special meaning for Chrome's 6273 * needed. Note that index 0 currently has a special meaning for Chrome's
6267 * debugger. 6274 * debugger.
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
7916 */ 7923 */
7917 7924
7918 7925
7919 } // namespace v8 7926 } // namespace v8
7920 7927
7921 7928
7922 #undef TYPE_CHECK 7929 #undef TYPE_CHECK
7923 7930
7924 7931
7925 #endif // V8_H_ 7932 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698