[jit] Pass flags to mini_method_compile () as an enum.