From 2ac95c54660d3bdc39644a025205df799537d60f Mon Sep 17 00:00:00 2001 From: twisti Date: Wed, 6 Apr 2005 15:49:22 +0000 Subject: [PATCH] No need for pv, removed it. --- src/vm/jit/asmpart.h | 4 ++-- src/vm/jit/helper.c | 17 +++-------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/vm/jit/asmpart.h b/src/vm/jit/asmpart.h index 30b76a981..e32964022 100644 --- a/src/vm/jit/asmpart.h +++ b/src/vm/jit/asmpart.h @@ -29,7 +29,7 @@ Changes: Christian Thalinger - $Id: asmpart.h 2230 2005-04-06 10:28:04Z twisti $ + $Id: asmpart.h 2243 2005-04-06 15:49:22Z twisti $ */ @@ -145,7 +145,7 @@ void asm_builtin_new(unresolved_class *uc); void asm_invokespecial(void); /* code patching helper functions (in asmpart.c) */ -classinfo *asm_builtin_new_helper(constant_classref *ref, functionptr pv); +classinfo *asm_builtin_new_helper(constant_classref *ref); u1 *asm_invokespecial_helper(unresolved_method *um); #endif /* _ASMPART_H */ diff --git a/src/vm/jit/helper.c b/src/vm/jit/helper.c index 580bdd001..2d308ead4 100644 --- a/src/vm/jit/helper.c +++ b/src/vm/jit/helper.c @@ -28,7 +28,7 @@ Changes: - $Id: helper.c 2229 2005-04-06 10:27:42Z twisti $ + $Id: helper.c 2243 2005-04-06 15:49:22Z twisti $ */ @@ -49,24 +49,13 @@ *******************************************************************************/ -classinfo *asm_builtin_new_helper(constant_classref *cr, functionptr pv) +classinfo *asm_builtin_new_helper(constant_classref *cr) { - methodinfo *refmethod; classinfo *c; -#if defined(__X86_64__) - /* on i386 and x86_64 the pv is the return address and must be resolved */ - - pv = codegen_findmethod(pv); -#endif - - /* now get the reference methodinfo pointer */ - - refmethod = (methodinfo *) ((ptrint) pv - sizeof(methodinfo*)); - /* resolve and load the class */ - if (!resolve_classref(refmethod, cr, resolveEager, true, &c)) + if (!resolve_classref(NULL, cr, resolveEager, true, &c)) return NULL; /* return the classinfo pointer */ -- 2.25.1