diff options
Diffstat (limited to 'vm/compiler/codegen/x86/CodegenDriver.c')
| -rw-r--r-- | vm/compiler/codegen/x86/CodegenDriver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vm/compiler/codegen/x86/CodegenDriver.c b/vm/compiler/codegen/x86/CodegenDriver.c index 026a0b54c..60f003bc7 100644 --- a/vm/compiler/codegen/x86/CodegenDriver.c +++ b/vm/compiler/codegen/x86/CodegenDriver.c @@ -24,7 +24,7 @@ * applicable directory below this one. */ -static int opcodeCoverage[256]; +static int opcodeCoverage[kNumDalvikInstructions]; static intptr_t templateEntryOffsets[TEMPLATE_LAST_MARK]; /* @@ -196,13 +196,13 @@ void dvmCompilerArchDump(void) streak = i = 0; buf[0] = 0; - while (opcodeCoverage[i] == 0 && i < 256) { + while (opcodeCoverage[i] == 0 && i < kNumDalvikInstructions) { i++; } - if (i == 256) { + if (i == kNumDalvikInstructions) { return; } - for (start = i++, streak = 1; i < 256; i++) { + for (start = i++, streak = 1; i < kNumDalvikInstructions; i++) { if (opcodeCoverage[i]) { streak++; } else { @@ -212,10 +212,10 @@ void dvmCompilerArchDump(void) sprintf(buf+strlen(buf), "%x-%x,", start, start + streak - 1); } streak = 0; - while (opcodeCoverage[i] == 0 && i < 256) { + while (opcodeCoverage[i] == 0 && i < kNumDalvikInstructions) { i++; } - if (i < 256) { + if (i < kNumDalvikInstructions) { streak = 1; start = i; } |
