Index: src/ic/mips64/ic-compiler-mips64.cc |
diff --git a/src/ic/mips64/ic-compiler-mips64.cc b/src/ic/mips64/ic-compiler-mips64.cc |
index 39dfe257958febfee7505b4af13452c66c3423ed..1e1880f88d5b584a5be5da653312f6f327c59f2e 100644 |
--- a/src/ic/mips64/ic-compiler-mips64.cc |
+++ b/src/ic/mips64/ic-compiler-mips64.cc |
@@ -24,9 +24,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); |
__ ld(tmp, FieldMemOperand(this->name(), HeapObject::kMapOffset)); |