Index: src/ic/x64/ic-compiler-x64.cc |
diff --git a/src/ic/x64/ic-compiler-x64.cc b/src/ic/x64/ic-compiler-x64.cc |
index c6622e5fdd5d924575e4e3f2bbfb1c692a237bc0..5be9c465cc5e13283d9e94a73c5aa1aeba61e98e 100644 |
--- a/src/ic/x64/ic-compiler-x64.cc |
+++ b/src/ic/x64/ic-compiler-x64.cc |
@@ -81,9 +81,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); |
__ movp(tmp, FieldOperand(this->name(), HeapObject::kMapOffset)); |