Commit c49d4003 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Fix assert on Mozilla test after String split optimization.

Review URL: http://codereview.chromium.org/7837026

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9176 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e9cc1804
......@@ -2282,7 +2282,6 @@ void StringSplitCache::Enter(Heap* heap,
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 @@ void StringSplitCache::Enter(Heap* heap,
}
}
}
array->set_map(heap->fixed_cow_array_map());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment