Revision: 24096
Author:   [email protected]
Date:     Fri Sep 19 15:09:50 2014 UTC
Log:      Internalize if not yet internalized

BUG=
[email protected]

Review URL: https://codereview.chromium.org/589543002
https://code.google.com/p/v8/source/detail?r=24096

Modified:
 /branches/bleeding_edge/src/hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Fri Sep 19 13:40:38 2014 UTC
+++ /branches/bleeding_edge/src/hydrogen.cc     Fri Sep 19 15:09:50 2014 UTC
@@ -7138,6 +7138,10 @@
     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);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to