Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 25a833eebfd71ec05e49241b8cc29a55419816f2..8aeccc0154d522644b71053c73c7be49158dfe52 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -2647,22 +2647,6 @@ Register* KeyedStoreStubCompiler::registers() { |
} |
-void KeyedLoadStubCompiler::GenerateNameCheck(Handle<Name> name, |
- Register name_reg, |
- Label* miss) { |
- __ cmp(name_reg, Immediate(name)); |
- __ j(not_equal, miss); |
-} |
- |
- |
-void KeyedStoreStubCompiler::GenerateNameCheck(Handle<Name> name, |
- Register name_reg, |
- Label* miss) { |
- __ cmp(name_reg, Immediate(name)); |
- __ j(not_equal, miss); |
-} |
- |
- |
#undef __ |
#define __ ACCESS_MASM(masm) |
@@ -2743,8 +2727,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(), Immediate(name)); |
+ __ j(not_equal, &miss); |
} |
Label number_case; |