comparison graal/com.oracle.max.asmdis/src/com/sun/max/asm/gen/cisc/amd64/AMD64Template.java @ 4142:bc8527f3071c

Adjust code base to new level of warnings.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 18 Dec 2011 05:24:06 +0100
parents e233f5660da4
children
comparison
equal deleted inserted replaced
4141:04d21be7a24f 4142:bc8527f3071c
98 case NONE: 98 case NONE:
99 // Our external assembler (gas) cannot generate these cases and they seem redundant anyway, 99 // Our external assembler (gas) cannot generate these cases and they seem redundant anyway,
100 // so for now we do not produce them: 100 // so for now we do not produce them:
101 TemplateNotNeededException.raise(); 101 TemplateNotNeededException.raise();
102 } 102 }
103 addParameter(new X86EnumerableParameter<Scale>(designation, ParameterPlace.SIB_SCALE, Scale.ENUMERATOR)); 103 addParameter(new X86EnumerableParameter<>(designation, ParameterPlace.SIB_SCALE, Scale.ENUMERATOR));
104 } 104 }
105 105
106 /** 106 /**
107 * Populate templates for ModRM Memory Reference operands. See "Table A-13. ModRM Memory References, 16-Bit Addressing" and 107 * Populate templates for ModRM Memory Reference operands. See "Table A-13. ModRM Memory References, 16-Bit Addressing" and
108 * "Table A-15. ModRM Memory References, 32-Bit and 64-Bit Addressing". 108 * "Table A-15. ModRM Memory References, 32-Bit and 64-Bit Addressing".
221 221
222 public void visitOperandCode(OperandCode operandCode, X86Operand.Designation designation, ArgumentRange argumentRange, TestArgumentExclusion testArgumentExclusion) 222 public void visitOperandCode(OperandCode operandCode, X86Operand.Designation designation, ArgumentRange argumentRange, TestArgumentExclusion testArgumentExclusion)
223 throws TemplateNotNeededException { 223 throws TemplateNotNeededException {
224 switch (operandCode) { 224 switch (operandCode) {
225 case Cq: { 225 case Cq: {
226 addParameter(new X86EnumerableParameter<ControlRegister>(designation, ParameterPlace.MOD_REG, ControlRegister.ENUMERATOR)); 226 addParameter(new X86EnumerableParameter<>(designation, ParameterPlace.MOD_REG, ControlRegister.ENUMERATOR));
227 break; 227 break;
228 } 228 }
229 case Dq: { 229 case Dq: {
230 addParameter(new X86EnumerableParameter<DebugRegister>(designation, ParameterPlace.MOD_REG, DebugRegister.ENUMERATOR)); 230 addParameter(new X86EnumerableParameter<>(designation, ParameterPlace.MOD_REG, DebugRegister.ENUMERATOR));
231 break; 231 break;
232 } 232 }
233 case Eb: { 233 case Eb: {
234 organize_E(designation, ParameterPlace.MOD_RM_REXB, AMD64GeneralRegister8.ENUMERATOR, testArgumentExclusion); 234 organize_E(designation, ParameterPlace.MOD_RM_REXB, AMD64GeneralRegister8.ENUMERATOR, testArgumentExclusion);
235 break; 235 break;