Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLFunctionBodyNode.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 | 7c8ddb4233cd |
children |
comparison
equal
deleted
inserted
replaced
17420:e98150919577 | 17421:87ea195b66ff |
---|---|
45 /** | 45 /** |
46 * Profiling information, collected by the interpreter, capturing whether the function had an | 46 * Profiling information, collected by the interpreter, capturing whether the function had an |
47 * {@link SLReturnNode explicit return statement}. This allows the compiler to generate better | 47 * {@link SLReturnNode explicit return statement}. This allows the compiler to generate better |
48 * code. | 48 * code. |
49 */ | 49 */ |
50 private final BranchProfile exceptionTaken = new BranchProfile(); | 50 private final BranchProfile exceptionTaken = BranchProfile.create(); |
51 private final BranchProfile nullTaken = new BranchProfile(); | 51 private final BranchProfile nullTaken = BranchProfile.create(); |
52 | 52 |
53 public SLFunctionBodyNode(SourceSection src, SLStatementNode bodyNode) { | 53 public SLFunctionBodyNode(SourceSection src, SLStatementNode bodyNode) { |
54 super(src); | 54 super(src); |
55 this.bodyNode = bodyNode; | 55 this.bodyNode = bodyNode; |
56 } | 56 } |