<div dir="ltr">Hi, I've rebased the patch to the current trunk and removed some of the test cases.  Could you take a look and/or commit when you have a chance?  There's also Jorg's patch which is the same thing :)<div>


<br></div><div>I'm parsing the stackmaps during JITEventListener::NotifyObjectEmitted(), which gets passed an ObjectImage from which I can pull the stackmaps section; not sure if that works differently with different object formats, but if it works it feels a little more natural to me.</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 17, 2013 at 11:11 AM, Lang Hames <span dir="ltr"><<a href="mailto:lhames@gmail.com" target="_blank">lhames@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Kevin, Andy,</div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">> ... I had originally not added the SHF_ALLOC flag to the section which meant that it didn't get allocated through the MemoryManager at all, but regardless it still ends up in the emitted object file.</span><br>


</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">The StackMap section not getting allocated through the MemoryManager might be considered a bug, regardless of the SHF_ALLOC setting. I'm going to discuss that with some people who are more familiar with MemoryManager.</span><br>


</div><div><br><div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


Ideally, the stack map section should not need to be loaded. i.e. it would be nice to avoid making a copy of it. But the MCJIT client does not necessarily know how to parse the object format, so I don’t know if WebKit could use an event listener. Maybe Lang can answer this better.<br>


</blockquote><div><br></div></div><div><span style="font-family:arial,sans-serif;font-size:13px">For now I'd say "whatever works". I'm doing some investigation now to try to figure out the right way to deal with this going forward - the deprecation of the old JIT may mean that some of this infrastructure changes or goes away.</span><span class="HOEnZb"><font color="#888888"><br>


</font></span></div><span class="HOEnZb"><font color="#888888"><div> </div><div>- Lang.</div></font></span></div></div></div></div>
</blockquote></div><br></div>