Re: [webcomponents]: Moving custom element callbacks to prototype/instance

Inline

On Wed, Mar 6, 2013 at 7:03 PM, Hajime Morrita <morrita@google.com> wrote:

> One consequence is that it will become harder to cache (including negative
> cache) these values. We need to traverse the prototype chain in C++, which
> is typically slower than doing it in JS, on every lifecycle event. Or we
> need to invent something cool to make it fast.
>

There is no reason to walk the prototype chain from C++ (speaking from
WebCore+V8/JS experience). You can invoke the method using the V8/JSC APIs.

-- 
erik

Received on Thursday, 7 March 2013 00:14:38 UTC