[GC] Align behavior of JSProxy with JSObject when embedded in optimized code
authormlippautz <mlippautz@chromium.org>
Fri, 7 Aug 2015 12:54:49 +0000 (05:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Aug 2015 12:55:05 +0000 (12:55 +0000)
commita039ff2930cbe6881360925e4debc959c7db392a
tree42a74fd0fb43a3614273be5bf04da46a505daa5d
parent07c3e41680b872fb842276d3c384bd4256a5d8d4
[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

Review URL: https://codereview.chromium.org/1270393003

Cr-Commit-Position: refs/heads/master@{#30067}
src/objects-inl.h