Tabnine Logo
TruffleTestInvoker$TruffleFrameworkMethod.createTestRootNodes
Code IndexAdd Tabnine to your IDE (free)

How to use
createTestRootNodes
method
in
com.oracle.truffle.tck.TruffleTestInvoker$TruffleFrameworkMethod

Best Java code snippets using com.oracle.truffle.tck.TruffleTestInvoker$TruffleFrameworkMethod.createTestRootNodes (Showing top 2 results out of 315)

origin: org.graalvm.truffle/truffle-tck

Statement createStatement(String testName, FrameworkMethod method, Object test) {
  final TruffleFrameworkMethod truffleMethod = (TruffleFrameworkMethod) method;
  final RootNode[] testNodes = truffleMethod.createTestRootNodes(test);
  if (testNodes == null) {
    return null;
  }
  return new Statement() {
    @Override
    public void evaluate() throws Throwable {
      try (C testContext = createTestContext(testName)) {
        ArrayList<T> callTargets = new ArrayList<>(testNodes.length);
        for (RootNode testNode : testNodes) {
          callTargets.add(createTestCallTarget(testContext, testNode));
        }
        Object[] args = callTargets.toArray();
        for (int i = 0; i < truffleMethod.warmupIterations; i++) {
          truffleMethod.invokeExplosively(test, args);
        }
        for (T callTarget : callTargets) {
          finishWarmup(testContext, callTarget);
        }
        truffleMethod.invokeExplosively(test, args);
      }
    }
  };
}
origin: com.oracle.truffle/truffle-tck

Statement createStatement(String testName, FrameworkMethod method, Object test) {
  final TruffleFrameworkMethod truffleMethod = (TruffleFrameworkMethod) method;
  final RootNode[] testNodes = truffleMethod.createTestRootNodes(test);
  if (testNodes == null) {
    return null;
  }
  return new Statement() {
    @Override
    public void evaluate() throws Throwable {
      ArrayList<T> callTargets = new ArrayList<>(testNodes.length);
      for (RootNode testNode : testNodes) {
        callTargets.add(createTestCallTarget(testNode));
      }
      Object[] args = callTargets.toArray();
      for (int i = 0; i < truffleMethod.warmupIterations; i++) {
        truffleMethod.invokeExplosively(test, args);
      }
      for (T callTarget : callTargets) {
        finishWarmup(callTarget, testName);
      }
      truffleMethod.invokeExplosively(test, args);
    }
  };
}
com.oracle.truffle.tckTruffleTestInvoker$TruffleFrameworkMethodcreateTestRootNodes

Popular methods of TruffleTestInvoker$TruffleFrameworkMethod

  • <init>
  • invokeExplosively

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now