Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 610cb87f38dbba773079acf1a7ef43f329256b3b..2dac865f9c71279c1137ed755f063d76d69a3722 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5697,7 +5697,7 @@ HValue* HOptimizedGraphBuilder::HandlePolymorphicElementAccess( |
elements, isolate()->factory()->fixed_array_map(), |
zone(), top_info(), mapcompare)); |
} |
- if (map->IsJSArray()) { |
+ if (map->instance_type() == JS_ARRAY_TYPE) { |
HInstruction* length = AddLoad(object, HObjectAccess::ForArrayLength(), |
mapcompare, Representation::Smi()); |
length->set_type(HType::Smi()); |