Commit b095a94b authored by yangguo@chromium.org's avatar yangguo@chromium.org

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
parent b182baf3
......@@ -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;
......
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