Mercurial > hg > truffle
comparison graal/com.oracle.max.asmdis/src/com/sun/max/asm/gen/InstructionDescriptionCreator.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 |
---|---|
46 instructionDescriptions.add(instructionDescription); | 46 instructionDescriptions.add(instructionDescription); |
47 instructionDescription.setArchitectureManualSection(currentArchitectureManualSection); | 47 instructionDescription.setArchitectureManualSection(currentArchitectureManualSection); |
48 return instructionDescription; | 48 return instructionDescription; |
49 } | 49 } |
50 | 50 |
51 private final List<InstructionDescription_Type> instructionDescriptions = new LinkedList<InstructionDescription_Type>(); | 51 private final List<InstructionDescription_Type> instructionDescriptions = new LinkedList<>(); |
52 | 52 |
53 private static void deepCopy(Object[] src, List<Object> dst) { | 53 private static void deepCopy(Object[] src, List<Object> dst) { |
54 for (Object object : src) { | 54 for (Object object : src) { |
55 if (object instanceof Object[]) { | 55 if (object instanceof Object[]) { |
56 deepCopy((Object[]) object, dst); | 56 deepCopy((Object[]) object, dst); |
59 } | 59 } |
60 } | 60 } |
61 } | 61 } |
62 | 62 |
63 protected InstructionDescription_Type define(Object... specifications) { | 63 protected InstructionDescription_Type define(Object... specifications) { |
64 List<Object> specList = new ArrayList<Object>(specifications.length * 2); | 64 List<Object> specList = new ArrayList<>(specifications.length * 2); |
65 deepCopy(specifications, specList); | 65 deepCopy(specifications, specList); |
66 return defineInstructionDescription(specList); | 66 return defineInstructionDescription(specList); |
67 } | 67 } |
68 | 68 |
69 private String currentArchitectureManualSection; | 69 private String currentArchitectureManualSection; |