Fix the case of no words to copy.
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 29 Mar 2010 22:07:52 +0000 (22:07 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 29 Mar 2010 22:07:52 +0000 (22:07 +0000)
commit69bb110075aa5c7f0f82c23b043d6ad52868005f
tree1c56e5d9af2fec14b1eebbb7a9d47a162dbf4e48
parent17eece5748291203a9827d37aba883d898df2c70
Fix the case of no words to copy.

CopyWords cannot actually copy zero words---it'd clobber destiantion with
the first word of source.

Add an ASSERT to check this condition plus update array builtins to verify
for amount of copied data when necessary.

TBR=vitalyr@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4313 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/builtins.cc
src/utils.h