| Index: third_party/WebKit/Source/platform/heap/Visitor.h | 
| diff --git a/third_party/WebKit/Source/platform/heap/Visitor.h b/third_party/WebKit/Source/platform/heap/Visitor.h | 
| index 7006d970b70811b3471da11998e0f88b2db6fc5b..0e16930bfb5b244ca4138ddf71d3cc1fc474ef4c 100644 | 
| --- a/third_party/WebKit/Source/platform/heap/Visitor.h | 
| +++ b/third_party/WebKit/Source/platform/heap/Visitor.h | 
| @@ -280,16 +280,18 @@ class VisitorHelper { | 
| Derived::fromHelper(this)->registerWeakMembers(object, object, callback); | 
| } | 
|  | 
| -  template <typename T> | 
| -  void registerBackingStoreReference(T** slot) { | 
| +  void registerBackingStoreReference(void* slot) { | 
| +    if (getMarkingMode() != VisitorMarkingMode::GlobalMarkingWithCompaction) | 
| +      return; | 
| Derived::fromHelper(this)->registerMovingObjectReference( | 
| reinterpret_cast<MovableReference*>(slot)); | 
| } | 
|  | 
| -  template <typename T> | 
| -  void registerBackingStoreCallback(T* backingStore, | 
| +  void registerBackingStoreCallback(void* backingStore, | 
| MovingObjectCallback callback, | 
| void* callbackData) { | 
| +    if (getMarkingMode() != VisitorMarkingMode::GlobalMarkingWithCompaction) | 
| +      return; | 
| Derived::fromHelper(this)->registerMovingObjectCallback( | 
| reinterpret_cast<MovableReference>(backingStore), callback, | 
| callbackData); | 
|  |