Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index ae63db7d538cb23f2bb463accf63ca6cd52a09ac..e5a93a7bd5b1f4ec513e0427d54f033b0fdf5dce 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7138,6 +7138,10 @@ HValue* HOptimizedGraphBuilder::HandleKeyedElementAccess( |
uint32_t array_index; |
if (constant->IsString() && |
!Handle<String>::cast(constant)->AsArrayIndex(&array_index)) { |
+ if (!constant->IsUniqueName()) { |
+ constant = isolate()->factory()->InternalizeString( |
+ Handle<String>::cast(constant)); |
+ } |
HInstruction* instr = |
BuildNamedAccess(access_type, expr->id(), return_id, expr, obj, |
Handle<String>::cast(constant), val, false); |