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

Unified Diff: include/v8.h

Issue 2107673003: Add an API to create a detached global object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 6 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/api-natives.cc » ('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 7aad48b4daf2b78f26b8691f55061e478c925f8a..bb79a920f4ecb15c31557ce6c9196e68f19f49d3 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -7152,6 +7152,14 @@ class V8_EXPORT Context {
Local<Value> global_object = Local<Value>());
/**
+ * Returns an detached global that can be passed into Context::New.
+ *
+ * The global template needs to have access checks with handlers installed.
+ */
+ static Local<Object> NewDetachedGlobal(Isolate* isolate,
+ Local<ObjectTemplate> global_template);
dcheng 2016/06/28 15:23:53 Will there be an alternate way of creating a conte
jochen (gone - plz use gerrit) 2016/06/28 15:26:02 there will be a separate api for location
+
+ /**
* Sets the security token for the context. To access an object in
* another context, the security tokens must match.
*/
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api-natives.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698