summaryrefslogtreecommitdiffstats
path: root/dexdump
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2010-12-01 17:02:26 -0800
committerDan Bornstein <danfuzz@android.com>2010-12-01 17:02:26 -0800
commit9a1f81699cc05b58378ffb9aadb4e97677943791 (patch)
treedc005d72c75a4e81a6a75ae4dd32370655ad0488 /dexdump
parent5befcb64d815614a855199e19a0236ec3a01091c (diff)
downloadandroid_dalvik-9a1f81699cc05b58378ffb9aadb4e97677943791.tar.gz
android_dalvik-9a1f81699cc05b58378ffb9aadb4e97677943791.tar.bz2
android_dalvik-9a1f81699cc05b58378ffb9aadb4e97677943791.zip
It's "opcode" not "opCode".
Similarly "Opcode" not "OpCode". This appears to be the general worldwide consensus on the matter. Other residents of my office didn't seem to mind one way or the other how it's spelled in our code, but for whatever reason, it really bugged me. Change-Id: Ia0b73d19c54aefc0f543a9c9451dda22ee876a59
Diffstat (limited to 'dexdump')
-rw-r--r--dexdump/DexDump.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/dexdump/DexDump.c b/dexdump/DexDump.c
index 780ef5f74..257d63fa8 100644
--- a/dexdump/DexDump.c
+++ b/dexdump/DexDump.c
@@ -708,7 +708,7 @@ static char* indexString(DexFile* pDexFile,
u4 width;
/* TODO: Make the index *always* be in field B, to simplify this code. */
- switch (dexGetInstrFormat(pDecInsn->opCode)) {
+ switch (dexGetInstrFormat(pDecInsn->opcode)) {
case kFmt20bc:
case kFmt21c:
case kFmt35c:
@@ -857,7 +857,7 @@ void dumpInstruction(DexFile* pDexFile, const DexCode* pCode, int insnIdx,
}
}
- if (pDecInsn->opCode == OP_NOP) {
+ if (pDecInsn->opcode == OP_NOP) {
u2 instr = get2LE((const u1*) &insns[insnIdx]);
if (instr == kPackedSwitchSignature) {
printf("|%04x: packed-switch-data (%d units)",
@@ -872,7 +872,7 @@ void dumpInstruction(DexFile* pDexFile, const DexCode* pCode, int insnIdx,
printf("|%04x: nop // spacer", insnIdx);
}
} else {
- printf("|%04x: %s", insnIdx, dexGetOpcodeName(pDecInsn->opCode));
+ printf("|%04x: %s", insnIdx, dexGetOpcodeName(pDecInsn->opcode));
}
if (pDecInsn->indexType != kIndexNone) {
@@ -880,7 +880,7 @@ void dumpInstruction(DexFile* pDexFile, const DexCode* pCode, int insnIdx,
indexBufChars, sizeof(indexBufChars));
}
- switch (dexGetInstrFormat(pDecInsn->opCode)) {
+ switch (dexGetInstrFormat(pDecInsn->opcode)) {
case kFmt10x: // op
break;
case kFmt12x: // op vA, vB
@@ -921,7 +921,7 @@ void dumpInstruction(DexFile* pDexFile, const DexCode* pCode, int insnIdx,
break;
case kFmt21h: // op vAA, #+BBBB0000[00000000]
// The printed format varies a bit based on the actual opcode.
- if (pDecInsn->opCode == OP_CONST_HIGH16) {
+ if (pDecInsn->opcode == OP_CONST_HIGH16) {
s4 value = pDecInsn->vB << 16;
printf(" v%d, #int %d // #%x",
pDecInsn->vA, value, (u2)pDecInsn->vB);
@@ -1093,8 +1093,8 @@ void dumpBytecodes(DexFile* pDexFile, const DexMethod* pDexMethod)
// The plus 1 is to round up for odd size and width.
insnWidth = 4 + ((size * width) + 1) / 2;
} else {
- OpCode opCode = dexOpCodeFromCodeUnit(instr);
- insnWidth = dexGetInstrWidth(opCode);
+ Opcode opcode = dexOpcodeFromCodeUnit(instr);
+ insnWidth = dexGetInstrWidth(opcode);
if (insnWidth == 0) {
fprintf(stderr,
"GLITCH: zero-width instruction at idx=0x%04x\n", insnIdx);