Revision: 9627
Author:   [email protected]
Date:     Fri Oct 14 03:53:18 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=9627

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

=======================================
--- /branches/3.5/src/objects-inl.h     Wed Sep  7 05:07:36 2011
+++ /branches/3.5/src/objects-inl.h     Fri Oct 14 03:53:18 2011
@@ -1755,7 +1755,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