Reviewers: Kevin Millikin,

Description:
Fix assert on Mozilla test after String split optimization.

Please review this at http://codereview.chromium.org/7837026/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/heap.cc


Index: src/heap.cc
===================================================================
--- src/heap.cc (revision 9175)
+++ src/heap.cc (working copy)
@@ -2282,7 +2282,6 @@
                              FixedArray* array) {
   if (!string->IsSymbol() || !pattern->IsSymbol()) return;
   uintptr_t hash = string->Hash();
-  array->set_map(heap->fixed_cow_array_map());
   uintptr_t index = ((hash & (kStringSplitCacheSize - 1)) &
       ~(kArrayEntriesPerCacheEntry - 1));
   if (cache->get(index + kStringOffset) == Smi::FromInt(0)) {
@@ -2315,6 +2314,7 @@
       }
     }
   }
+  array->set_map(heap->fixed_cow_array_map());
 }




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

Reply via email to