Examples of ImFunctionType


Examples of org.renjin.gcc.translate.type.ImFunctionType

    JimpleType returnType = context.resolveType(type.getReturnType()).returnType();
    List<JimpleType> paramTypes = Lists.newArrayList();
    for (GimpleType paramType : type.getArgumentTypes()) {
      paramTypes.add(context.resolveType(paramType).paramType());
    }
    return new ImFunctionType(returnType, paramTypes);
  }
View Full Code Here

Examples of org.renjin.gcc.translate.type.ImFunctionType

    }
    return PACKAGE_NAME + "." + signature.interfaceName();
  }

  public String getInterfaceName(MethodRef ref) {
    return getInterfaceName(new ImFunctionType(ref));
  }
View Full Code Here

Examples of org.renjin.gcc.translate.type.ImFunctionType

    }
    return invokerName;
  }

  private String invokerName(MethodRef method) {
    return method.getClassName() + "$" + method.getMethodName() + "$" + new ImFunctionType(method).interfaceName();
  }
View Full Code Here

Examples of org.renjin.gcc.translate.type.ImFunctionType

  }

  @Override
  public void writeCall(FunctionContext context, GimpleCall call) {
   
    ImFunctionType functionType = getFunctionType(context, call);
    FunPtrVar var = getFunPtrVar(context, call);

    StringBuilder callExpr = new StringBuilder();
    callExpr.append("interfaceinvoke ")
        .append(var.getJimpleVariable())
        .append(".")
        .append(functionType.jimpleSignature())
        .append(Marshallers.marshallParamList(context, call, functionType.getParams()));

    Marshallers.writeCall(context, call, callExpr.toString(), functionType.getReturnType());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.