The FunctionType parameter is only needed by CallResultAndArgumentsSlowPathGenerator, not by its base class CallSlowPathGenerator. Moving it allows saving about 300kB from JavaScriptCore, by reducing the number of instantiations of the methods of CallSlowPathGenerator.
Created attachment 387880 [details] Patch
(In reply to Robin Morisset from comment #0) > The FunctionType parameter is only needed by > CallResultAndArgumentsSlowPathGenerator, not by its base class > CallSlowPathGenerator. > Moving it allows saving about 300kB from JavaScriptCore, by reducing the > number of instantiations of the methods of CallSlowPathGenerator. NB: the 300kB were measured on a debug build, it is probably about 4x less in release mode.
Comment on attachment 387880 [details] Patch r=me
Comment on attachment 387880 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=387880&action=review > Source/JavaScriptCore/ChangeLog:9 > + Moving it allows saving about 300kB from JavaScriptCore, by reducing the number of instantiations of the methods of CallSlowPathGenerator. You should make it clear that this is on a Debug build. The better thing to do would be to cite numbers for a Release build.
Created attachment 387960 [details] Patch Thanks for the review! I updated the Changelog, it is 200kB in release mode.
Comment on attachment 387960 [details] Patch Clearing flags on attachment: 387960 Committed r254712: <https://trac.webkit.org/changeset/254712>
All reviewed patches have been landed. Closing bug.