コード例 #1
0
 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();
 }
コード例 #2
0
 protected List<OpenCLField> getNonRefFields(SootClass soot_class) {
   OpenCLClass ocl_class = OpenCLScene.v().getOpenCLClass(soot_class);
   return ocl_class.getInstanceNonRefFields();
 }
コード例 #3
0
 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 + ")");
 }
コード例 #4
0
 public void caseNewExpr(NewExpr arg0) {
   OpenCLScene.v().setUsingGarbageCollector();
   m_output.append(" -1 ");
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 public void caseInstanceOfExpr(InstanceOfExpr arg0) {
   OpenCLScene.v().addInstanceof(arg0.getCheckType());
   OpenCLInstanceof instance_of = new OpenCLInstanceof(arg0.getCheckType());
   m_output.append(instance_of.invokeExpr(arg0));
 }