[compiler] Mark weak functions noinline