Index: src/ic.cc |
=================================================================== |
--- src/ic.cc (revision 3546) |
+++ src/ic.cc (working copy) |
@@ -874,7 +874,9 @@ |
if (use_ic) { |
Code* stub = generic_stub(); |
- if (object->IsJSObject()) { |
+ if (object->IsString() && key->IsNumber()) { |
+ stub = string_stub(); |
+ } else if (object->IsJSObject()) { |
Handle<JSObject> receiver = Handle<JSObject>::cast(object); |
if (receiver->HasExternalArrayElements()) { |
stub = external_array_stub(receiver->GetElementsKind()); |