# HG changeset patch # User Tom Rodriguez # Date 1386441282 -3600 # Node ID 14100434f4219da47baa8f5c9c13dddc84ac0b6b # Parent 785bbb6192384d072c2f2e6d680231b52c3d8945 fixed uses of Value.ILLEGAL diff -r 785bbb619238 -r 14100434f421 graal/com.oracle.graal.compiler.ptx/src/com/oracle/graal/compiler/ptx/PTXLIRGenerator.java --- a/graal/com.oracle.graal.compiler.ptx/src/com/oracle/graal/compiler/ptx/PTXLIRGenerator.java Sat Dec 07 19:30:16 2013 +0100 +++ b/graal/com.oracle.graal.compiler.ptx/src/com/oracle/graal/compiler/ptx/PTXLIRGenerator.java Sat Dec 07 19:34:42 2013 +0100 @@ -89,7 +89,7 @@ public PTXLIRGenerator(StructuredGraph graph, Providers providers, FrameMap frameMap, CallingConvention cc, LIR lir) { super(graph, providers, frameMap, cc, lir); lir.spillMoveFactory = new PTXSpillMoveFactory(); - int callVariables = cc.getArgumentCount() + (cc.getReturn() == Value.ILLEGAL ? 0 : 1); + int callVariables = cc.getArgumentCount() + (cc.getReturn().equals(Value.ILLEGAL) ? 0 : 1); lir.setFirstVariableNumber(callVariables); nextPredRegNum = 0; } @@ -139,7 +139,7 @@ AllocatableValue[] params = incomingArguments.getArguments(); int argCount = incomingArguments.getArgumentCount(); - if (returnObject == Value.ILLEGAL) { + if (returnObject.equals(Value.ILLEGAL)) { params = incomingArguments.getArguments(); append(new PTXParameterOp(params, false)); } else { diff -r 785bbb619238 -r 14100434f421 graal/com.oracle.graal.lir.ptx/src/com/oracle/graal/lir/ptx/PTXAddressValue.java --- a/graal/com.oracle.graal.lir.ptx/src/com/oracle/graal/lir/ptx/PTXAddressValue.java Sat Dec 07 19:30:16 2013 +0100 +++ b/graal/com.oracle.graal.lir.ptx/src/com/oracle/graal/lir/ptx/PTXAddressValue.java Sat Dec 07 19:34:42 2013 +0100 @@ -68,7 +68,7 @@ } public PTXAddress toAddress() { - // Register baseReg = base == Value.ILLEGAL ? Register.None : asRegister(base); + // Register baseReg = base.equals( == Value.ILLEGAL) ? Register.None : asRegister(base); return new PTXAddress((Variable) base, displacement); } diff -r 785bbb619238 -r 14100434f421 graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCMove.java --- a/graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCMove.java Sat Dec 07 19:30:16 2013 +0100 +++ b/graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCMove.java Sat Dec 07 19:34:42 2013 +0100 @@ -116,7 +116,7 @@ } public boolean makeNullCheckFor(Value value, LIRFrameState nullCheckState, int implicitNullCheckLimit) { - if (state == null && value.equals(address.base) && address.index == Value.ILLEGAL && address.displacement >= 0 && address.displacement < implicitNullCheckLimit) { + if (state == null && value.equals(address.base) && address.index.equals(Value.ILLEGAL) && address.displacement >= 0 && address.displacement < implicitNullCheckLimit) { state = nullCheckState; return true; }