Adding missing hole check to FixedDoubleArray::Initialize
Review URL: http://codereview.chromium.org/8281001 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9615 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
b182baf350
commit
b095a94b85
@ -1739,7 +1739,11 @@ void FixedDoubleArray::Initialize(FixedDoubleArray* from) {
|
||||
old_length * kDoubleSize);
|
||||
} else {
|
||||
for (int i = 0; i < old_length; ++i) {
|
||||
set(i, from->get_scalar(i));
|
||||
if (from->is_the_hole(i)) {
|
||||
set_the_hole(i);
|
||||
} else {
|
||||
set(i, from->get_scalar(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
int offset = kHeaderSize + old_length * kDoubleSize;
|
||||
|
Loading…
Reference in New Issue
Block a user