comparison 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
comparison
equal deleted inserted replaced
17420:e98150919577 17421:87ea195b66ff
43 43
44 /** 44 /**
45 * Profiling information, collected by the interpreter, capturing whether the function was 45 * Profiling information, collected by the interpreter, capturing whether the function was
46 * called with fewer actual arguments than formal arguments. 46 * called with fewer actual arguments than formal arguments.
47 */ 47 */
48 private final BranchProfile outOfBoundsTaken = new BranchProfile(); 48 private final BranchProfile outOfBoundsTaken = BranchProfile.create();
49 49
50 public SLReadArgumentNode(SourceSection src, int index) { 50 public SLReadArgumentNode(SourceSection src, int index) {
51 super(src); 51 super(src);
52 this.index = index; 52 this.index = index;
53 } 53 }