diff options
author | Dan Bornstein <danfuzz@android.com> | 2010-12-03 15:32:40 -0800 |
---|---|---|
committer | Dan Bornstein <danfuzz@android.com> | 2010-12-03 15:57:18 -0800 |
commit | ccaab18ae6d203108445fef7682065dfbb007657 (patch) | |
tree | 2567a617a239d5fa4584f2abb915e719861a39a1 /opcode-gen | |
parent | a277f14c3702a474e18a9981f23845d7d7521163 (diff) | |
download | dalvik-ccaab18ae6d203108445fef7682065dfbb007657.tar.gz |
Another clarifying rename and a bit more automation.
kNumDalvikInstructions is now kNumPackedOpcodes, there is a new
kMaxOpcodeValue, and both are generated by opcode-gen.
Change-Id: Ic46f1f52d2d21382452c8e777024f4a985ad31d3
Bonus: Reworded the switch and array data comment for clarity.
Diffstat (limited to 'opcode-gen')
-rw-r--r-- | opcode-gen/opcode-gen.awk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opcode-gen/opcode-gen.awk b/opcode-gen/opcode-gen.awk index 9280ed24c..265662591 100644 --- a/opcode-gen/opcode-gen.awk +++ b/opcode-gen/opcode-gen.awk @@ -124,6 +124,13 @@ emission == "libcore-maximum-values" { printf(" MAXIMUM_PACKED_VALUE = %d;\n", MAX_PACKED_OPCODE); } +emission == "libdex-maximum-values" { + emissionHandled = 1; + + printf("#define kMaxOpcodeValue = 0x%x;\n", MAX_OPCODE); + printf("#define kNumPackedOpcodes = 0x%x;\n", MAX_PACKED_OPCODE + 1); +} + emission == "libdex-opcode-enum" { emissionHandled = 1; |