Index: include/v8-util.h |
diff --git a/include/v8-util.h b/include/v8-util.h |
index 99c59fe302963daa19ad46b513feb1cf2f5819ed..8133fdd49dcf4fac4e340997e4cac21c7db70806 100644 |
--- a/include/v8-util.h |
+++ b/include/v8-util.h |
@@ -206,19 +206,14 @@ class PersistentValueMapBase { |
} |
/** |
- * Deprecated. Call V8::RegisterExternallyReferencedObject with the map value |
- * for given key. |
- * TODO(hlopko) Remove once migration to reporter is finished. |
+ * Call V8::RegisterExternallyReferencedObject with the map value for given |
+ * key. |
*/ |
- void RegisterExternallyReferencedObject(K& key) {} |
- |
- /** |
- * Use EmbedderReachableReferenceReporter with the map value for given key. |
- */ |
- void RegisterExternallyReferencedObject( |
- EmbedderReachableReferenceReporter* reporter, K& key) { |
+ void RegisterExternallyReferencedObject(K& key) { |
DCHECK(Contains(key)); |
- reporter->ReportExternalReference(FromVal(Traits::Get(&impl_, key))); |
+ V8::RegisterExternallyReferencedObject( |
+ reinterpret_cast<internal::Object**>(FromVal(Traits::Get(&impl_, key))), |
+ reinterpret_cast<internal::Isolate*>(GetIsolate())); |
} |
/** |