[Vm-dev] [Pharo-project] Plan/discussion/communication around new
object format
Colin Putney
colin at wiresong.com
Sat Jun 16 05:45:32 UTC 2012
On 2012-06-15, at 7:28 PM, Igor Stasenko wrote:
> In theory yes, but in practice, existing object format(s) do not allow
> you to do that:
> try adding instance variable to any variable class with bytes/words format.
It's worse than that - if you add an instance variable to Object, it changes the layout of Behavior instances. That instantly crashes the VM, because superclass pointers and method dictionaries aren't where the VM expects them to be.
Levante has a point, though. Management of the properties dictionary doesn't have to be implemented at the VM level, it just has to support a named instance variable in Object.
Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20120615/184174a0/attachment.htm
More information about the Vm-dev
mailing list