Exemplo n.º 1
0
 public override string ToString()
 {
     if (kind == HeapElemKind.RefObj)
     {
         return(instW.ToString());
     }
     else if (kind == HeapElemKind.StructObj)
     {
         return(varW.ToString());
     }
     else if (kind == HeapElemKind.ArrElemStructObj)
     {
         return(instW.ToString() + " ARRAY_ELEMENT");
     }
     else if (kind == HeapElemKind.StatFldStructObj)
     {
         return(fldW.ToString() + " STATIC_STRUCT_FLD");
     }
     else if (kind == HeapElemKind.InstFldStructObj)
     {
         return(instW.ToString() + "::" + fldW.ToString() + " INSTANCE_STRUCT_FLD");
     }
     else
     {
         return("UNK");
     }
 }
Exemplo n.º 2
0
 public override string ToString()
 {
     if (kind == AddressKind.AddrM)
     {
         return(mRefW.ToString());
     }
     else if (kind == AddressKind.AddrHF)
     {
         return(instW.ToString() + "::" + fldRefW.ToString());
     }
     else if (kind == AddressKind.AddrF)
     {
         return(fldRefW.ToString());
     }
     else if (kind == AddressKind.AddrV)
     {
         return(varW.ToString());
     }
     else
     {
         return("UNK");
     }
 }
Exemplo n.º 3
0
 public override string ToString()
 {
     return instW.ToString();
 }