aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.c
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2010-11-10 11:26:52 -0800
committerDan Bornstein <danfuzz@android.com>2010-11-10 12:12:39 -0800
commitff70f76988296fe8b2521c17b6cc1968c774b641 (patch)
tree57b298806c1ef4ae51b180f6f05a07be7808e11f /vm/compiler/codegen/arm/CodegenDriver.c
parent7b3e9b0886f2b716b004f0377866988ae39a136e (diff)
Simplify the instruction decoder.
The decoder for format 35mi was *mostly* identical to the one for 35c/35ms. The one place where it differed was in the allowing (or not) of a fifth argument. I combined the two blocks and just added an additional format check in the five-argument case. I ended up rewriting the stuff to pull arguments into the args array, because while the original loop at the core of it was attractively simple, the extra stuff around it just made the code obscure. With this change, the code just does switch(count) and has a nice little cascade. While I was in the territory, I did a couple other minor cleanups. Change-Id: Ib75d47eae92a91571445751789d56feeb4e0ca81
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions