Reviewers: Michael Starzinger,
Description:
Clean up d8 ArrayBuffer implementation and fix bug in readbuffer:
- Separate CreateExternalArrayBuffer function.
- Properly create buffers for arrays constructed with size argument only.
- Finalization of data array is tied to buffer object exclusively.
- Get rid of hidden buffer reference in array objects and size header in
data.
- Use 'new' instead of 'malloc' in readbuffer.
- Test cases for additional array and buffer properties.
[email protected]
BUG=
TEST=
Please review this at https://chromiumcodereview.appspot.com/10459047/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/d8.h
M src/d8.cc
M test/mjsunit/external-array.js
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev