<br><br><div class="gmail_quote">On Tue, Oct 5, 2010 at 10:44 AM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
 <br>Hi. I am new with all these stuff. My problem is how to map bytecodes numbers to methods.<br><br>For example, if in a method I send #class  and see the bytecodes I can see it has a &quot;C7&quot;, which in decimal is 199. <br>

If I see Interpreter class &gt;&gt; initializeBytecodeTable    then in 199 I see #bytecodePrimClass  which is correct.<br><br>Now....I want to go in the OTHER direction. For example, I have changed something in #bytecodePrimValueWithArg  and I would like to know WHICH method from the image side, generates that bytecode. <br>
</blockquote><div><br></div><div>See VariableNode class&gt;&gt;initialize:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>StdSelectors := Dictionary new: 64.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>encoder</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>fillDict: StdSelectors</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>with: SelectorNode</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>mapping: ((1 to: Smalltalk specialSelectorSize) collect: </div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                        </span>[:i | Smalltalk specialSelectorAt: i])</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>to: (SendPlus to: SendPlus + 31).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Ok, sometimes it is intuitive, but sometimes more or less...<br><br>Thanks<br><br>Mariano<br>
<br></blockquote></div><br>