use of org.ballerinalang.util.codegen.cpentries.StructureRefCPEntry in project ballerina by ballerina-lang.
the class CPU method createNewStruct.
private static void createNewStruct(WorkerExecutionContext ctx, int[] operands, WorkerData sf) {
int cpIndex = operands[0];
int i = operands[1];
StructureRefCPEntry structureRefCPEntry = (StructureRefCPEntry) ctx.constPool[cpIndex];
StructInfo structInfo = (StructInfo) structureRefCPEntry.getStructureTypeInfo();
sf.refRegs[i] = new BStruct(structInfo.getType());
}
Aggregations