[bindings] Implement ScriptWrappable::TraceWrappers.
The function traces wrapper objects corresponding to the
ScriptWrappable in all worlds. This allows us to remove
ad-hoc MarkWrappersInAllWorlds and simplify DispatchTraceWrappers.
Now wrappers in non-main world are properly reported to the visitor.
So the derived visitors (verifier, heap-snapshot generator) can see
and handle these wrappers.
Bug: 802273
Change-Id: Ie5aef1de7f0dcffe3a71304e0a37686d2bc859d3
Reviewed-on: https://chromium-review.googlesource.com/874190
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#530771}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b21b5245f2203639fa57e9bcde692ddada846f69
11 files changed