Nicolas Cellier
Nicolas Cellier
This is implemented here: https://source.squeak.org/VMMaker/VMMaker.oscog-nice.3251.diff The algorithm is slightly modified to cope with 5-bits RGB channels in 16bits depth. We still have to handle that case in two half-words and...
If we wanted to handle 16bits depth without split (thus 6 channels in parallel on a 32bits word), that would get a bit tricky due to the dead-bit. We would...
I don't remember, there are many possible path, what if not Jitted ? Certainly a case for exercising VM Simulator skills, or learn them...
Note that the primitiveLessThan should fail: it only handle SmallInteger argument (and receiver). It's bytecodePrimLessThan that eventually handle the automatic int -> float conversion. Remember that we (the stack interpreter)...
It appears that the JIT does thing differently than the (stack) interpreter. The interpreter will try things in this order when interpreting the send of a special selector for arithmetic...
That reminds me https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/658 The crash is not necessarily related, but the fact that I got the memory leak only in some specific (old ?) image is a clue: -...