Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/KlassLayoutHelperNode.java @ 22604:b00cc0475f31
Update jvmci import: Refactoring: Rename Kind to JavaKind.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 08 Sep 2015 19:57:39 +0200 |
parents | 0e095e2c24e2 |
children | ed489bbcccbb |
comparison
equal
deleted
inserted
replaced
22603:6d339ba0edc5 | 22604:b00cc0475f31 |
---|---|
47 public KlassLayoutHelperNode(@InjectedNodeParameter HotSpotVMConfig config, ValueNode klass) { | 47 public KlassLayoutHelperNode(@InjectedNodeParameter HotSpotVMConfig config, ValueNode klass) { |
48 this(config, klass, null); | 48 this(config, klass, null); |
49 } | 49 } |
50 | 50 |
51 public KlassLayoutHelperNode(@InjectedNodeParameter HotSpotVMConfig config, ValueNode klass, ValueNode guard) { | 51 public KlassLayoutHelperNode(@InjectedNodeParameter HotSpotVMConfig config, ValueNode klass, ValueNode guard) { |
52 super(TYPE, StampFactory.forKind(Kind.Int), (GuardingNode) guard); | 52 super(TYPE, StampFactory.forKind(JavaKind.Int), (GuardingNode) guard); |
53 this.klass = klass; | 53 this.klass = klass; |
54 this.config = config; | 54 this.config = config; |
55 } | 55 } |
56 | 56 |
57 @Override | 57 @Override |
65 if (type != null && !type.isJavaLangObject()) { | 65 if (type != null && !type.isJavaLangObject()) { |
66 if (!type.isArray() && !type.isInterface()) { | 66 if (!type.isArray() && !type.isInterface()) { |
67 /* | 67 /* |
68 * Definitely some form of instance type. | 68 * Definitely some form of instance type. |
69 */ | 69 */ |
70 return updateStamp(StampFactory.forInteger(Kind.Int, config.klassLayoutHelperNeutralValue, Integer.MAX_VALUE)); | 70 return updateStamp(StampFactory.forInteger(JavaKind.Int, config.klassLayoutHelperNeutralValue, Integer.MAX_VALUE)); |
71 } | 71 } |
72 if (type.isArray()) { | 72 if (type.isArray()) { |
73 return updateStamp(StampFactory.forInteger(Kind.Int, Integer.MIN_VALUE, config.klassLayoutHelperNeutralValue - 1)); | 73 return updateStamp(StampFactory.forInteger(JavaKind.Int, Integer.MIN_VALUE, config.klassLayoutHelperNeutralValue - 1)); |
74 } | 74 } |
75 } | 75 } |
76 } | 76 } |
77 } | 77 } |
78 return false; | 78 return false; |