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

Unified Diff: include/v8.h

Issue 6975020: Per-isolate embedder-specific data (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added missing file Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/isolate.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 411c2f1169dd0051159e338e4634860a536afd72..fce50fc73ba0beeafd3ed08ae4d613aac23c96ce 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2670,6 +2670,17 @@ class V8EXPORT Isolate {
*/
void Dispose();
+ /**
+ * Associate embedder-specific data with the isolate
+ */
+ void SetData(void* data);
+
+ /**
+ * Retrive embedder-specific data from the isolate.
+ * Returns NULL if SetData has never been called.
+ */
+ void* GetData();
+
private:
Isolate();
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/isolate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698