https://codereview.chromium.org/203583007/diff/1/src/objects-visiting-inl.h
File src/objects-visiting-inl.h (right):
https://codereview.chromium.org/203583007/diff/1/src/objects-visiting-inl.h#newcode501
src/objects-visiting-inl.h:501: StaticVisitor::VisitPointer(heap,
IIUC, each heap object pointer in constant pool is also visited via
reloc-info in
StaticMarkingVisitor<StaticVisitor>::VisitEmbeddedPointer and
StaticMarkingVisitor<StaticVisitor>::VisitCell.
Those visitors already handle weak pointers.
It would be cleaner to avoid copying that logic here and in
assembler-arm.
I think it is safe to only record slot for a heap pointer and not mark
it (i.e. replace VisitPointer with RecordSlot) since we will mark it via
reloc-info anyway. If we do that, then there is no need to track weak
pointers separately from heap pointers. WDYT?
https://codereview.chromium.org/203583007/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.