comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/utilities/ValueProfile.java @ 19973:f7b3b0c5c3e5

Truffle: ValueProfile should extend NodeCloneable
author Andreas Woess <andreas.woess@oracle.com>
date Fri, 20 Mar 2015 15:53:01 +0100
parents 1cde96b96673
children
comparison
equal deleted inserted replaced
19972:f259c81821ef 19973:f7b3b0c5c3e5
22 * or visit www.oracle.com if you need additional information or have any 22 * or visit www.oracle.com if you need additional information or have any
23 * questions. 23 * questions.
24 */ 24 */
25 package com.oracle.truffle.api.utilities; 25 package com.oracle.truffle.api.utilities;
26 26
27 import com.oracle.truffle.api.nodes.*;
28
27 /** 29 /**
28 * Utility class to speculate on certain properties of values. 30 * Utility class to speculate on certain properties of values.
29 * 31 *
30 * Example usage: 32 * Example usage:
31 * 33 *
40 * 42 *
41 * @see #createPrimitiveProfile() 43 * @see #createPrimitiveProfile()
42 * @see #createIdentityProfile() 44 * @see #createIdentityProfile()
43 * @see #createClassProfile() 45 * @see #createClassProfile()
44 */ 46 */
45 public abstract class ValueProfile { 47 public abstract class ValueProfile extends NodeCloneable {
46 48
47 public abstract <T> T profile(T value); 49 public abstract <T> T profile(T value);
48 50
49 /** 51 /**
50 * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or object 52 * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or object