Mercurial > hg > truffle
comparison graal/com.oracle.max.asmdis/src/com/sun/max/asm/ia32/IA32GeneralRegister8.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 |
---|---|
32 | 32 |
33 // Note: keep the order such that 'value()' can rely on ordinals: | 33 // Note: keep the order such that 'value()' can rely on ordinals: |
34 | 34 |
35 AL, CL, DL, BL, AH, CH, DH, BH; | 35 AL, CL, DL, BL, AH, CH, DH, BH; |
36 | 36 |
37 public static final Enumerator<IA32GeneralRegister8> ENUMERATOR = new Enumerator<IA32GeneralRegister8>(IA32GeneralRegister8.class); | 37 public static final Enumerator<IA32GeneralRegister8> ENUMERATOR = new Enumerator<>(IA32GeneralRegister8.class); |
38 | 38 |
39 private static final IA32GeneralRegister8[] lowRegisters = {AL, CL, DL, BL}; | 39 private static final IA32GeneralRegister8[] lowRegisters = {AL, CL, DL, BL}; |
40 | 40 |
41 public static IA32GeneralRegister8 lowFrom(GeneralRegister generalRegister) { | 41 public static IA32GeneralRegister8 lowFrom(GeneralRegister generalRegister) { |
42 return lowRegisters[generalRegister.id()]; | 42 return lowRegisters[generalRegister.id()]; |