MPLLang / mpl

The MaPLe compiler for efficient and scalable parallel functional programming
Other
306 stars 18 forks source link

Fix rssa type check error: word size mismatch #183

Closed shwestrick closed 3 months ago

shwestrick commented 3 months ago

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.