The file racket/collects/racket/private/map.rkt contains optimized implementations of map, for-each, andmap, and ormap. A comment at the top states:
;; #%kernel implements `map', `for-each', `andmap', and `ormap',
;; but the JIT generates faster code, especially for the common cases.