Index: src/crankshaft/x64/lithium-codegen-x64.cc |
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc |
index 708691635b4413f0bb61e2e72fd6436ae02c23a0..13c738d5fba521870e91d99dae6f8bf788f2dd35 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -2457,7 +2457,6 @@ void LCodeGen::DoHasInPrototypeChainAndBranch( |
Label loop; |
__ bind(&loop); |
- |
// Deoptimize if the object needs to be access checked. |
__ testb(FieldOperand(object_map, Map::kBitFieldOffset), |
Immediate(1 << Map::kIsAccessCheckNeeded)); |
@@ -2467,10 +2466,10 @@ void LCodeGen::DoHasInPrototypeChainAndBranch( |
DeoptimizeIf(equal, instr, Deoptimizer::kProxy); |
__ movp(object_prototype, FieldOperand(object_map, Map::kPrototypeOffset)); |
- __ cmpp(object_prototype, prototype); |
- EmitTrueBranch(instr, equal); |
__ CompareRoot(object_prototype, Heap::kNullValueRootIndex); |
EmitFalseBranch(instr, equal); |
+ __ cmpp(object_prototype, prototype); |
+ EmitTrueBranch(instr, equal); |
__ movp(object_map, FieldOperand(object_prototype, HeapObject::kMapOffset)); |
__ jmp(&loop); |
} |