Rearrange the code so when we allocate an array from JIT code, we call one helper where most of the code is inline. Differential Revision: D917956
The way we use these macros is exactly what lambdas are for, so give it a try. Differential Revision: D916121
Differential Revision: D913884