Reviewers: Jakob,
Message:
PTaL.
Description:
Merge r9615 into 3.5 branch.
Adding missing hole check to FixedDoubleArray::Initialize
Please review this at http://codereview.chromium.org/8277032/
SVN Base: https://v8.googlecode.com/svn/branches/3.5
Affected files:
M src/objects-inl.h
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index
588b0f63a8d230cab6dcdee3ea699b65c817b3e2..ff3be03b74cc15a6b1cefc152754f2d83c31c216
100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1755,7 +1755,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;
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev