Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/ValueProfile.java @ 18845:f57d86eb036f
removed Node factory methods
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 12 Jan 2015 20:39:04 +0100 |
parents | e93507e232c9 |
children | 1cde96b96673 |
comparison
equal
deleted
inserted
replaced
18844:f2261069ba99 | 18845:f57d86eb036f |
---|---|
24 */ | 24 */ |
25 package com.oracle.truffle.api.utilities; | 25 package com.oracle.truffle.api.utilities; |
26 | 26 |
27 /** | 27 /** |
28 * Utility class to speculate on certain properties of values. | 28 * Utility class to speculate on certain properties of values. |
29 * | 29 * |
30 * Example usage: | 30 * Example usage: |
31 * | 31 * |
32 * <pre> | 32 * <pre> |
33 * private final ValueProfile classProfile = ValueProfile.createClassProfile(); | 33 * private final ValueProfile classProfile = ValueProfile.createClassProfile(); |
34 * | 34 * |
35 * return classProfile.profile(value); | 35 * return classProfile.profile(value); |
36 * </pre> | 36 * </pre> |
37 * | 37 * |
38 * All instances of {@code ValueProfile} (and subclasses) must be held in {@code final} fields for | 38 * All instances of {@code ValueProfile} (and subclasses) must be held in {@code final} fields for |
39 * compiler optimizations to take effect. | 39 * compiler optimizations to take effect. |
40 * | 40 * |
41 * @see #createPrimitiveProfile() | 41 * @see #createPrimitiveProfile() |
42 * @see #createIdentityProfile() | 42 * @see #createIdentityProfile() |
43 * @see #createClassProfile() | 43 * @see #createClassProfile() |
44 */ | 44 */ |
45 public abstract class ValueProfile { | 45 public abstract class ValueProfile { |