コード例 #1
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 + ")");
 }
コード例 #2
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;
 }
コード例 #3
0
 public void caseNewExpr(NewExpr arg0) {
   OpenCLScene.v().setUsingGarbageCollector();
   m_output.append(" -1 ");
 }
コード例 #4
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));
 }