The optimization heuristics used in JavaScriptCore are ad hoc, and have not been rigorously tuned. But they could be tuned automatically by performing a grid search for a given subset of paremeters until a (local) maximum throughput is found.