Attach handling of "this" to ProtoParameter

This commit is contained in:
caheckman 2020-07-24 15:31:08 -04:00
parent bcc0f7fe38
commit 004a99bb87
29 changed files with 338 additions and 149 deletions

View file

@ -103,7 +103,7 @@ public class ConstantPoolJava extends ConstantPool {
new ParameterDefinitionImpl("", params.get(i), null);
paramDefs[i] = currentParam;
}
res.hasThisPtr = false;
funcDef.setGenericCallingConvention(GenericCallingConvention.stdcall);
}
//invokeinterface, invokespecial, and invokevirtual do have a this pointer
else {
@ -116,7 +116,7 @@ public class ConstantPoolJava extends ConstantPool {
new ParameterDefinitionImpl("", params.get(i - 1), null);
paramDefs[i] = currentParam;
}
res.hasThisPtr = true;
funcDef.setGenericCallingConvention(GenericCallingConvention.thiscall);
}
funcDef.setArguments(paramDefs);
res.type = new PointerDataType(funcDef);