* src/vm/jit/methodtree.c: New file.
[cacao.git] / src / vm / jit / optimizing / profile.c
index b820cd9d869e798a061c053a608b20f0ac64bdd6..e117f03b5c6e917eaf860991f93bbbac6754c4ec 100644 (file)
@@ -40,6 +40,8 @@
 
 #include "vm/jit/jit.h"
 #include "vm/jit/methodheader.h"
+#include "vm/jit/methodtree.h"
+
 #include "vm/jit/optimizing/recompile.h"
 
 #include "vmcore/class.h"
@@ -112,9 +114,9 @@ static void profile_thread(void)
 
                        pc = t->pc;
 
-                       /* get the PV for the current PC */
+                       /* Get the PV for the current PC. */
 
-                       pv = codegen_get_pv_from_pc_nocheck(pc);
+                       pv = methodtree_find_nocheck(pc);
 
                        /* get methodinfo pointer from data segment */