Index: src/crankshaft/ia32/lithium-codegen-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
index 5c89cc746f0bfaba6c92e968d562dcb0f96b0222..ff6965f5da8934a3c3702dee464e96dde46d752c 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
@@ -2317,10 +2317,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); |
} |