summaryrefslogtreecommitdiffstats
path: root/opcode-gen
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2011-02-02 11:45:53 -0800
committerDan Bornstein <danfuzz@android.com>2011-02-02 11:45:53 -0800
commita754fbb1555f9ac2d14de0ffd0046c780732da5a (patch)
treeca59d428df03ca6b34818022f3737b27b700daa4 /opcode-gen
parent38b861bc63b91114d52ba01e74d31fbf316a5784 (diff)
downloadandroid_dalvik-a754fbb1555f9ac2d14de0ffd0046c780732da5a.tar.gz
android_dalvik-a754fbb1555f9ac2d14de0ffd0046c780732da5a.tar.bz2
android_dalvik-a754fbb1555f9ac2d14de0ffd0046c780732da5a.zip
Move opcode names into OpcodeInfo.
This also allowed me to remove the Instruction argument from the CodeReader visitor methods. Per previous discussion, this also gets rid of the redundant argument output in FindUsages. I can clean up CodeReader some more in a follow-up. Change-Id: I7a65e8d74498e201fd169cddde0d1f19d6f33f81
Diffstat (limited to 'opcode-gen')
-rw-r--r--opcode-gen/opcode-gen.awk9
1 files changed, 4 insertions, 5 deletions
diff --git a/opcode-gen/opcode-gen.awk b/opcode-gen/opcode-gen.awk
index e269abf39..2f1a830eb 100644
--- a/opcode-gen/opcode-gen.awk
+++ b/opcode-gen/opcode-gen.awk
@@ -96,10 +96,9 @@ emission == "dops" {
printf(" public static final Dop %s =\n" \
" new Dop(Opcodes.%s, Opcodes.%s,\n" \
- " Opcodes.%s, Form%s.THE_ONE, %s,\n" \
- " \"%s\");\n\n",
+ " Opcodes.%s, Form%s.THE_ONE, %s);\n\n",
constName[i], constName[i], family[i], nextOp, format[i],
- hasResult[i], name[i]);
+ hasResult[i]);
}
}
@@ -119,9 +118,9 @@ emission == "opcode-info-defs" {
}
printf(" public static final Info %s =\n" \
- " new Info(Opcodes.%s,\n" \
+ " new Info(Opcodes.%s, \"%s\",\n" \
" InstructionCodec.FORMAT_%s, %s);\n\n", \
- constName[i], constName[i], toupper(format[i]), itype);
+ constName[i], constName[i], name[i], toupper(format[i]), itype);
}
}