Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index a2ddc04b9174f2ec7b95f68acd3acd199ee0a848..bf34014f62c74d182324730d6f77cba73f61d85c 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6566,8 +6566,9 @@ bool HOptimizedGraphBuilder::HandlePolymorphicArrayLengthLoad( |
} |
AddInstruction(new(zone()) HCheckNonSmi(object)); |
+ |
HInstruction* typecheck = |
- AddInstruction(HCheckInstanceType::NewIsJSArray(object, zone())); |
+ AddInstruction(new(zone()) HCheckMaps(object, types, zone())); |
HInstruction* instr = |
HLoadNamedField::NewArrayLength(zone(), object, typecheck); |
instr->set_position(expr->position()); |