Revision: 9176
Author: [email protected]
Date: Wed Sep 7 06:17:25 2011
Log: Fix assert on Mozilla test after String split optimization.
Review URL: http://codereview.chromium.org/7837026
http://code.google.com/p/v8/source/detail?r=9176
Modified:
/branches/bleeding_edge/src/heap.cc
=======================================
--- /branches/bleeding_edge/src/heap.cc Wed Sep 7 06:13:56 2011
+++ /branches/bleeding_edge/src/heap.cc Wed Sep 7 06:17:25 2011
@@ -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