Alamvic / druid

Meta-compiler to generate an optimised JIT compiler frontend based on an Interpreter definition
8 stars 6 forks source link

Unskip primitiveAt tests #129

Open guillep opened 5 months ago

guillep commented 5 months ago

I skipped several tests like this. The reason is that primitiveAt has spill slots, but the access to the arguments in the stack is not aware of it. The code reads like

"Allocate 3 spill slots in the stack"
self SubCq: 24 R: SPReg.
self genLoadArg0R: R1

=>
genLoadArg0R: destinationRegister
    self MoveMw: 'Fixed offset that does not take the spill slots into account' r: SPReg R: destinationRegister.

_Originally posted by @guillep in https://github.com/Alamvic/druid/pull/128#discussion_r1528098694_