973171bb01a052a302e8674b5f617383bac0647a |
|
03-Dec-2010 |
Dan Bornstein <danfuzz@android.com> |
Clean up the opcode-gen script. There was way too much string duplication, and it needed at least a bit more commenting. Change-Id: Id31ee1fd260db6f4afe301764c60de7c63b3f729
|
d12de172a5e18f3bef8a98e3f43a14565266451b |
|
03-Dec-2010 |
Dan Bornstein <danfuzz@android.com> |
Give the awk script its own file. The embedded awk script totally dwarfed the shell script driver. It was getting pretty ridiculous. (Ok ok, maybe the fact that this uses awk in the first place is itself ridiculous.) Change-Id: Ia53dbbff636eab7aeb44ff24013c62494ef86da0
|
df4daaf8f41e3dcaa8221f54273338160dd43138 |
|
01-Dec-2010 |
Dan Bornstein <danfuzz@android.com> |
Rename OpCode.h -> DexOpcodes.h. Also incorporate the former contents of OpCodeNames.h. This is a small attempt to increase naming consistency in libdex. There will be a bit more to come, in a follow-up. Change-Id: Ia7ab06042dde2e19eda02ef1fee72fb4260e899d
|
111221644c5b7b1d4f426d02786aeebf1addc8f6 |
|
01-Dec-2010 |
Dan Bornstein <danfuzz@android.com> |
Add more "extended opcode" structure to libdex. Although we don't yet generate any of the extended opcodes, this change makes it a bit easier to add them. In particular, we now differentiate between the raw opcode in a code unit and an associated "packed opcode number." The packed opcode space is densely populated in the range 0x000-0x1ff (though there will still be a few unused slots), whereas the raw opcode values are sparse throughout the range 0x0000-0xffff. The OpCode enum is redefined/clarified to have packed, not sparse, opcode values. Change-Id: Ie3208a258648fbf044d344646f66c49ad24c31b2
|
caf4e5afde99eda3226643c9a28d1e38b83714fe |
|
30-Nov-2010 |
Dan Bornstein <danfuzz@android.com> |
Code to generate libcore's Dalvik opcode code. That was a mouthful. Change-Id: I49152fdacbfa9593e7a95f5c120fea023b06d03b
|
8424432a87c784547e4510bca538eaedc312e40d |
|
17-Nov-2010 |
Dan Bornstein <danfuzz@android.com> |
Generate the tables in InstrUtils.c...almost. This patch adds code to opcode-gen to generate the opcode info tables currently built at vm start time, but they are left commented out for now. I wanted to separate the work of getting these tables generated from the work of getting those new tables hooked up, and this seemed like a reasonable way to cut through the larger effort. To be clear, I've already verified that the data in the new pregenerated tables matches what's in the status quo. Change-Id: Ie73dc6c6a5721e8f714f845c97b5338141995770
|
d03baafc41fe04167d0a8ba01d8cbc9bcbed8195 |
|
17-Nov-2010 |
Dan Bornstein <danfuzz@android.com> |
Generate the contents of OpCodeNames.c. This was another one that was pretty easy to add to opcode-gen. I did end up tweaking opcode-gen to make it obvious that the two forms of name are different by more than just upper vs. lower case, especially because I duplicated the original distinction of the optimized opcodes having extra prefix characters in their human-oriented names but not in the names when used as programming constants. Change-Id: I5062442540d26318914964bd2722cc32380b19ca
|
11a4a79b09a2be2bd7a7141ce112de3ad0432e53 |
|
16-Nov-2010 |
Dan Bornstein <danfuzz@android.com> |
Generate most of OpCode.h using opcode-gen. This was the easiest bit to tackle in libdex. More to come! Change-Id: I3f79039ce98951d694d2c896ee1c7a60b417bc49
|
82dbe1c22c6a1088f73f1e11e5cacbdd492ca79d |
|
16-Nov-2010 |
Dan Bornstein <danfuzz@android.com> |
Promote opcode-gen to the dalvik directory. This tool will soon be used to generate code in libdex, so it doesn't make sense for it to live in the dx directory. Change-Id: I63ff7ccceac08fbe314fb0782dc8f2b5d75d155a
|