Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/TypeProfileProxyNode.java @ 10001:38d7b55f87b0
added instanceof snippets that for a profile with 100% precise coverage of seen types.
This snippet deoptimizes on any path that contradicts the profile.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 11 Jun 2013 22:02:23 +0200 |
parents | 2777aafe689b |
children | c483912aaf70 |
comparison
equal
deleted
inserted
replaced
10000:d9c14b1828fc | 10001:38d7b55f87b0 |
---|---|
28 import com.oracle.graal.nodes.calc.*; | 28 import com.oracle.graal.nodes.calc.*; |
29 import com.oracle.graal.nodes.spi.*; | 29 import com.oracle.graal.nodes.spi.*; |
30 import com.oracle.graal.nodes.type.*; | 30 import com.oracle.graal.nodes.type.*; |
31 | 31 |
32 /** | 32 /** |
33 * A node that attached a type profile to a proxied input node. | 33 * A node that attaches a type profile to a proxied input node. |
34 */ | 34 */ |
35 public final class TypeProfileProxyNode extends FloatingNode implements Canonicalizable, Node.IterableNodeType { | 35 public final class TypeProfileProxyNode extends FloatingNode implements Canonicalizable, Node.IterableNodeType { |
36 | 36 |
37 @Input private ValueNode object; | 37 @Input private ValueNode object; |
38 private final JavaTypeProfile profile; | 38 private final JavaTypeProfile profile; |