Renamed.
[cacao.git] / src / vm / jit / helper.c
index 580bdd001704456406fb35906d04c08ec6b45528..3a6eef8be07162ef5adddd164248bd65bcde32f5 100644 (file)
@@ -1,4 +1,4 @@
-/* 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,
@@ -28,7 +28,7 @@
 
    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 */