Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
tail call codegen for error returns #690
for error unions it looks like this:
We could have
for pure errors we can pass the error code and return it, and then return it in the parent, another tail call.
Then look at the generated assembly and make sure we're doing tail calls. This is to keep the size of the code generated small for error return tracing. What is a return statement in code without error return tracing can become a jump instruction in code with error return tracing.