Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index c819ce2259158dbce7d626e9fda7986296281abb..6427f98800edead458f8e5a4d4017851ea66bbde 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -2516,20 +2516,6 @@ Register* KeyedStoreStubCompiler::registers() { |
} |
-void KeyedLoadStubCompiler::GenerateNameCheck(Handle<Name> name, |
- Register name_reg, |
- Label* miss) { |
- __ Branch(miss, ne, name_reg, Operand(name)); |
-} |
- |
- |
-void KeyedStoreStubCompiler::GenerateNameCheck(Handle<Name> name, |
- Register name_reg, |
- Label* miss) { |
- __ Branch(miss, ne, name_reg, Operand(name)); |
-} |
- |
- |
#undef __ |
#define __ ACCESS_MASM(masm) |
@@ -2609,8 +2595,9 @@ 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)) { |
+ __ Branch(&miss, ne, this->name(), Operand(name)); |
} |
Label number_case; |