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

This reverts commit 7609886fe0de709d91cee7ae9c26afbe0d7e6306.