Index: src/crankshaft/arm/lithium-codegen-arm.cc |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc |
index e6d2182a77208fa7d122b083c58ead2c5364a5e4..3cf423569787ac5c7b8c1f85de32b2e609139b5c 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.cc |
+++ b/src/crankshaft/arm/lithium-codegen-arm.cc |
@@ -2526,10 +2526,10 @@ void LCodeGen::DoHasInPrototypeChainAndBranch( |
DeoptimizeIf(eq, instr, Deoptimizer::kProxy); |
__ ldr(object_prototype, FieldMemOperand(object_map, Map::kPrototypeOffset)); |
- __ cmp(object_prototype, prototype); |
- EmitTrueBranch(instr, eq); |
__ CompareRoot(object_prototype, Heap::kNullValueRootIndex); |
EmitFalseBranch(instr, eq); |
+ __ cmp(object_prototype, prototype); |
+ EmitTrueBranch(instr, eq); |
__ ldr(object_map, FieldMemOperand(object_prototype, HeapObject::kMapOffset)); |
__ b(&loop); |
} |