# HG changeset patch # User Benoit Daloze # Date 1424885483 -3600 # Node ID 6755624bf03d269ef1e1755d6dc4d4d4a01e8e3b # Parent d57ca11a6883931e9d89cec4d210d6d14af79423 PrimitiveValueProfile: directly use the field inside the class to highlight its usages. diff -r d57ca11a6883 -r 6755624bf03d graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/PrimitiveValueProfile.java --- 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() {