Revert "Revert "JIT: Performance fix for const doubles""

This reverts commit 6799723387fe725e5418a83d2762539530a8835c.