Index: src/crankshaft/x87/lithium-codegen-x87.cc |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc |
index 3eb24275fef587e5ed3ea66100c8ed01c163e54a..19457378252a0b021fd4687af3dc75d87e402c51 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.cc |
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc |
@@ -2603,10 +2603,10 @@ void LCodeGen::DoHasInPrototypeChainAndBranch( |
DeoptimizeIf(equal, instr, Deoptimizer::kProxy); |
__ mov(object_prototype, FieldOperand(object_map, Map::kPrototypeOffset)); |
- __ cmp(object_prototype, prototype); |
- EmitTrueBranch(instr, equal); |
__ cmp(object_prototype, factory()->null_value()); |
EmitFalseBranch(instr, equal); |
+ __ cmp(object_prototype, prototype); |
+ EmitTrueBranch(instr, equal); |
__ mov(object_map, FieldOperand(object_prototype, HeapObject::kMapOffset)); |
__ jmp(&loop); |
} |