-/* src/vm/jit/asmpart.c - code patching helper functions
+/* src/vm/jit/asmhelper.c - code patching helper functions
Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
Changes:
- $Id: helper.c 2229 2005-04-06 10:27:42Z twisti $
+ $Id: helper.c 2250 2005-04-07 11:19:55Z twisti $
*/
*******************************************************************************/
-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 */