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

Bert Freudenberg bert at freudenbergs.de
Thu Dec 22 15:40:51 UTC 2016


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 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20161222/1dd0ebe1/attachment.html>


More information about the Vm-dev mailing list