Package org.renjin.gcc.jimple

Examples of org.renjin.gcc.jimple.SyntheticJimpleType


        // create a new JVM type to back this array
        JimpleClassBuilder recordClass = context.getJimpleOutput().newClass();
        recordClass.setPackageName(context.getMainClass().getPackageName());
        recordClass.setClassName(context.getMainClass().getClassName() + "$" + def.getName());

        SimpleRecordType struct = new SimpleRecordType(new SyntheticJimpleType(recordClass.getFqcn()));
        map.put(recordType.getId(), struct);

        buildFields(struct, recordClass, def);

        return struct;
View Full Code Here


      ImType type = resolveType(varDecl.getType());
 
      type.defineField(mainClass, varDecl.getName(), false);

      globalVariables.put(varDecl.getName(), type.createFieldExpr(
          null, new SyntheticJimpleType(mainClass.getFqcn()),
          varDecl.getName()));
     
    } catch(Exception e) {
      throw new RuntimeException("Exception translating global variable '" + varDecl.getName() + "'", e);
    }
View Full Code Here

  public ImRecordType resolveRecordType(GimpleRecordType recordType) {
    return recordTypeTable.resolveStruct(recordType);
  }

  public JimpleType getInvokerType(MethodRef method) {
    return new SyntheticJimpleType(getInvokerClass(method));
  }
View Full Code Here

  public ImType arrayType(Integer lowerBound, Integer upperBound) {
    throw new UnsupportedOperationException();
  }

  public JimpleType interfaceType() {
    return new SyntheticJimpleType(FunPtrTable.PACKAGE_NAME + "." + interfaceName());
  }
View Full Code Here

TOP

Related Classes of org.renjin.gcc.jimple.SyntheticJimpleType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.