Mercurial > hg > truffle
comparison graal/com.oracle.max.asmdis/src/com/sun/max/asm/gen/cisc/ia32/IA32Template.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 |
---|---|
80 case NONE: | 80 case NONE: |
81 // Our external assembler (gas) cannot generate these case and they seem redundant anyway, | 81 // Our external assembler (gas) cannot generate these case and they seem redundant anyway, |
82 // so for now we do not produce them: | 82 // so for now we do not produce them: |
83 TemplateNotNeededException.raise(); | 83 TemplateNotNeededException.raise(); |
84 } | 84 } |
85 addParameter(new X86EnumerableParameter<Scale>(designation, ParameterPlace.SIB_SCALE, Scale.ENUMERATOR)); | 85 addParameter(new X86EnumerableParameter<>(designation, ParameterPlace.SIB_SCALE, Scale.ENUMERATOR)); |
86 } | 86 } |
87 | 87 |
88 @Override | 88 @Override |
89 protected void organize_M(X86Operand.Designation designation) throws TemplateNotNeededException { | 89 protected void organize_M(X86Operand.Designation designation) throws TemplateNotNeededException { |
90 switch (context().modCase()) { | 90 switch (context().modCase()) { |
226 default: | 226 default: |
227 throw ProgramError.unexpected(); | 227 throw ProgramError.unexpected(); |
228 } | 228 } |
229 break; | 229 break; |
230 case Cd: { | 230 case Cd: { |
231 addParameter(new X86EnumerableParameter<ControlRegister>(designation, ParameterPlace.MOD_REG, ControlRegister.ENUMERATOR)); | 231 addParameter(new X86EnumerableParameter<>(designation, ParameterPlace.MOD_REG, ControlRegister.ENUMERATOR)); |
232 break; | 232 break; |
233 } | 233 } |
234 case Dd: { | 234 case Dd: { |
235 addParameter(new X86EnumerableParameter<DebugRegister>(designation, ParameterPlace.MOD_REG, DebugRegister.ENUMERATOR)); | 235 addParameter(new X86EnumerableParameter<>(designation, ParameterPlace.MOD_REG, DebugRegister.ENUMERATOR)); |
236 break; | 236 break; |
237 } | 237 } |
238 case Eb: { | 238 case Eb: { |
239 organize_E(designation, ParameterPlace.MOD_RM, IA32GeneralRegister8.ENUMERATOR, testArgumentExclusion); | 239 organize_E(designation, ParameterPlace.MOD_RM, IA32GeneralRegister8.ENUMERATOR, testArgumentExclusion); |
240 break; | 240 break; |