Alamvic / druid

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

Improve primitiveSize #137

Open PalumboN opened 6 months ago

PalumboN commented 6 months ago

Now it is compiled always as 0 args. But the interpreter works with 1 arg also (see Context >> objectSize: anObject).

The primitive should have <numberOfArguments: #(0 1)> to support both cases, or at least <numberOfArguments: #(0)> to check the method argument count.

But now we cannot do that because tests are failing (probably due a bug during the optimisation passes).