Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 555af843168431b33f6891d9e0981c233160483b..49e1708e052100ecde4b4eb3d2c18d48d2650901 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3558,6 +3558,11 @@ void Context::ReattachGlobal(Handle<Object> global_object) { |
} |
+void V8::SetWrapperClassId(i::Object** global_handle, uint16_t class_id) { |
+ i::GlobalHandles::SetWrapperClassId(global_handle, class_id); |
+} |
+ |
+ |
Local<v8::Object> ObjectTemplate::NewInstance() { |
ON_BAILOUT("v8::ObjectTemplate::NewInstance()", return Local<v8::Object>()); |
LOG_API("ObjectTemplate::NewInstance"); |
@@ -4094,10 +4099,13 @@ void V8::SetFailedAccessCheckCallbackFunction( |
} |
-void V8::AddObjectGroup(Persistent<Value>* objects, size_t length) { |
+void V8::AddObjectGroup(Persistent<Value>* objects, |
+ size_t length, |
+ RetainedObjectInfo* info) { |
if (IsDeadCheck("v8::V8::AddObjectGroup()")) return; |
STATIC_ASSERT(sizeof(Persistent<Value>) == sizeof(i::Object**)); |
- i::GlobalHandles::AddGroup(reinterpret_cast<i::Object***>(objects), length); |
+ i::GlobalHandles::AddGroup( |
+ reinterpret_cast<i::Object***>(objects), length, info); |
} |
@@ -5043,6 +5051,12 @@ const HeapSnapshot* HeapProfiler::TakeSnapshot(Handle<String> title, |
*Utils::OpenHandle(*title), internal_type, control)); |
} |
+ |
+void HeapProfiler::DefineWrapperClass(uint16_t class_id, |
+ WrapperInfoCallback callback) { |
+ i::HeapProfiler::DefineWrapperClass(class_id, callback); |
+} |
+ |
#endif // ENABLE_LOGGING_AND_PROFILING |