[Vm-dev] Primitive table support for running older images

David T. Lewis lewis at mail.msen.com
Thu Dec 22 19:28:04 UTC 2016


Thanks Bert, that definitely will help.

Dave

>  On Thu, Dec 22, 2016 at 3:50 AM, David T. Lewis <lewis at mail.msen.com>
> wrote:
>
>>
>>  Given that the numbered primitive assignments
>> > > change over time, and old primitives need to be retired to make room
>> for
>> > > the new, how best to provide continued support for older images with
>> a
>> > > current VM?
>>
>
> In SqueakJS I have a single flag oldPrims to switch between two set of
> primitives. This appears to work fine all the way back to Squeak 1.x. The
> flag is set based on whether the image format has closures or not.
>
> Just search for "oldPrims" in
> https://github.com/bertfreudenberg/SqueakJS/blob/master/vm.js
>
> - Bert -
>




More information about the Vm-dev mailing list