* @see org.jnode.vm.classmgr.VmClassLoader#disassemble(org.jnode.vm.classmgr.VmMethod,
* int, boolean, java.io.Writer)
*/
public void disassemble(VmMethod vmMethod, int optLevel,
boolean enableTestCompilers, Writer writer) {
final NativeCodeCompiler cmps[];
int index;
if (enableTestCompilers) {
index = optLevel;
optLevel += arch.getCompilers().length;
cmps = arch.getTestCompilers();
} else {
index = optLevel;
cmps = arch.getCompilers();
}
final NativeCodeCompiler cmp;
if (index < 0) {
index = 0;
} else if (index >= cmps.length) {
index = cmps.length - 1;
}
cmp = cmps[index];
cmp.disassemble(vmMethod, getResolver(), optLevel, writer);
}