Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 31c42c74e65ee7475ff990316726c969d36b1607..5ea5776f459014f477fe0bf3fb3ac28dc336342d 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6409,8 +6409,8 @@ bool HOptimizedGraphBuilder::PropertyAccessInfo::LookupInPrototypes() { |
bool HOptimizedGraphBuilder::PropertyAccessInfo::IsIntegerIndexedExotic() { |
InstanceType instance_type = map_->instance_type(); |
- return instance_type == JS_TYPED_ARRAY_TYPE && |
- IsSpecialIndex(isolate()->unicode_cache(), *name_); |
+ return instance_type == JS_TYPED_ARRAY_TYPE && name_->IsString() && |
+ IsSpecialIndex(isolate()->unicode_cache(), String::cast(*name_)); |
} |