-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new compound Rtt type #3076
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great so far 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! It looks like separating out HeapType
was a good move 👍
Let me know if you think this is ready for final review. Leaving subtyping to a follow-on PR would be fine, if you'd like. |
With the remaining tests added this should be ready for review then :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me besides that one last comment. Feel free to land it when it's ready; you should have write access now.
return array; | ||
} | ||
std::string toString() const; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to move the less trivial methods into the .cpp file. I'm thinking roughly anything with a switch in it. My goal there would be consistency with where the TypeInfo
methods are placed.
Extends compound types introduced in #3012 with a representation of
Rtt
s as described in the GC proposal, by also introducing the concept of aHeapType
shared betweenTypeInfo
andRtt
. Again, this should be a non-functional change sinceRtt
s are not used anywhere yet. Subtyping rules and updating thexref
aliases is left for future work.