Review Request 108929: khtml/kjs: Implement typed-arrays

Bernd Buschinski b.buschinski at googlemail.com
Tue Feb 19 00:03:08 GMT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/108929/
-----------------------------------------------------------

(Updated Feb. 19, 2013, 12:03 a.m.)


Review request for kdelibs.


Changes
-------

- fixed ssize_t -> size_t where appropriate
- Reimplemented ArrayBuffer::Slice and ArrayBufferView::Subarray,
they are supposed to handle negative start/end, "it refers to an index from the end of the array"


Description
-------

khtml/kjs: Implement typed-arrays

ArrayBuffer, Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array

I tested many configuration under valgrind, to find all possible errors.
It seems other browsers don't set a limit, so you can eat all memory with these arrays (danger), so khtml/kjs also doesn't set a limit. If you feel like we really need one, please tell.


Diffs (updated)
-----

  khtml/ecma/kjs_window.cpp 927d251 
  khtml/ecma/kjs_window.h 1b70be1 
  khtml/ecma/kjs_arraybufferview.h PRE-CREATION 
  khtml/ecma/kjs_arraybufferview.cpp PRE-CREATION 
  khtml/ecma/kjs_arraybuffer.cpp PRE-CREATION 
  khtml/CMakeLists.txt 99034cc 
  khtml/ecma/kjs_arraybuffer.h PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/108929/diff/


Testing
-------


Thanks,

Bernd Buschinski

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20130219/9fcbe59c/attachment.htm>


More information about the kde-core-devel mailing list