| Index: src/ic/arm/ic-compiler-arm.cc
|
| diff --git a/src/ic/arm/ic-compiler-arm.cc b/src/ic/arm/ic-compiler-arm.cc
|
| index 7bef56e94de091e68cdc02f0da296a925286b84f..9c88239aab6d7b3617051fc1aa0c27a9dedf5cc5 100644
|
| --- a/src/ic/arm/ic-compiler-arm.cc
|
| +++ b/src/ic/arm/ic-compiler-arm.cc
|
| @@ -41,9 +41,12 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types,
|
|
|
| if (check == PROPERTY &&
|
| (kind() == Code::KEYED_LOAD_IC || kind() == Code::KEYED_STORE_IC)) {
|
| - // In case we are compiling an IC for dictionary loads and stores, just
|
| + // In case we are compiling an IC for dictionary loads or stores, just
|
| // check whether the name is unique.
|
| if (name.is_identical_to(isolate()->factory()->normal_ic_symbol())) {
|
| + // Keyed loads with dictionaries shouldn't be here, they go generic.
|
| + // The DCHECK is to protect assumptions when --vector-ics is on.
|
| + DCHECK(kind() != Code::KEYED_LOAD_IC);
|
| Register tmp = scratch1();
|
| __ JumpIfSmi(this->name(), &miss);
|
| __ ldr(tmp, FieldMemOperand(this->name(), HeapObject::kMapOffset));
|
|
|