Commit f6df485d authored by mbrandy's avatar mbrandy Committed by Commit bot

[turbofan] Use kHeapObjectTag in place of hard-coded value.

R=bmeurer@chromium.org, jarin@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/1945303003
Cr-Commit-Position: refs/heads/master@{#36062}
parent 0cf40f9c
...@@ -135,9 +135,10 @@ Reduction ChangeLowering::ReduceAllocate(Node* node) { ...@@ -135,9 +135,10 @@ Reduction ChangeLowering::ReduceAllocate(Node* node) {
machine()->Store(StoreRepresentation( machine()->Store(StoreRepresentation(
MachineType::PointerRepresentation(), kNoWriteBarrier)), MachineType::PointerRepresentation(), kNoWriteBarrier)),
top_address, jsgraph()->IntPtrConstant(0), new_top, etrue, if_true); top_address, jsgraph()->IntPtrConstant(0), new_top, etrue, if_true);
vtrue = graph()->NewNode(machine()->BitcastWordToTagged(), vtrue = graph()->NewNode(
graph()->NewNode(machine()->IntAdd(), top, machine()->BitcastWordToTagged(),
jsgraph()->IntPtrConstant(1))); graph()->NewNode(machine()->IntAdd(), top,
jsgraph()->IntPtrConstant(kHeapObjectTag)));
} }
Node* if_false = graph()->NewNode(common()->IfFalse(), branch); Node* if_false = graph()->NewNode(common()->IfFalse(), branch);
......
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