[Vm-dev] Re: ObjectMemory>initBytesPerWord: not called correctly

tim Rowledge tim at rowledge.org
Fri Jul 5 00:04:11 UTC 2013


On 04-07-2013, at 5:01 PM, tim Rowledge <tim at rowledge.org> wrote:

> Whilst getting back to generating sources to make the stack vm for Pi, I stumbled across this problem; during VMMaker>generateInterpreterFile the #buildCodeGeneratorForInterpreter method did not result in initBytesPerWord: running. Thus when actually generating code for ObjectMemory>byteSwapped: which uses Byte3ShiftNegated we get a dNu because Byte3ShiftNegated is actually nil.

Oh, of course if you save the image after doing it right once, it now has the class vars all set up and will be happy. That makes it a bit more fun to work out.


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: MTP: MounT Programmer




More information about the Vm-dev mailing list