Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/IdentityValueProfile.java @ 22064:02015aac6be9
Removing IdentityValueProfile and ExactClassValueProfile classes from the API
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 05 Aug 2015 16:47:04 +0200 |
parents | 9c8c0937da41 |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
22063:b960accdd9b5 | 22064:02015aac6be9 |
---|---|
30 import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; | 30 import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; |
31 | 31 |
32 /** | 32 /** |
33 * Represents a {@link ValueProfile} that speculates on the object identity of a value. | 33 * Represents a {@link ValueProfile} that speculates on the object identity of a value. |
34 */ | 34 */ |
35 public final class IdentityValueProfile extends ValueProfile { | 35 final class IdentityValueProfile extends ValueProfile { |
36 | 36 |
37 private static final Object UNINITIALIZED = new Object(); | 37 private static final Object UNINITIALIZED = new Object(); |
38 private static final Object GENERIC = new Object(); | 38 private static final Object GENERIC = new Object(); |
39 | 39 |
40 @CompilationFinal protected Object cachedValue = UNINITIALIZED; | 40 @CompilationFinal protected Object cachedValue = UNINITIALIZED; |