Skip to content

Conversation

@tlively
Copy link
Member

@tlively tlively commented Aug 16, 2024

Replace code that checked isStruct(), isArray(), etc. in sequence
with uses of HeapType::getKind() and switch statements. This will make
it easier to find the code that needs updating if/when we add new heap
type kinds in the future. It also makes it much easier to find code that
already needs updating to handle continuation types by grepping for
"TODO: cont".

Replace code that checked `isStruct()`, `isArray()`, etc. in sequence
with uses of `HeapType::getKind()` and switch statements. This will make
it easier to find the code that needs updating if/when we add new heap
type kinds in the future. It also makes it much easier to find code that
already needs updating to handle continuation types by grepping for
"TODO: cont".
@tlively tlively requested a review from kripken August 16, 2024 23:20
@tlively tlively merged commit 0b05a3e into main Aug 19, 2024
@tlively tlively deleted the heaptype-get-kind branch August 19, 2024 16:23
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants