Public Methods | |
SWITCH (int[] match, InstructionHandle[] targets, InstructionHandle target) | |
SWITCH (int[] match, InstructionHandle[] targets, InstructionHandle target, int max_gap) | |
final Instruction | getInstruction () |
final InstructionList | getInstructionList () |
SWITCH (int[] match, InstructionHandle[] targets, InstructionHandle target) | |
SWITCH (int[] match, InstructionHandle[] targets, InstructionHandle target, int max_gap) | |
final Instruction | getInstruction () |
final InstructionList | getInstructionList () |
Private Methods | |
final void | fillup (int max_gap, InstructionHandle target) |
final boolean | matchIsOrdered (int max_gap) |
final void | sort (int l, int r) |
final void | fillup (int max_gap, InstructionHandle target) |
final boolean | matchIsOrdered (int max_gap) |
final void | sort (int l, int r) |
Private Attributes | |
int[] | match |
InstructionHandle[] | targets |
Select | instruction |
int | match_length |
int[] | match |
InstructionHandle[] | targets |
Definition at line 11 of file lib/jpf/de/fub/bytecode/generic/SWITCH.java.
|
Template for switch() constructs. If the match array can be sorted in ascending order with gaps no larger than max_gap between the numbers, a TABLESWITCH instruction is generated, and a LOOKUPSWITCH otherwise. The former may be more efficient, but needs more space. Note, that the key array always will be sorted, though we leave the original arrays unaltered.
Definition at line 36 of file lib/jpf/de/fub/bytecode/generic/SWITCH.java. |
|
Template for switch() constructs. If the match array can be sorted in ascending order with gaps no larger than max_gap between the numbers, a TABLESWITCH instruction is generated, and a LOOKUPSWITCH otherwise. The former may be more efficient, but needs more space. Note, that the key array always will be sorted, though we leave the original arrays unaltered.
Definition at line 36 of file src/de/fub/bytecode/generic/SWITCH.java. |
|
Definition at line 94 of file src/de/fub/bytecode/generic/SWITCH.java. |
|
Definition at line 94 of file lib/jpf/de/fub/bytecode/generic/SWITCH.java. |
|
Sort match and targets array with QuickSort. Definition at line 104 of file src/de/fub/bytecode/generic/SWITCH.java. |
|
Sort match and targets array with QuickSort. Definition at line 104 of file lib/jpf/de/fub/bytecode/generic/SWITCH.java. |