We currently just make a C call for Array#first and Array#last on InvokeBuiltin. We could implement their logic in more specialized HIR, which adds for opportunities for the optimizer and makes escape analysis on arrays easier in the future.
This is something that is discovered as part of #1020.
We currently just make a C call for
Array#firstandArray#lastonInvokeBuiltin. We could implement their logic in more specialized HIR, which adds for opportunities for the optimizer and makes escape analysis on arrays easier in the future.This is something that is discovered as part of #1020.