Index: src/objects-visiting-inl.h |
diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
index 1a68344b26a6782f83c9e4661b6a8f4e9831d402..a7fc84f24dc9fe113d6eda7618d42693500b0416 100644 |
--- a/src/objects-visiting-inl.h |
+++ b/src/objects-visiting-inl.h |
@@ -331,8 +331,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitNativeContext( |
for (int idx = Context::FIRST_WEAK_SLOT; |
idx < Context::NATIVE_CONTEXT_SLOTS; |
++idx) { |
- Object** slot = |
- HeapObject::RawField(object, FixedArray::OffsetOfElementAt(idx)); |
+ Object** slot = Context::cast(object)->RawFieldOfElementAt(idx); |
collector->RecordSlot(slot, slot, *slot); |
} |
} |