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 274e3b87201ac3e0ad54a2a8b1969bca773d9a4d..1201adc3bab71ac9d4a810096e87963b723e7f8a 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -2656,6 +2656,8 @@ void LCodeGen::DoHasInPrototypeChainAndBranch( |
__ movp(object_map, FieldOperand(object, HeapObject::kMapOffset)); |
Label loop; |
__ bind(&loop); |
+ __ CmpInstanceType(object_map, JS_PROXY_TYPE); |
+ DeoptimizeIf(equal, instr, Deoptimizer::kProxy); |
__ movp(object_prototype, FieldOperand(object_map, Map::kPrototypeOffset)); |
__ cmpp(object_prototype, prototype); |
EmitTrueBranch(instr, equal); |