Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 48e073dd2ddd5f22fad3c5930b938f150cdc6dbb..1082eb6a502d27f808429fd3fa70e154636cf6ac 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -2563,22 +2563,6 @@ Register* KeyedStoreStubCompiler::registers() { |
} |
-void KeyedLoadStubCompiler::GenerateNameCheck(Handle<Name> name, |
- Register name_reg, |
- Label* miss) { |
- __ Cmp(name_reg, name); |
- __ j(not_equal, miss); |
-} |
- |
- |
-void KeyedStoreStubCompiler::GenerateNameCheck(Handle<Name> name, |
- Register name_reg, |
- Label* miss) { |
- __ Cmp(name_reg, name); |
- __ j(not_equal, miss); |
-} |
- |
- |
#undef __ |
#define __ ACCESS_MASM(masm) |
@@ -2663,8 +2647,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(), name); |
+ __ j(not_equal, &miss); |
} |
Label number_case; |