Closed rbartlensky closed 5 years ago
This PR implements the compiler side of multiple return values. The compiler emits two new instructions:
ret
movr
The compiler also unpacks return values.
I addressed all comments, ready for another review.
Please squash.
Done!
This PR implements the compiler side of multiple return values. The compiler emits two new instructions:
ret
- which returns to the parent functionmovr
- which copies a return value from the stack into a specified registerThe compiler also unpacks return values.