Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 26d2246aaea0c01ae2733b160961174834cb0058..9ba10c051ce1cc7da49b0cb87f194a10bb6ff35e 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4126,11 +4126,22 @@ void V8::AddObjectGroup(Persistent<Value>* objects, |
RetainedObjectInfo* info) { |
if (IsDeadCheck("v8::V8::AddObjectGroup()")) return; |
STATIC_ASSERT(sizeof(Persistent<Value>) == sizeof(i::Object**)); |
- i::GlobalHandles::AddGroup( |
+ i::GlobalHandles::AddObjectGroup( |
reinterpret_cast<i::Object***>(objects), length, info); |
} |
+void V8::AddImplicitRefGroup(Persistent<Object> parent, |
+ Persistent<Value>* children, |
+ size_t length) { |
+ if (IsDeadCheck("v8::V8::AddImplicitRefGroup()")) return; |
+ STATIC_ASSERT(sizeof(Persistent<Value>) == sizeof(i::Object**)); |
+ i::GlobalHandles::AddImplicitRefGroup( |
+ *Utils::OpenHandle(*parent), |
+ reinterpret_cast<i::Object***>(children), length); |
+} |
+ |
+ |
int V8::AdjustAmountOfExternalAllocatedMemory(int change_in_bytes) { |
if (IsDeadCheck("v8::V8::AdjustAmountOfExternalAllocatedMemory()")) return 0; |
return i::Heap::AdjustAmountOfExternalAllocatedMemory(change_in_bytes); |