Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index 507520497d0f76915e0debe70f2b29f0125de181..fdfb76db177070264e5b099351c01deb98c0f8b5 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -2833,10 +2833,10 @@ void LCodeGen::DoHasInPrototypeChainAndBranch( |
DeoptimizeIf(eq, instr, Deoptimizer::kProxy); |
__ Ldr(object_prototype, FieldMemOperand(object_map, Map::kPrototypeOffset)); |
- __ Cmp(object_prototype, prototype); |
- __ B(eq, instr->TrueLabel(chunk_)); |
__ CompareRoot(object_prototype, Heap::kNullValueRootIndex); |
__ B(eq, instr->FalseLabel(chunk_)); |
+ __ Cmp(object_prototype, prototype); |
+ __ B(eq, instr->TrueLabel(chunk_)); |
__ Ldr(object_map, FieldMemOperand(object_prototype, HeapObject::kMapOffset)); |
__ B(&loop); |
} |