1 19 20 25 26 27 28 29 30 31 32 package soot.coffi; 33 import java.io.*; 34 62 class Instruction_intindex extends Instruction { 63 public int arg_i; 64 public Instruction_intindex(byte c) { super(c); } 65 public String toString(cp_info constant_pool[]) { 66 return super.toString(constant_pool) + argsep + "[" + 67 constant_pool[arg_i].toString(constant_pool) + "]"; 68 } 69 public int nextOffset(int curr) { return curr+3; } 70 public void markCPRefs(boolean[] refs) { refs[arg_i] = true; } 71 public void redirectCPRefs(short redirect[]) { arg_i = redirect[arg_i]; } 72 public int parse(byte bc[],int index) { 73 arg_i = getShort(bc,index); 74 return index+2; 75 } 76 public int compile(byte bc[],int index) { 77 bc[index++] = code; 78 shortToBytes((short)arg_i,bc,index); 79 return index+2; 80 } 81 } 82 | Popular Tags |