Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLStackTraceBuiltin.java @ 15564:a3b0ecef8a15
Truffle: Provide default implementation on non-Graal VMs for stack trace functionality.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 08 May 2014 22:53:28 +0200 |
parents | a1b0d7a1ef40 |
children | abe7128ca473 f6ac86d3334e |
comparison
equal
deleted
inserted
replaced
15562:de3dca7cc6fd | 15564:a3b0ecef8a15 |
---|---|
53 } | 53 } |
54 } | 54 } |
55 return str.toString(); | 55 return str.toString(); |
56 } | 56 } |
57 | 57 |
58 private static void dumpFrame(StringBuilder str, CallTarget rootNode, Frame frame, boolean isVirtual) { | 58 private static void dumpFrame(StringBuilder str, CallTarget callTarget, Frame frame, boolean isVirtual) { |
59 if (str.length() > 0) { | 59 if (str.length() > 0) { |
60 str.append("\n"); | 60 str.append("\n"); |
61 } | 61 } |
62 str.append("Frame: ").append(rootNode).append(isVirtual ? " (virtual)" : ""); | 62 str.append("Frame: ").append(callTarget).append(isVirtual ? " (virtual)" : ""); |
63 FrameDescriptor frameDescriptor = frame.getFrameDescriptor(); | 63 FrameDescriptor frameDescriptor = frame.getFrameDescriptor(); |
64 for (FrameSlot s : frameDescriptor.getSlots()) { | 64 for (FrameSlot s : frameDescriptor.getSlots()) { |
65 str.append(", ").append(s.getIdentifier()).append("=").append(frame.getValue(s)); | 65 str.append(", ").append(s.getIdentifier()).append("=").append(frame.getValue(s)); |
66 } | 66 } |
67 } | 67 } |