| Index: src/ic/handler-compiler.cc
|
| diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc
|
| index 4219d2bbbd48ed10d1ecaa7338e9c5b43574bedd..641c4d2b4f0e4bd43214c3b8d4e524e2a6181514 100644
|
| --- a/src/ic/handler-compiler.cc
|
| +++ b/src/ic/handler-compiler.cc
|
| @@ -388,14 +388,13 @@ void ElementHandlerCompiler::CompileElementHandlers(
|
| } else {
|
| bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE;
|
| ElementsKind elements_kind = receiver_map->elements_kind();
|
| -
|
| - if (IsFastElementsKind(elements_kind) ||
|
| - IsExternalArrayElementsKind(elements_kind) ||
|
| - IsFixedTypedArrayElementsKind(elements_kind)) {
|
| + if (IsSloppyArgumentsElements(elements_kind)) {
|
| + cached_stub = KeyedLoadSloppyArgumentsStub(isolate()).GetCode();
|
| + } else if (IsFastElementsKind(elements_kind) ||
|
| + IsExternalArrayElementsKind(elements_kind) ||
|
| + IsFixedTypedArrayElementsKind(elements_kind)) {
|
| cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind)
|
| .GetCode();
|
| - } else if (elements_kind == SLOPPY_ARGUMENTS_ELEMENTS) {
|
| - cached_stub = isolate()->builtins()->KeyedLoadIC_SloppyArguments();
|
| } else {
|
| DCHECK(elements_kind == DICTIONARY_ELEMENTS);
|
| cached_stub = LoadDictionaryElementStub(isolate()).GetCode();
|
|
|