[JSC] Optimize Promise runtime functions