Mercurial > hg > truffle
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/local/SLReadArgumentNode.java @ 17421:87ea195b66ff
Truffle: Make BranchProfile constructor private and introduce a factory Method BranchProfile.create().
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 13 Oct 2014 17:44:40 +0200 |
parents | abe7128ca473 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/local/SLReadArgumentNode.java Mon Oct 13 17:44:15 2014 +0200 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/local/SLReadArgumentNode.java Mon Oct 13 17:44:40 2014 +0200 @@ -45,7 +45,7 @@ * Profiling information, collected by the interpreter, capturing whether the function was * called with fewer actual arguments than formal arguments. */ - private final BranchProfile outOfBoundsTaken = new BranchProfile(); + private final BranchProfile outOfBoundsTaken = BranchProfile.create(); public SLReadArgumentNode(SourceSection src, int index) { super(src);