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

Unified Diff: src/api.cc

Issue 22384003: expose eternal handle api (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: added uninitialized constant Created 7 years, 4 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 | « include/v8.h ('k') | src/global-handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index c0f7a97f790a674dedff7013c5fa7bf5730a5be5..e04fbef23b4cf03407f49962df816a02ef6fe67f 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -676,6 +676,16 @@ void V8::DisposeGlobal(i::Object** obj) {
}
+int V8::Eternalize(i::Isolate* isolate, i::Object** handle) {
+ return isolate->eternal_handles()->Create(isolate, *handle);
+}
+
+
+i::Object** V8::GetEternal(i::Isolate* isolate, int index) {
+ return isolate->eternal_handles()->Get(index).location();
+}
+
+
// --- H a n d l e s ---
« no previous file with comments | « include/v8.h ('k') | src/global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698