Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 26d2246aaea0c01ae2733b160961174834cb0058..9e77d31d17b11ebd258b89ba7a2031a723827007 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::AddImplicitReferences(Persistent<Object> parent, |
+ Persistent<Value>* children, |
+ size_t length) { |
+ if (IsDeadCheck("v8::V8::AddImplicitReferences()")) return; |
+ STATIC_ASSERT(sizeof(Persistent<Value>) == sizeof(i::Object**)); |
+ i::GlobalHandles::AddImplicitReferences( |
+ *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); |