stack in kaffe.def

Alexandre Oliva oliva at
Thu Mar 25 02:54:55 PST 1999

On Mar 24, 1999, John Berg <John.Berg at> wrote:

> Is there a way to figure out what the actual object's address is that the
> data is being moved to/from at that location?

It depends on the instruction.  For putfield/getfield, that are the
only ones that move to/from object fields, the address of the object
is on the stack, in rstack(0) for getfield and rstack(1) or rstack(2)
for putfield, depending on the number of slots taken by the value to
be written.  But rstack won't give you the actual address of the
object, just a stack slot.  That's because you'd only have an actual
address in the stack slot in the intrp engine; in the JIT engine, when
the code is translated all you know is that there's going to be an
object reference at that stack slot at that point.

Alexandre Oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}  aoliva@{,}
*** E-mail about software projects will be forwarded to mailing lists

More information about the kaffe mailing list