Revision: 9615
Author:   [email protected]
Date:     Thu Oct 13 09:36:20 2011
Log:      Adding missing hole check to FixedDoubleArray::Initialize

Review URL: http://codereview.chromium.org/8281001
http://code.google.com/p/v8/source/detail?r=9615

Modified:
 /branches/bleeding_edge/src/objects-inl.h

=======================================
--- /branches/bleeding_edge/src/objects-inl.h   Thu Oct 13 04:50:00 2011
+++ /branches/bleeding_edge/src/objects-inl.h   Thu Oct 13 09:36:20 2011
@@ -1739,7 +1739,11 @@
                 old_length * kDoubleSize);
   } else {
     for (int i = 0; i < old_length; ++i) {
-      set(i, from->get_scalar(i));
+      if (from->is_the_hole(i)) {
+        set_the_hole(i);
+      } else {
+        set(i, from->get_scalar(i));
+      }
     }
   }
   int offset = kHeaderSize + old_length * kDoubleSize;

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to