Re: Privileged context features and JavaScript

On 4/17/15 3:38 AM, Elliott Sprehn wrote:
> It's preferable not to do that for us because you can then create a
> static heap snapshot at compile time and memcpy to start JS contexts faster.

For this specific case, where there are only two possibilities 
(privileged or not) it seems like you can just have two different 
snapshots and pick the right one.  I agree this uses more memory; there 
are all sorts of tradeoffs here.

But yes, this is an argument against having any sort of dynamic 
behavior.  In the case of Gecko, we have to have _something_ somewhat 
dynamic anyway, since we expose APIs to extensions that we don't expose 
to web pages... which I'm sure you do too.

-Boris

Received on Friday, 17 April 2015 14:06:56 UTC