diff options
| author | 2010-11-19 18:12:55 -0800 | |
|---|---|---|
| committer | 2010-11-30 23:48:02 -0800 | |
| commit | 9f3155418d0a504e45bc8c0ce47e11c8689ab36c (patch) | |
| tree | 4e85bab25394019e784f738bbc73a82007a391a3 | |
| parent | 3f89edc8327c03ec9a00a1b71ddd34f8ee54f001 (diff) | |
Dalvik opcode-related fixes.
This makes Debug not hard code the number of opcodes and includes an
api-update of other opcode-related changes done in dalvik.system.
Change-Id: I70d22e1c710f224d75a22e319916724aea53f78d
| -rw-r--r-- | core/java/android/os/Debug.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index d21b5c02ac2f..c56c6d4f3faf 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -40,6 +40,7 @@ import org.apache.harmony.dalvik.ddmc.Chunk; import org.apache.harmony.dalvik.ddmc.ChunkHandler; import org.apache.harmony.dalvik.ddmc.DdmServer; +import dalvik.bytecode.OpcodeInfo; import dalvik.bytecode.Opcodes; import dalvik.system.VMDebug; @@ -865,7 +866,7 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo * </pre> */ public static class InstructionCount { - private static final int NUM_INSTR = 256; + private static final int NUM_INSTR = OpcodeInfo.MAXIMUM_VALUE + 1; private int[] mCounts; |