This was mistakenly removed in r21027.
R=bmeurer@chromium.org
Review URL: https://codereview.chromium.org/
259203002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21037
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
}
MaybeObject* Heap::CopyFixedArray(FixedArray* src) {
+ if (src->length() == 0) return src;
return CopyFixedArrayWithMap(src, src->map());
}
MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) {
+ if (src->length() == 0) return src;
return CopyFixedDoubleArrayWithMap(src, src->map());
}
MaybeObject* Heap::CopyConstantPoolArray(ConstantPoolArray* src) {
+ if (src->length() == 0) return src;
return CopyConstantPoolArrayWithMap(src, src->map());
}