[Vm-dev] SmallInteger as Methods [WAS] Re: [Pharo-project] Ideas for CompiledMethod proxies?

David T. Lewis lewis at mail.msen.com
Tue Nov 23 17:47:42 UTC 2010


On Tue, Nov 23, 2010 at 12:03:01PM -0500, David T. Lewis wrote:
> 
> Indeed you were right, the necessary checks were still missing from
> #primitivePerform and #primitivePerformAt: so the following would still
> crash the VM:
> 
>   TestCase methodDict at: #assert: put: 5.
>   (TestCase >> #assert:) perform: #literals.
> 

Sorry, the above was a cut and paste error in my email. The thing
that would still crash the interpreter VM prior to this update was:

  TestCase methodDict at: #assert: put: 4.
  TestCase new perform: #assert: with: 'zaraza'.

In any case it should be resolved now.

> I added the updates to VMMaker-dtl.205 (this time adopting Eliots's
> changes directly) so hopefully this will now cover all cases.
> The update that I did for Interpreter>>lookupMethodInDictionary:
> should be added back to the oscog branch, but it does not effect
> the Cog VM itself, so at this point I expect that an interpreter VM
> built from VMMaker-dtl.205 will behave identically to a Cog VM with
> respect to handling objects as methods.
> 
> Dave


More information about the Vm-dev mailing list