• Ulan Degenbaev's avatar
    [heap] Refactor marking weak object worklists · ff61743f
    Ulan Degenbaev authored
    This CL extracts weak object worklist related code into separate files
    and uses a macro to specify all weak object worklists in a generic way.
    
    The motivation of the refactoring is twofold:
    1) We can now enforce that each weak object worklist is updated after
       Scavenge. (Forgetting to define the update function causes a link
       time error.)
    2) The reduced boilerplate will be useful for transitioning to the
       new ::heap::base::Worklist.
    
    Change-Id: Ic80a7ccca010c09370d6525f43d78de24192f8ea
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2442624Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
    Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#70308}
    ff61743f
incremental-marking.h 9.99 KB