Index: src/heap/objects-visiting.h |
diff --git a/src/heap/objects-visiting.h b/src/heap/objects-visiting.h |
index b497e4c07ee01842755277e031033b9b02eb5de6..e35e47c3aa21720570d8593cf10bcf2ae67c01af 100644 |
--- a/src/heap/objects-visiting.h |
+++ b/src/heap/objects-visiting.h |
@@ -6,6 +6,7 @@ |
#define V8_OBJECTS_VISITING_H_ |
#include "src/allocation.h" |
+#include "src/heap/embedder-tracing.h" |
#include "src/heap/heap.h" |
#include "src/heap/spaces.h" |
#include "src/layout-descriptor.h" |
@@ -424,7 +425,7 @@ class StaticMarkingVisitor : public StaticVisitorBase { |
private: |
INLINE(static void TracePossibleWrapper(HeapObject* object)) { |
- if (object->GetHeap()->UsingEmbedderHeapTracer()) { |
+ if (object->GetHeap()->local_embedder_heap_tracer()->InUse()) { |
DCHECK(object->IsJSObject()); |
object->GetHeap()->TracePossibleWrapper(JSObject::cast(object)); |
} |