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

Unified Diff: src/api.cc

Issue 13786002: [WIP] New GC related APIs. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: fixed Created 7 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 side-by-side diff with in-line comments
Download patch
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 3fab8de82fe3a50b7b089810a734b6f4e7369bf0..64a687c2f29f65dacf22c4412edbad3ec43cf6a5 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -5781,6 +5781,27 @@ void V8::AddObjectGroup(Isolate* exported_isolate,
}
+void V8::SetObjectGroupId(Isolate* exported_isolate,
+ const Persistent<Value>& object,
+ void* id) {
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(exported_isolate);
+ ASSERT(isolate == i::Isolate::Current());
+ if (IsDeadCheck(isolate, "v8::V8::SetObjectGroupId()")) return;
+ isolate->global_handles()->SetObjectGroupId(
+ reinterpret_cast<i::Object**>(*object), id);
+}
+
+
+void V8::SetRetainedObjectInfo(Isolate* exported_isolate,
+ void* id,
+ RetainedObjectInfo* info = NULL) {
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(exported_isolate);
+ ASSERT(isolate == i::Isolate::Current());
+ if (IsDeadCheck(isolate, "v8::V8::SetRetainedObjectInfo()")) return;
+ isolate->global_handles()->SetRetainedObjectInfo(id, info);
+}
+
+
void V8::AddImplicitReferences(Persistent<Object> parent,
Persistent<Value>* children,
size_t length) {

Powered by Google App Engine
This is Rietveld 408576698