Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/ValueProfile.java @ 18168:e93507e232c9
Truffle: correct documentation of createPrimitiveProfile.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Sat, 25 Oct 2014 13:24:14 +0100 |
parents | 53afdc71b311 |
children | f57d86eb036f |
comparison
equal
deleted
inserted
replaced
18167:2bf5ea10eea7 | 18168:e93507e232c9 |
---|---|
45 public abstract class ValueProfile { | 45 public abstract class ValueProfile { |
46 | 46 |
47 public abstract <T> T profile(T value); | 47 public abstract <T> T profile(T value); |
48 | 48 |
49 /** | 49 /** |
50 * Returns a {@link ValueProfile} that speculates on the exact class of a value. | 50 * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or object |
51 * identity of a value. | |
51 */ | 52 */ |
52 public static PrimitiveValueProfile createPrimitiveProfile() { | 53 public static PrimitiveValueProfile createPrimitiveProfile() { |
53 return new PrimitiveValueProfile(); | 54 return new PrimitiveValueProfile(); |
54 } | 55 } |
55 | 56 |