1 package gov.nasa.jpf.jvm.bytecode; 20 21 import gov.nasa.jpf.jvm.KernelState; 22 import gov.nasa.jpf.jvm.SystemState; 23 import gov.nasa.jpf.jvm.ThreadInfo; 24 25 26 30 public class ASTORE extends LocalVariableInstruction implements StoreInstruction 31 { 32 33 public Instruction execute (SystemState ss, KernelState ks, ThreadInfo th) { 34 boolean ref = th.isOperandRef(); 37 38 th.setLocalVariable(index, th.pop(), ref); 39 40 return getNext(th); 41 } 42 43 public int getByteCode () { 44 switch (index) { 45 case 0: return 0x4b; 46 case 1: return 0x4c; 47 case 2: return 0x4d; 48 case 3: return 0x4e; 49 } 50 51 return 0x3A; } 53 } 54 | Popular Tags |