Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium HW-All OS-All
New issue 1849 by [email protected]: Preallocated Array incorrectly
transitions to fast-double-elements backing store
http://code.google.com/p/v8/issues/detail?id=1849
Test case fills big preallocated array with integers but in the end array
has fast-double-elements backing store:
var count = 1e5;
var arr = new Array(count);
print(%HasFastDoubleElements(arr));
for (var i = 0; i < count; i++) {
arr[i] = 0;
}
print(%HasFastDoubleElements(arr));
% ./d8 --allow-natives-syntax test.js
false
true
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev