Skip to content

Fix rssa type check error: word size mismatch#183

Merged
shwestrick merged 1 commit into
MPLLang:mainfrom
shwestrick:fix-rssa-type-check
Mar 8, 2024
Merged

Fix rssa type check error: word size mismatch#183
shwestrick merged 1 commit into
MPLLang:mainfrom
shwestrick:fix-rssa-type-check

Conversation

@shwestrick

Copy link
Copy Markdown
Collaborator

Compiling with -type-check true was previously throwing an error for RSSA type checking. The problem was a mismatch between word sizes in the generated code for read barrier fast paths. The generated code used WordSize.shiftArg for a mask on an object header. This just needed to be changed to WordSize.objptrHeader().

I cleaned up the code a little, too.

Compiling with `-type-check true` was previously throwing an error
for RSSA type checking. The problem was a mismatch between word
sizes in the generated code for read barrier fast paths. The
generated code used `WordSize.shiftArg` for a mask on an object
header. This just needed to be changed to `WordSize.objptrHeader()`.

I cleaned up the code a little, too.
@shwestrick shwestrick merged commit bb0e42f into MPLLang:main Mar 8, 2024
@shwestrick shwestrick deleted the fix-rssa-type-check branch March 8, 2024 18:48
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.

1 participant