src: refactor Reallocate since it introduced in upstream v8
Note: this is target to branch canary-base
Original PR in: https://github.com/nodejs/node-v8/pull/154.
V8 introduced this api in it's own.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines