buffer: remove minor Buffer::Copy deoptimizations
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 25 Jan 2013 21:03:11 +0000 (22:03 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 25 Jan 2013 21:07:04 +0000 (22:07 +0100)
commit00b4b7bb97c84d19c644a4491fe98170ab9675a6
tree9760dd16096193e5e2ad796cefa3e495c188d81f
parentcbe3941db9ec4f47a336fb36a2b91275c3acc7fa
buffer: remove minor Buffer::Copy deoptimizations

* Omit ToObject() call. Buffer::Data() and Buffer::Length() know how
  to deal with Values.

* Don't check if the argument is undefined because it realistically
  never is and undefined->integer coercion achieves the same thing.
src/node_buffer.cc