public AddVariableDescriptor ( string name, string type, int startPC, int register ) : void | ||
name | string | variable name. |
type | string | variable type as bytecode descriptor string. |
startPC | int | /// the starting bytecode PC where this variable is live, /// or -1 if it does not have a Java register. /// |
register | int | /// the Java register number of variable /// or -1 if it does not have a Java register. /// |
Résultat | void |
public virtual void AddVariableDescriptor(string name, string type, int startPC, int register)
{
int nameIndex = itsConstantPool.AddUtf8(name);
int descriptorIndex = itsConstantPool.AddUtf8(type);
int[] chunk = new int[] { nameIndex, descriptorIndex, startPC, register };
if (itsVarDescriptors == null)
{
itsVarDescriptors = new ObjArray();
}
itsVarDescriptors.Add(chunk);
}