Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
5237:8c7e786886d0 | 5238:cce31bc56c00 |
---|---|
408 } | 408 } |
409 return sb.toString(); | 409 return sb.toString(); |
410 } | 410 } |
411 | 411 |
412 /** | 412 /** |
413 * Gets a stack trace element for a given method and bytecode index. | |
414 */ | |
415 public static StackTraceElement toStackTraceElement(RiMethod method, @SuppressWarnings("unused") int bci) { | |
416 // TODO (thomaswue): Look if we can use bci to get the line number. | |
417 return new StackTraceElement(CiUtil.toJavaName(method.holder()), method.name(), null, -1); | |
418 } | |
419 | |
420 /** | |
421 * Converts a Java source-language class name into the internal form. | 413 * Converts a Java source-language class name into the internal form. |
422 * | 414 * |
423 * @param className the class name | 415 * @param className the class name |
424 * @return the internal name form of the class name | 416 * @return the internal name form of the class name |
425 */ | 417 */ |