On 4/17/12 12:05 PM, Boris Zbarsky wrote:
> The premise of dom.js seems to be that we can make it faster than
> jsapi calling into Rust, right?
>
> Do we have any actual data on this? Especially given the "ensure this
> is an instance of the right interface" bits in WebIDL (which afaict
> current dom.js simply doesn't do)? Do we have a plan for doing those
> (efficiently!) in JS?
>
I have no data on it. Can you explain what you mean by the "ensure this
is an instance of the right interface"? Do you just mean not allowing
someone to pass a NodeList, for example, to a method that wants an
Element? I'm pretty sure that dom.js does do that... but its been a
while since I looked at the code. I don't generally monitor this list,
so email me directly if you'd like me to look at this.
David
> Note that we _do_ have plans for doing them efficiently using TI and
> the fact that we can control JSClasses for DOM objects an can teach TI
> and ICs about them for our current JSAPI-calls-C++ bindings....
>
> -Boris
> _______________________________________________
> dev-servo mailing list
>
dev-...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/dev-servo