Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 0b189d5e3fe890fafc4129c7ae1b4137e1eea7ad..986f4ee16e90ecd2e1156834fe7225878a539e2b 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6714,7 +6714,7 @@ HValue* HOptimizedGraphBuilder::HandleKeyedElementAccess( |
if (monomorphic) { |
Handle<Map> map = types->first(); |
- if (map->has_slow_elements_kind()) { |
+ if (map->has_slow_elements_kind() || !map->IsJSObjectMap()) { |
instr = is_store ? BuildStoreKeyedGeneric(obj, key, val) |
: BuildLoadKeyedGeneric(obj, key); |
AddInstruction(instr); |