Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index ec5f4a3cbfcafb241fdd42ca94334e23ffe00188..f2cdfc941b8294b1d88c6477eb6850bfa40df3bc 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -2516,22 +2516,6 @@ Register* KeyedStoreStubCompiler::registers() { |
} |
-void KeyedLoadStubCompiler::GenerateNameCheck(Handle<Name> name, |
- Register name_reg, |
- Label* miss) { |
- __ cmp(name_reg, Operand(name)); |
- __ b(ne, miss); |
-} |
- |
- |
-void KeyedStoreStubCompiler::GenerateNameCheck(Handle<Name> name, |
- Register name_reg, |
- Label* miss) { |
- __ cmp(name_reg, Operand(name)); |
- __ b(ne, miss); |
-} |
- |
- |
#undef __ |
#define __ ACCESS_MASM(masm) |
@@ -2612,8 +2596,10 @@ Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC( |
IcCheckType check) { |
Label miss; |
- if (check == PROPERTY) { |
- GenerateNameCheck(name, this->name(), &miss); |
+ if (check == PROPERTY && |
+ (kind() == Code::KEYED_LOAD_IC || kind() == Code::KEYED_STORE_IC)) { |
+ __ cmp(this->name(), Operand(name)); |
+ __ b(ne, &miss); |
} |
Label number_case; |