<br><br><div class="gmail_quote">On Mon, Aug 23, 2010 at 8:41 PM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
 <br>Hi Mariano,<div><br></div><div>I would put it in addNewMethodToCache.</div></blockquote><div><br>Thanks Eliot, puting it here worked perfect :)<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>  I wold also consider using the unused header bit in CompiledMethod instead of the unused object header bit (see CompiledMethod&gt;&gt;clearFlag &amp; CompiledMethod&gt;&gt;flag).</div>
<div><br></div></blockquote><div><br>The thing is that I also want to track all objects in addition to CompiledMethod....so..<br><br>thanks<br><br>Mariano<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="gmail_quote">On Mon, Aug 23, 2010 at 9:34 AM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

 <br>Hi folks. I am using the lsat free bit of the Squeak Object header to do some experiments. What I need to do now is to be able to set such bit for the CompiledMethod objects, when those selectors are sent.<br><br>Suppose that from the image side I do &quot;Date today yyyymmdd&quot;  then I want to set that bit in the object header of the CompiledMethod Date&gt;&gt; #today and CompiledMethod Date&gt;&gt; #yyyymmdd<br>


<br>Now....I check in the VM and I am not sure where I should do that. I already have my own primitive so that I can do something like this:<br><br>((self isIntegerObject: rcvr) not and: [hasToTrace])<br>        ifTrue: [ <br>


            self internalTurnOnUsedBit: rcvr.<br>            ].<br><br>Now...where I can intercept this in the VM? I found Interpreter &gt;&gt; internalExecuteNewMethod<br><br>is it there? should I access to &quot;newMethod&quot; and do something like this:<br>


<br>rcvr := &quot;somehow I access to Interpreter newMethod&quot;<br>((self isIntegerObject: rcvr) not and: [hasToTrace])<br>
        ifTrue: [ <br>
            self internalTurnOnUsedBit: rcvr.<br>
            ].<br>
<br><br>thanks for any help<br><br>mariano<br>
<br></blockquote></div><br></div>
<br></blockquote></div><br>