CompiledMethod Disassembly text possable quirk...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

CompiledMethod Disassembly text possable quirk...

Christopher J. Demers
It seems that Pushes are displayed as zero based numbers, while Sends are
one based (as I would expect) in the Disassembly text.  Since the correct
values are show this is not really an issue, but I was a little puzzled by
it.  It would seem to me (if I am understanding it correctly) that it should
either all be one based, or all be zero based.  Is this a quirk, or am I
misunderstanding the numbers?  I am thinking that the numbers are referring
to locations in the literals array and should then be one based.

If one evaluates this line:
(Disassembler methodDictionary at: #duplicateStackTop) inspect
The looks at the disassembly view one sees that line 2 refers to Const[0]:
'Dup' where as that string is actually a position 1 in the literals array.
Just wondering. ;)

Chris