Commit d9514955 authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[in-place weak refs] Write the CSA::DispatchMaybeObject check differently.

The previous version was correct too, since we check sminess before. But with the
new check, it's easier to see it's correct.

BUG=v8:7308

Change-Id: I1632353ee5dfd305479858ec4a690b17bb70e6a6
Reviewed-on: https://chromium-review.googlesource.com/1039525Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53099}
parent 9e94bb23
......@@ -1690,8 +1690,8 @@ void CodeStubAssembler::DispatchMaybeObject(TNode<MaybeObject> maybe_object,
if_cleared);
GotoIf(WordEqual(WordAnd(BitcastMaybeObjectToWord(maybe_object),
IntPtrConstant(kWeakHeapObjectMask)),
IntPtrConstant(0)),
IntPtrConstant(kHeapObjectTagMask)),
IntPtrConstant(kHeapObjectTag)),
&inner_if_strong);
*extracted =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment