[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Method dispatch for `ProtoObject`s is wrong (Issue #629)

Christoph Thiede notifications at github.com
Thu Apr 28 17:17:59 UTC 2022


Observations in a current Trunk image with the latest VM RC:

- `Compiler evaluate: 'super foo' for: ProtoObject new.`
  - expected: `⚡ MessageNotUnderstood: ProtoObject>>foo`
  - actual: `⚡ MessageNotUnderstood: SmallInteger>>foo`
- `Compiler evaluate: 'super bitCountOfByte' for: ProtoObject new.`
  - expected: `⚡ MessageNotUnderstood: ProtoObject>>bitCountOfByte`
  - actual: `⚡ MessageNotUnderstood: ProtoObject>>+` from `ProtoObject(SmallInteger)>>bitCountOfByte`

Note that in the image-side simulator, method lookup for `ProtoObject` may lead to crashes at the moment:

- `Compiler evaluate: 'super foo' for: ProtoObject new.` (simulated)
  - `⚡ MessageNotUnderstood: UndefinedObject>>lookupSelector:` from `Context>>send:to:with:lookupIn:`

I will happy to fix the image-side bugs to align them to the VM behavior. As for the VM side, it would be an interesting task, but would require more familiarization for me. 😉

-- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/629
You are receiving this because you are subscribed to this thread.

Message ID: <OpenSmalltalk/opensmalltalk-vm/issues/629 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20220428/0a2314b7/attachment.html>


More information about the Vm-dev mailing list