Factoring out emitting the function prologue and epilogue.