Index: Source/bindings/v8/V8GCController.cpp |
diff --git a/Source/bindings/v8/V8GCController.cpp b/Source/bindings/v8/V8GCController.cpp |
index 14779ed5953c2c0ee2f87ea2e907b989f0b888b9..483d6480c733435afe8ee098cce49b29528bc2b1 100644 |
--- a/Source/bindings/v8/V8GCController.cpp |
+++ b/Source/bindings/v8/V8GCController.cpp |
@@ -284,8 +284,8 @@ public: |
m_groupsWhichNeedRetainerInfo.append(root); |
} else if (classId == v8DOMObjectClassId) { |
ASSERT(!value->IsIndependent()); |
- void* root = type->opaqueRootForGC(object, m_isolate); |
- m_isolate->SetObjectGroupId(*value, v8::UniqueId(reinterpret_cast<intptr_t>(root))); |
+ v8::Persistent<v8::Object>* wrapperPersistent = reinterpret_cast<v8::Persistent<v8::Object>*>(value); |
+ type->resolveWrapperReachability(object, *wrapperPersistent, m_isolate); |
} else { |
ASSERT_NOT_REACHED(); |
} |