Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index b2b1a928097210184c438683c44ee6d1448cbdd2..391d85a519abd3731b2fe8df166d8a3551ffbbc1 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -1273,8 +1273,14 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
if (check == PROPERTY && |
(kind() == Code::KEYED_LOAD_IC || kind() == Code::KEYED_STORE_IC)) { |
- __ cmp(this->name(), Operand(name)); |
- __ b(ne, &miss); |
+ // In case we are compiling an IC for dictionary loads and stores, just |
+ // check whether the name is unique. |
+ if (name.is_identical_to(isolate()->factory()->normal_ic_symbol())) { |
+ __ JumpIfNotUniqueName(this->name(), &miss); |
+ } else { |
+ __ cmp(this->name(), Operand(name)); |
+ __ b(ne, &miss); |
+ } |
} |
Label number_case; |