java-interp.h (_Jv_InterpFrame): obj_ptr field added to hold "this" pointer for frame.
2007-02-06 Kyle Galloway <kgallowa@redhat.com> * include/java-interp.h (_Jv_InterpFrame): obj_ptr field added to hold "this" pointer for frame. (_Jv_InterpFrame::get_this_ptr): New method. * interpret-run.cc: Copy the "this" pointer into obj_ptr. From-SVN: r121717
This commit is contained in:
committed by
Kyle Galloway
parent
9f05adb09f
commit
72268e157f
@@ -349,6 +349,15 @@ details. */
|
||||
*/
|
||||
memcpy ((void*) locals, (void*) args, meth->args_raw_size);
|
||||
|
||||
#ifdef DEBUG
|
||||
// Get the object pointer for this method, after checking that it is
|
||||
// non-static.
|
||||
_Jv_Method *method = meth->get_method ();
|
||||
|
||||
if ((method->accflags & java::lang::reflect::Modifier::STATIC) == 0)
|
||||
frame_desc.obj_ptr = locals[0].o;
|
||||
#endif
|
||||
|
||||
_Jv_word *pool_data = meth->defining_class->constants.data;
|
||||
|
||||
/* These three are temporaries for common code used by several
|
||||
|
||||
Reference in New Issue
Block a user