Add utility type constant

This commit is contained in:
Uwe Schindler 2016-05-20 11:05:40 +02:00
parent 87ab39613d
commit f5fc60ac67
2 changed files with 3 additions and 2 deletions

View File

@ -69,6 +69,7 @@ public final class Definition {
public static final Type defobjType = INSTANCE.getType("Def");
public static final Type stringType = INSTANCE.getType("String");
public static final Type exceptionType = INSTANCE.getType("Exception");
public static final Type utilityType = INSTANCE.getType("Utility");
public enum Sort {
VOID( void.class , 0 , true , false , false , false ),

View File

@ -493,7 +493,7 @@ public final class EComp extends AExpression {
if (right.isNull) {
adapter.ifNull(jump);
} else if (operation == Operation.EQ) {
adapter.invokeStatic(definition.getType("Utility").type, CHECKEQUALS);
adapter.invokeStatic(Definition.utilityType.type, CHECKEQUALS);
if (branch) {
adapter.ifZCmp(MethodWriter.NE, jump);
@ -507,7 +507,7 @@ public final class EComp extends AExpression {
if (right.isNull) {
adapter.ifNonNull(jump);
} else if (operation == Operation.NE) {
adapter.invokeStatic(definition.getType("Utility").type, CHECKEQUALS);
adapter.invokeStatic(Definition.utilityType.type, CHECKEQUALS);
adapter.ifZCmp(MethodWriter.EQ, jump);
} else {
adapter.ifCmp(rtype, MethodWriter.NE, jump);