OSDN Git Service

Implement chaining up to the first 64 cases in a switch statement.
[android-x86/dalvik.git] / vm / compiler / CompilerIR.h
index 35611a3..24e9b37 100644 (file)
@@ -171,6 +171,12 @@ typedef struct CompilationUnit {
     /* Map SSA names to location */
     RegLocation *regLocation;
     int sequenceNumber;
+
+    /*
+     * Set to the Dalvik PC of the switch instruction if it has more than
+     * MAX_CHAINED_SWITCH_CASES cases.
+     */
+    const u2 *switchOverflowPad;
 } CompilationUnit;
 
 BasicBlock *dvmCompilerNewBB(BBType blockType);