Chromium Code Reviews| Index: src/ic.cc |
| diff --git a/src/ic.cc b/src/ic.cc |
| index bf2a649f7f298d1e53fb53b035b5dcfb323a7ee7..cd8561f2cba1cd31116daa7f68f3a9b49f78cd2c 100644 |
| --- a/src/ic.cc |
| +++ b/src/ic.cc |
| @@ -1054,7 +1054,14 @@ Handle<Code> KeyedLoadIC::GetElementStubWithoutMapCheck( |
| ElementsKind elements_kind, |
| KeyedAccessGrowMode grow_mode) { |
| ASSERT(grow_mode == DO_NOT_ALLOW_JSARRAY_GROWTH); |
| - return KeyedLoadElementStub(elements_kind).GetCode(); |
| + if (IsFastElementsKind(elements_kind) || |
| + IsExternalArrayElementsKind(elements_kind)) { |
| + return KeyedLoadFastElementStub(is_js_array, |
| + elements_kind).GetCode(); |
|
Jakob Kummerow
2012/11/28 16:28:22
nit: fits on one line
danno
2012/11/30 16:23:24
Done.
|
| + } else { |
| + ASSERT(elements_kind == DICTIONARY_ELEMENTS); |
| + return KeyedLoadDictionaryElementStub().GetCode(); |
| + } |
| } |