OK I found the solution.
Indeed, it's quite some asm for that...

In fact, Uint8ClampedArray is what v8 calls PixelArray. 

Please merge the updated code and tests. 
See https://github.com/joyent/node/pull/3021

Thanks

On Tuesday, March 27, 2012 3:04:29 PM UTC-7, m1k3l wrote:
>
> No way to override that? or to add a hook before or after this v8 code?
>
> On Tuesday, March 27, 2012 2:55:24 PM UTC-7, Ben Noordhuis wrote:
>>
>> On Tue, Mar 27, 2012 at 23:41, m1k3l <mikese...@gmail.com> wrote:
>> > I'm adding a missing typed array, the Uint8ClampedArray. You can see the
>> > changes
>> > at 
>> https://github.com/mikeseven/node/commit/27ad75f882a6c7ad06a878f3eaab292a045ffc4c
>> > I didn't put this in the pull requests yet because I have an issue with 
>> the
>> > syntax: buf[idx]=value, which should do the same thing as buf.set(idx,
>> > value) that works correctly in this commit.
>> >
>> > Does anyone know where buf[idx] is handled?
>>
>> In the V8 VM. Don't ask, it's complicated. Essentially, V8 generates
>> machine code that directly accesses the memory.
>>
>

Reply via email to