diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/PrimitiveValueProfile.java @ 19701: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 bc3cd000d9c8
children 126ab00f859c
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() {