Index: src/ic/handler-compiler.cc |
diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc |
index bfe97af4337552511cd5c5151e6bb0f114b90708..714888c8b3ef2626e82a64194a3f03b51f3aff38 100644 |
--- a/src/ic/handler-compiler.cc |
+++ b/src/ic/handler-compiler.cc |
@@ -582,7 +582,9 @@ void ElementHandlerCompiler::CompileElementHandlers( |
(is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && |
*receiver_map == isolate()->get_initial_js_array_map(elements_kind)); |
- if (receiver_map->has_indexed_interceptor()) { |
+ if (receiver_map->has_indexed_interceptor() && |
+ !receiver_map->GetIndexedInterceptor()->getter()->IsUndefined() && |
+ !receiver_map->GetIndexedInterceptor()->non_masking()) { |
cached_stub = LoadIndexedInterceptorStub(isolate()).GetCode(); |
} else if (IsSloppyArgumentsElements(elements_kind)) { |
cached_stub = KeyedLoadSloppyArgumentsStub(isolate()).GetCode(); |