On 06/13/2017 09:38 PM, Mike Hommey wrote:
On Tue, Jun 13, 2017 at 12:10:58PM -0400, Boris Zbarsky wrote:
On 6/13/17 11:00 AM, Dirkjan Ochtman wrote:
Has anyone thought about doing similar things for chrome JS?

We've been doing fastload for chrome JS (and indeed for entire chrome XUL
documents, including their scripts) for 15+ years now, no?

I don't remember what fastload was keeping around, but startupcache
stores pre-parsed JS, but I'm not sure of the details, whether that's
some AST or something else. Storing bytecode instead could still be a
win.

Looking at the implementation of nsXULPrototypeScript::Deserialize, we use the same methods (XDR) as used by JSBC, i-e we encode/decode the bytecode.

--
Nicolas B. Pierron
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to