Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/BinaryConditionProfile.java @ 22501:a63bda98cfdb
Extract profiles into separate package. Add isProfilingEnabled in TruffleRuntime to disable profiling in the default runtime; Add low overhead profiles for primitives; Add LoopConditionProfile; Profile footprint/threadsafety improvements; Make toString implementations more consistent; Greatly enhanced javadoc documentation for profiles; Deprecate old profiles
author | Christian Humer <christian.humer@oracle.com> |
---|---|
date | Wed, 16 Dec 2015 16:38:13 +0100 |
parents | dc83cc1f94f2 |
children |
comparison
equal
deleted
inserted
replaced
22500:fbe1eb7b4172 | 22501:a63bda98cfdb |
---|---|
26 | 26 |
27 import com.oracle.truffle.api.CompilerDirectives; | 27 import com.oracle.truffle.api.CompilerDirectives; |
28 import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; | 28 import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; |
29 | 29 |
30 /** | 30 /** |
31 * Utility class to speculate on conditions to be never true or to be never false. Condition | 31 * @deprecated package name renamed to {@link com.oracle.truffle.api.profiles.ConditionProfile} |
32 * profiles are intended to be used as part of if conditions. | 32 * instead |
33 * | |
34 * @see ConditionProfile#createBinaryProfile() | |
35 */ | 33 */ |
34 @SuppressWarnings("deprecation") | |
35 @Deprecated | |
36 public final class BinaryConditionProfile extends ConditionProfile { | 36 public final class BinaryConditionProfile extends ConditionProfile { |
37 | 37 |
38 @CompilationFinal private boolean wasTrue; | 38 @CompilationFinal private boolean wasTrue; |
39 @CompilationFinal private boolean wasFalse; | 39 @CompilationFinal private boolean wasFalse; |
40 | 40 |