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

This reverts commit b7342423942640542e82e3fa4387602e1eccaf58.