Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/BranchProfile.java @ 14990:a0200c215fb2
Include the visited state in BranchProfile#toString, so it shows up in printed ASTs.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Sun, 06 Apr 2014 02:01:19 +0100 |
parents | 8531c47138dc |
children | 602c090252e0 |
comparison
equal
deleted
inserted
replaced
14989:a0dbb3628f2a | 14990:a0200c215fb2 |
---|---|
42 CompilerDirectives.transferToInterpreterAndInvalidate(); | 42 CompilerDirectives.transferToInterpreterAndInvalidate(); |
43 visited = true; | 43 visited = true; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 @Override | |
48 public String toString() { | |
49 return String.format("%s(%s)@%x", getClass().getSimpleName(), visited ? "visited" : "not-visited", hashCode()); | |
50 } | |
51 | |
47 } | 52 } |