Commit fa567a49 authored by georgia.kouveli's avatar georgia.kouveli Committed by Commit bot

[arm64] Change comparison to CBNZ in PropertyHandlerCompiler::CheckPrototypes.

BUG=

Review-Url: https://codereview.chromium.org/2503453002
Cr-Commit-Position: refs/heads/master@{#40985}
parent 8b649a41
...@@ -478,8 +478,10 @@ Register PropertyHandlerCompiler::CheckPrototypes( ...@@ -478,8 +478,10 @@ Register PropertyHandlerCompiler::CheckPrototypes(
DCHECK_EQ(Smi::FromInt(Map::kPrototypeChainValid), validity_cell->value()); DCHECK_EQ(Smi::FromInt(Map::kPrototypeChainValid), validity_cell->value());
__ Mov(scratch1, Operand(validity_cell)); __ Mov(scratch1, Operand(validity_cell));
__ Ldr(scratch1, FieldMemOperand(scratch1, Cell::kValueOffset)); __ Ldr(scratch1, FieldMemOperand(scratch1, Cell::kValueOffset));
__ Cmp(scratch1, Operand(Smi::FromInt(Map::kPrototypeChainValid))); // Compare scratch1 against Map::kPrototypeChainValid.
__ B(ne, miss); static_assert(Map::kPrototypeChainValid == 0,
"Map::kPrototypeChainValid has unexpected value");
__ Cbnz(scratch1, miss);
} }
// Keep track of the current object in register reg. // Keep track of the current object in register reg.
......
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