> When I'm emitting my stub, do I have to call EmitMethodStubProlog
first so that it can pick up the return address correctly?

Using "EmitMethodStubProlog" is a convenient way how to do it.

> how does the stub access parameters from the previous activation
record.

Using ArgIterator. See FramedMethodFrame::PromoteCallerStackWorker for
an example.

> One other question, does the JIT do anything directly to aide the
JITmanager in later stackwalking or is it all handled by the JITmanager
without any help from the JIT itself?

The implementation of ICodeManager interface (clr\src\vm\fjit_eetwain.*)
shares some datastructures with the JIT. The JIT fills in these
datastructures during the JITing. The code managed than deciphers them
during the actual stackwalk.

-Jan

This posting is provided "AS IS" with no warranties, and confers no
rights.

-----Original Message-----
From: Discussion of the Rotor Shared Source CLI implementation
[mailto:[EMAIL PROTECTED] On Behalf Of Anderson, Todd A
Sent: Friday, September 26, 2003 1:54 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET-ROTOR] Adding a new frame type?

I'd like to add a new frame type that is similar to NDirectMethodFrame.
I've copied and renamed NDirectMethodFrame, NDirectMethodFrameEx, and 
NDirectMethodFrameGeneric.  When I'm emitting my stub, do I have to call

EmitMethodStubProlog first so that it can pick up the return address
correctly?  If that is true and EmitMethodStubProlog changes ebp and
esp,
how does the stub access parameters from the previous activation record.
Does the stub just have to know how many bytes the prolog will push on
the stack?

One other question, does the JIT do anything directly to aide the
JITmanager
in later stackwalking or is it all handled by the JITmanager without any
help from the JIT itself?

thanks,

Todd

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to