Index: src/ic/handler-compiler.cc |
diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc |
index 6180b5f6f18becb3d525dd781b76c4ee152673a8..7f440c07ca0e4de42d2000148a3cef236bfaa847 100644 |
--- a/src/ic/handler-compiler.cc |
+++ b/src/ic/handler-compiler.cc |
@@ -415,8 +415,8 @@ void ElementHandlerCompiler::CompileElementHandlers( |
Handle<Map> receiver_map = receiver_maps->at(i); |
Handle<Code> cached_stub; |
- if ((receiver_map->instance_type() & kNotStringTag) == 0) { |
- cached_stub = isolate()->builtins()->KeyedLoadIC_String(); |
+ if (receiver_map->IsStringMap()) { |
+ cached_stub = LoadIndexedStringStub(isolate()).GetCode(); |
} else if (receiver_map->instance_type() < FIRST_JS_RECEIVER_TYPE) { |
cached_stub = isolate()->builtins()->KeyedLoadIC_Slow(); |
} else { |