From b96f58911e412fdb0ebdd2bda7dbe89a0829b5db Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Thu, 2 Dec 2010 17:19:53 -0800 Subject: [PATCH] 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 --- core/java/android/os/Debug.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index 9c3bc9da9b24f..8d9867e797c5c 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 * */ 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;