Add helper functions to avoid the if (cfg->generic_sharing_context) context_used= idiom in the JIT code.