protected List<OpenCLField> getRefFields(SootClass soot_class) { OpenCLClass ocl_class = OpenCLScene.v().getOpenCLClass(soot_class); if (ocl_class == null) { System.out.println("ocl_class == null: " + soot_class.getName()); } return ocl_class.getInstanceRefFields(); }
protected List<OpenCLField> getNonRefFields(SootClass soot_class) { OpenCLClass ocl_class = OpenCLScene.v().getOpenCLClass(soot_class); return ocl_class.getInstanceNonRefFields(); }
public void caseClassConstant(ClassConstant arg0) { String value = arg0.getValue(); Type type = m_classConstantReader.stringToType(value); int num = OpenCLScene.v().getClassConstantNumbers().get(type); m_output.append("org_trifort_classConstant(" + num + ")"); }
public void caseNewExpr(NewExpr arg0) { OpenCLScene.v().setUsingGarbageCollector(); m_output.append(" -1 "); }
public void caseNewMultiArrayExpr(NewMultiArrayExpr arg0) { OpenCLScene.v().setUsingGarbageCollector(); OpenCLArrayType array_type = new OpenCLArrayType((ArrayType) arg0.getType()); m_output.append(array_type.invokeNewMultiArrayExpr(arg0)); m_newCalled = true; }
public void caseInstanceOfExpr(InstanceOfExpr arg0) { OpenCLScene.v().addInstanceof(arg0.getCheckType()); OpenCLInstanceof instance_of = new OpenCLInstanceof(arg0.getCheckType()); m_output.append(instance_of.invokeExpr(arg0)); }