Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLStackTraceBuiltin.java @ 17349:d45951ac3ce9
SL: use line separator of current platform
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Mon, 06 Oct 2014 05:02:53 -0700 |
parents | 5a260e749bca |
children | b4e38f4ca414 |
comparison
equal
deleted
inserted
replaced
17348:0ba1a6745070 | 17349:d45951ac3ce9 |
---|---|
58 return str.toString(); | 58 return str.toString(); |
59 } | 59 } |
60 | 60 |
61 private static void dumpFrame(StringBuilder str, CallTarget callTarget, Frame frame) { | 61 private static void dumpFrame(StringBuilder str, CallTarget callTarget, Frame frame) { |
62 if (str.length() > 0) { | 62 if (str.length() > 0) { |
63 str.append("\n"); | 63 str.append(System.getProperty("line.separator")); |
64 } | 64 } |
65 str.append("Frame: ").append(((RootCallTarget) callTarget).getRootNode().toString()); | 65 str.append("Frame: ").append(((RootCallTarget) callTarget).getRootNode().toString()); |
66 FrameDescriptor frameDescriptor = frame.getFrameDescriptor(); | 66 FrameDescriptor frameDescriptor = frame.getFrameDescriptor(); |
67 for (FrameSlot s : frameDescriptor.getSlots()) { | 67 for (FrameSlot s : frameDescriptor.getSlots()) { |
68 str.append(", ").append(s.getIdentifier()).append("=").append(frame.getValue(s)); | 68 str.append(", ").append(s.getIdentifier()).append("=").append(frame.getValue(s)); |