Skip to content

Instantly share code, notes, and snippets.

@rjmccall
Created October 22, 2020 04:15
Show Gist options
  • Save rjmccall/788565b007db74c6eba3063b63b19d64 to your computer and use it in GitHub Desktop.
Save rjmccall/788565b007db74c6eba3063b63b19d64 to your computer and use it in GitHub Desktop.
Things to improve in the Swift ABI
1. The ABI for allocating initializers is messed up. We preserve the metadata in swiftself, forcing a lot of re-use. Ideally the metadata would be passed in (maybe in the swiftself register?) and we'd return the object in swiftself.
2. We should have a swift_allocObject that knows it's been given a class metadata and pulls the dimensions out of it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment