Mercurial > hg > graal-compiler
changeset 19708:6755624bf03d
PrimitiveValueProfile: directly use the field inside the class to highlight its usages.
author | Benoit Daloze <benoit.daloze@jku.at> |
---|---|
date | Wed, 25 Feb 2015 18:31:23 +0100 |
parents | d57ca11a6883 |
children | 678a3de139ad |
files | graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/PrimitiveValueProfile.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/PrimitiveValueProfile.java Thu Mar 05 17:57:36 2015 -0800 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/PrimitiveValueProfile.java Wed Feb 25 18:31:23 2015 +0100 @@ -175,11 +175,11 @@ } public boolean isGeneric() { - return getCachedValue() == GENERIC; + return cachedValue == GENERIC; } public boolean isUninitialized() { - return getCachedValue() == UNINITIALIZED; + return cachedValue == UNINITIALIZED; } public Object getCachedValue() {