Description[GC] Align behavior of JSProxy with JSObject when embedded in optimized code
With --harmony-proxies enabled, embedded pointers in optimized code can point to
a JSProxy (via a cell). Since JSProxy can morph into JSObject we need to align
the expectations of weak vs strong refs.
With this patch we also treat JSPRoxy as weak ref (like JSObject) and therefore
properly record a dependency on it, so that once the cell pointing to it becomes
unreachable we deoptimize the corresponding code.
BUG=v8:4359
LOG=N
Committed: https://crrev.com/a039ff2930cbe6881360925e4debc959c7db392a
Cr-Commit-Position: refs/heads/master@{#30067}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|