diff graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiUtil.java @ 5238:cce31bc56c00

made HotSpotResolvedMethodImpl.toStackTraceElement() call into native code to get an object containing source file info
author Doug Simon <doug.simon@oracle.com>
date Fri, 13 Apr 2012 11:15:36 +0200
parents 2f2c6347fce4
children f47c770756e6
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiUtil.java	Thu Apr 12 20:40:25 2012 +0200
+++ b/graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiUtil.java	Fri Apr 13 11:15:36 2012 +0200
@@ -410,14 +410,6 @@
     }
 
     /**
-     * Gets a stack trace element for a given method and bytecode index.
-     */
-    public static StackTraceElement toStackTraceElement(RiMethod method, @SuppressWarnings("unused") int bci) {
-        // TODO (thomaswue): Look if we can use bci to get the line number.
-        return new StackTraceElement(CiUtil.toJavaName(method.holder()), method.name(), null, -1);
-    }
-
-    /**
      * Converts a Java source-language class name into the internal form.
      *
      * @param className the class name