* src/vm/jit/methodtree.c: New file.
[cacao.git] / src / vm / jit / x86_64 / md.h
index ffe59b44c3930022f15dac9be0452f324fb7e996..f60e9720f6ba583088a9c6257c161879b7ed3439 100644 (file)
@@ -1,9 +1,6 @@
-/* src/vm/jit/x86_64/md.c - machine dependent x86_64 functions
+/* src/vm/jit/x86_64/md.h - machine dependent x86_64 functions
 
-   Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
-   C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
-   E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
-   J. Wenninger, Institut f. Computersprachen - TU Wien
+   Copyright (C) 1996-2005, 2006, 2007, 2008
 
    This file is part of CACAO.
 
@@ -34,6 +31,7 @@
 #include <stdint.h>
 
 #include "vm/jit/codegen-common.h"
+#include "vm/jit/methodtree.h"
 
 
 /* inline functions ***********************************************************/
@@ -60,8 +58,7 @@ inline static void *md_stacktrace_get_returnaddress(void *sp, int32_t stackframe
 
 /* md_codegen_get_pv_from_pc ***************************************************
 
-   On this architecture just a wrapper function to
-   codegen_get_pv_from_pc.
+   On this architecture this is just a wrapper to methodtree_find.
 
 *******************************************************************************/
 
@@ -70,9 +67,9 @@ inline static void *md_codegen_get_pv_from_pc(void *ra)
        void *pv;
 
        /* Get the start address of the function which contains this
-       address from the method table. */
+       address from the method tree. */
 
-       pv = codegen_get_pv_from_pc(ra);
+       pv = methodtree_find(ra);
 
        return pv;
 }