On Tue, Sep 3, 2019 at 1:39 PM Jakob Kummerow <jkumme...@chromium.org> wrote:
> The snapshot will typically contain both the original JavaScript source > and the bytecode for functions. Function.prototype.toString needs the > source, so not including that in the snapshot would be a spec violation. > Bytecode is usually also cleared (and later compiled lazily at runtime) unless FunctionCodeHandling::kKeep is passed. > > On Tue, Sep 3, 2019 at 1:23 PM Oleg Beletski <oleg.belet...@gmail.com> > wrote: > >> I viewed content of the custom generated snapshot and was surprised to >> see that it contains almost unmodified blocks of java script with comments >> in it. >> >> >> Is that normal behavior? Is there away to get more efficient processing >> of java script before snapshot created? Our snapshot creation code is >> similar code in mksnapshot. >> > You could minify manually and/or use FunctionCodeHandling::kKeep. > >> Thanks, >> Oleg >> >> -- >> -- >> v8-users mailing list >> v8-users@googlegroups.com >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to v8-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/v8-users/544f718d-70dc-494c-9e92-7b4eb0ece0d8%40googlegroups.com >> <https://groups.google.com/d/msgid/v8-users/544f718d-70dc-494c-9e92-7b4eb0ece0d8%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/v8-users/CAKSzg3Rwm_edNaMQ--9E61j1mV7KYUmE3d81R6HCWDaVWL25nQ%40mail.gmail.com > <https://groups.google.com/d/msgid/v8-users/CAKSzg3Rwm_edNaMQ--9E61j1mV7KYUmE3d81R6HCWDaVWL25nQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CAH3p7oO1huoo2XB65X83aONqHUipuzqnVReHah0Ac3zHwH8viQ%40mail.gmail.com.