heap: Avoid copying WeakMember during roots iteration

Weak members currently emit a write barrier upon copy construction.
Copying WeakMember<T> on the stack during roots iteration will make all
active ScriptWrappables links that are weak strong.

Tbr: haraken@chromium.org
Bug: 843903, 916200
Change-Id: I13a6512cdd1c8b03397b95665de8bcd83e263e69
Reviewed-on: https://chromium-review.googlesource.com/c/1382918
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#617609}
1 file changed