Package org.openquark.cal.internal.runtime.lecc

Examples of org.openquark.cal.internal.runtime.lecc.StandaloneJarGeneratedCodeInfo


        //     {debugCapable},
        //     {directPrimopCalls},
        //     {ignoringStrictnessAnnotations},
        //     {noninterruptibleRuntime});
        //
        final StandaloneJarGeneratedCodeInfo currentConfigGeneratedCodeInfo = StandaloneJarGeneratedCodeInfo.makeFromCurrentConfiguration();
        final JavaTypeName javaTypeName_StandaloneJarGeneratedCodeInfo = JavaTypeName.make(StandaloneJarGeneratedCodeInfo.class);
       
        final JavaExpression generatedCodeInfoInit =
            new JavaExpression.ClassInstanceCreationExpression(
                javaTypeName_StandaloneJarGeneratedCodeInfo,
                new JavaExpression[] {
                    JavaExpression.LiteralWrapper.make(new Integer(currentConfigGeneratedCodeInfo.getCodeVersion())),
                    JavaExpression.LiteralWrapper.make(Boolean.valueOf(currentConfigGeneratedCodeInfo.generateRuntimeStats())),
                    JavaExpression.LiteralWrapper.make(Boolean.valueOf(currentConfigGeneratedCodeInfo.generateCallCounts())),
                    JavaExpression.LiteralWrapper.make(Boolean.valueOf(currentConfigGeneratedCodeInfo.isDebugCapable())),
                    JavaExpression.LiteralWrapper.make(Boolean.valueOf(currentConfigGeneratedCodeInfo.generateDirectPrimopCalls())),
                    JavaExpression.LiteralWrapper.make(Boolean.valueOf(currentConfigGeneratedCodeInfo.isIgnoringStrictnessAnnotations())),
                    JavaExpression.LiteralWrapper.make(Boolean.valueOf(currentConfigGeneratedCodeInfo.isNonInterruptableRuntime()))
                },
                new JavaTypeName[] {
                    JavaTypeName.INT,
                    JavaTypeName.BOOLEAN,
                    JavaTypeName.BOOLEAN,
View Full Code Here


          ((RTExecutionContext)(java.lang.Object)
            executionContext)).getOpaqueValue());
  }

  private static boolean __checkConfig() {
    final StandaloneJarGeneratedCodeInfo generatedCodeInfo =
      new StandaloneJarGeneratedCodeInfo(
        1612,
        false,
        false,
        false,
        true,
        false,
        false);

    if (!generatedCodeInfo.isCompatibleWithCurrentConfiguration()) {
      throw
        new java.lang.IllegalStateException(
          generatedCodeInfo.getConfigurationHints());
    } else {
      return true;
    }
  }
View Full Code Here

TOP

Related Classes of org.openquark.cal.internal.runtime.lecc.StandaloneJarGeneratedCodeInfo

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.