<br><br><div class="gmail_quote">On Thu, Apr 28, 2011 at 5:00 AM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><br><div class="gmail_quote">On Thu, Apr 28, 2011 at 1:42 PM, Henrik Sperre Johansen <span dir="ltr"><<a href="mailto:henrik.s.johansen@veloxit.no" target="_blank">henrik.s.johansen@veloxit.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<div bgcolor="#ffffff" text="#000000">
On 28.04.2011 13:25, Mariano Martinez Peck wrote:
<blockquote type="cite">
<pre> </pre>
<br>
<fieldset></fieldset>
<br>
No one? and if I need to intercept this messages inside the VM,
is there another special place than the regular #commonSend ?<br>
<br>
Thanks<br>
<br>
<div class="gmail_quote">On Sat, Apr 16, 2011 at 4:05 PM, Mariano
Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>></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">Hi. Sorry for my ignorance, but I remember
hearing about that evaluating stuff from a workspace may not
be the best choice when we want to test stuff on Cog. And in
fact, today I suffered that. I put a breakpoint in the method
lookup, where the dnu is thrown. And then from a workspace I
executed:<br>
<br>
TestCase new adasdassad<br>
<br>
And didn't stop. Then I put that in a method:<br>
<br>
MyClass >> blah<br>
TestCase new asdadsadasda<br>
<br>
And did MyClass new blah<br>
<br>
and the breakpoint stop....So, can someone explain me what
black magic happens with the Workspace? is something related
to the Compiler evaluation ?<br>
<br>
Thanks in advance,<br clear="all">
<font color="#888888"><br>
-- <br>
Mariano<br>
<a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
<br>
</font></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Mariano<br>
<a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
<br>
</blockquote>
IIRC, code evaluated by doits is always jitted.<br></div></blockquote><div><br>Ahaaa interesting :)<br>Do you know how this is done (internally)? I mean, because it needs to scape the normal execution...<br></div></div>
</blockquote><div><br></div><div>You're the one who's looking at the VM. Why don't you try and trace execution of a doit (hint, the method is now executed via primitive 188 withArgs:executeMethod:)? Read the code in the VM. You might even find the comment that explains it.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div> <br>Thans Henry,<br>
<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 bgcolor="#ffffff" text="#000000">
Thus you won't hit a breakpoint in method lookup code which is only
invoked by non-jitted calls.<br>
<br>
In the second case, statement MyClass blah is jitted, and (as long
as other jitting-conditions have not been met) "TestCase new
asdadsadasda" is interpreted normally, so the breakpoint is
encountered.<br>
<br>
Cheers,<br>
Henry<br>
<br>
</div>
<br></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>
<br></blockquote></div><br>