Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/BranchProfile.java @ 16747:d9d496d77d37
Truffle: Added option to query a BranchProfile for visited.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 15:53:04 +0200 |
parents | 602c090252e0 |
children | db090a8d3705 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/BranchProfile.java Mon Aug 11 15:45:18 2014 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/BranchProfile.java Mon Aug 11 15:53:04 2014 +0200 @@ -44,6 +44,10 @@ } } + public boolean isVisited() { + return visited; + } + @Override public String toString() { return String.format("%s(%s)@%x", getClass().getSimpleName(), visited ? "visited" : "not-visited", hashCode());