Fix copy-on-write assert by setting the new array map early.
authorvitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 23 Sep 2010 12:23:35 +0000 (12:23 +0000)
committervitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 23 Sep 2010 12:23:35 +0000 (12:23 +0000)
commit48fd3dcaf9764d6660c93a88807d58f42038a0f9
tree3b035a4fb0dc72d3b6671f0b4d394e90cee5b9fe
parent622351fedd3c6decdd66b3d11a5031abf12ef1b6
Fix copy-on-write assert by setting the new array map early.

BUG=876

Review URL: http://codereview.chromium.org/3466013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5513 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap-inl.h
src/heap.cc
src/heap.h
src/objects-inl.h
test/mjsunit/copy-on-write-assert.js [new file with mode: 0644]