Do not call reinterpret_cast when converting from NULL.
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Jul 2013 08:46:44 +0000 (08:46 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Jul 2013 08:46:44 +0000 (08:46 +0000)
commitb75063bea8741a5d90e56f77c9d48b919d832e5e
tree06c2007eeb62a0cada3b50f7b0f9779bb4ae7b00
parent4465c83104917a4c896a960e779c96e434a0345b
Do not call reinterpret_cast when converting from NULL.

If NULL is a nullptr (such as on my FreeBSD system), it is not possible to
use reinterpret_cast to convert it to another pointer. Plus, just using NULL
directly achieves the same effect.

R=ulan@chromium.org

Review URL: https://chromiumcodereview.appspot.com/19388005

Patch from Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15705 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap.cc
src/stub-cache.cc