diff options
author | Dan Bornstein <danfuzz@android.com> | 2010-12-02 17:19:53 -0800 |
---|---|---|
committer | Dan Bornstein <danfuzz@android.com> | 2010-12-06 16:02:12 -0800 |
commit | b96f58911e412fdb0ebdd2bda7dbe89a0829b5db (patch) | |
tree | 8a8220b27a1740215153e52b1afef782be102e23 | |
parent | 03b758ef991a483eb9fee705aa0dacdf91a57dd1 (diff) | |
download | frameworks_base-b96f58911e412fdb0ebdd2bda7dbe89a0829b5db.zip frameworks_base-b96f58911e412fdb0ebdd2bda7dbe89a0829b5db.tar.gz frameworks_base-b96f58911e412fdb0ebdd2bda7dbe89a0829b5db.tar.bz2 |
Propagate the concept of "packed opcode" values.
Dalvik now exposes a distinction between "packed" and regular opcode
values. The packed values are more densely defined in the range 0-0x1ff,
whereas the regular values are sparsely defined across the range 0-0xffff.
The only current use for packed values at this level is in opcode
usage reporting, but their use may expand over time.
Change-Id: Ie783b90cb2dcb9df8f3eb19a7c708a53906fdbe4
-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 9c3bc9d..8d9867e 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -866,7 +866,8 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo * </pre> */ public static class InstructionCount { - private static final int NUM_INSTR = OpcodeInfo.MAXIMUM_VALUE + 1; + private static final int NUM_INSTR = + OpcodeInfo.MAXIMUM_PACKED_VALUE + 1; private int[] mCounts; |