function
jsc.optimizeNextInvocation
func: (...args: any[]) => any
): void;
Makes JavaScriptCore start optimizing a function (compiling it with the DFG JIT) the next time it is called, instead of waiting for the function to become hot on its own. Optimization happens on a background thread, so the optimized code is installed shortly after that call; poll numberOfDFGCompiles to find out when.
Has no effect until the function has been called enough times to be compiled by the baseline JIT, and does nothing if func is not a JavaScript function.