<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 22, 2016 at 3:50 AM, David T. Lewis <span dir="ltr"><<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"><br> Given that the numbered primitive assignments<br>
> > change over time, and old primitives need to be retired to make room for<br>
> > the new, how best to provide continued support for older images with a<br>
> > current VM?<br></div></div></blockquote><div><br></div><div>In SqueakJS I have a single flag <span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">oldPrims</span> 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.</div><div><br></div><div>Just search for "oldPrims" in <a href="https://github.com/bertfreudenberg/SqueakJS/blob/master/vm.js">https://github.com/bertfreudenberg/SqueakJS/blob/master/vm.js</a></div><div><br></div><div>- Bert -</div></div></div></div>