Revision: 3586
Author: [email protected]
Date: Tue Jan 12 08:57:18 2010
Log: Temporary backing out r3538 to see impact on DOM benchmarks.


http://code.google.com/p/v8/source/detail?r=3586

Modified:
 /branches/bleeding_edge/src/objects.cc
 /branches/bleeding_edge/src/runtime.cc

=======================================
--- /branches/bleeding_edge/src/objects.cc      Thu Jan  7 05:17:18 2010
+++ /branches/bleeding_edge/src/objects.cc      Tue Jan 12 08:57:18 2010
@@ -6878,7 +6878,7 @@
   //   50% is still free after adding n elements and
   //   at most 50% of the free elements are deleted elements.
   if ((nof + (nof >> 1) <= capacity) &&
-      (nod <= (capacity - nof) >> 1)) return this;
+      (nod <= (capacity - nof) >> 1) ) return this;

   Object* obj = Allocate(nof * 2);
   if (obj->IsFailure()) return obj;
=======================================
--- /branches/bleeding_edge/src/runtime.cc      Fri Jan  8 03:58:15 2010
+++ /branches/bleeding_edge/src/runtime.cc      Tue Jan 12 08:57:18 2010
@@ -5415,8 +5415,6 @@
       index_offset_ += delta;
     }
   }
-
-  Handle<FixedArray> storage() { return storage_; }

  private:
   Handle<FixedArray> storage_;
@@ -5758,8 +5756,7 @@
   IterateArguments(arguments, &visitor);

   result->set_length(*len);
-  // Please note the storage might have changed in the visitor.
-  result->set_elements(*visitor.storage());
+  result->set_elements(*storage);

   return *result;
 }
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to