congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TruffleLanguage$AccessAPI.nodes
Code IndexAdd Tabnine to your IDE (free)

How to use
nodes
method
in
com.oracle.truffle.api.TruffleLanguage$AccessAPI

Best Java code snippets using com.oracle.truffle.api.TruffleLanguage$AccessAPI.nodes (Showing top 8 results out of 315)

origin: com.oracle.truffle/truffle-api

@Override
public Env createEnv(Object vmObject, LanguageInfo language, OutputStream stdOut, OutputStream stdErr, InputStream stdIn, Map<String, Object> config, OptionValues options,
        String[] applicationArguments) {
  Env env = new Env(vmObject, language, stdOut, stdErr, stdIn, config, options, applicationArguments);
  LinkedHashSet<Object> collectedServices = new LinkedHashSet<>();
  AccessAPI.instrumentAccess().collectEnvServices(collectedServices, API.nodes().getEngineObject(language), language);
  env.services = new ArrayList<>(collectedServices);
  return env;
}
origin: org.graalvm.truffle/truffle-api

@Override
public Env createEnv(Object vmObject, TruffleLanguage<?> language, OutputStream stdOut, OutputStream stdErr, InputStream stdIn, Map<String, Object> config, OptionValues options,
        String[] applicationArguments, FileSystem fileSystem) {
  Env env = new Env(vmObject, language, stdOut, stdErr, stdIn, config, options, applicationArguments, fileSystem);
  LinkedHashSet<Object> collectedServices = new LinkedHashSet<>();
  LanguageInfo info = language.languageInfo;
  AccessAPI.instrumentAccess().collectEnvServices(collectedServices, API.nodes().getEngineObject(info), language);
  env.services = new ArrayList<>(collectedServices);
  return env;
}
origin: org.graalvm.truffle/truffle-api

@Override
public Object evalInContext(Source source, Node node, final MaterializedFrame mFrame) {
  CallTarget target = API.nodes().getLanguage(node.getRootNode()).parse(source, node, mFrame);
  try {
    if (target instanceof RootCallTarget) {
      RootNode exec = ((RootCallTarget) target).getRootNode();
      return exec.execute(mFrame);
    } else {
      throw new IllegalStateException("" + target);
    }
  } catch (Exception ex) {
    if (ex instanceof RuntimeException) {
      throw (RuntimeException) ex;
    }
    throw new RuntimeException(ex);
  }
}
origin: com.oracle.truffle/truffle-api

ExecutableNode fragment = null;
CallTarget target = null;
fragment = API.nodes().getLanguageSpi(info).parseInline(source, node, mFrame);
if (fragment == null) {
  target = API.nodes().getLanguageSpi(info).parse(source, node, mFrame);
origin: com.oracle.truffle/truffle-api

static Nodes nodesAccess() {
  return API.nodes();
}
origin: org.graalvm.truffle/truffle-api

static Nodes nodesAccess() {
  return API.nodes();
}
origin: com.oracle.truffle/truffle-api

@SuppressWarnings("unchecked")
private Env(Object vmObject, LanguageInfo language, OutputStream out, OutputStream err, InputStream in, Map<String, Object> config, OptionValues options, String[] applicationArguments) {
  this.vmObject = vmObject;
  this.language = language;
  this.spi = (TruffleLanguage<Object>) API.nodes().getLanguageSpi(language);
  this.in = in;
  this.err = err;
  this.out = out;
  this.config = config;
  this.options = options;
  this.applicationArguments = applicationArguments == null ? new String[0] : applicationArguments;
  this.valid = true;
}
origin: com.oracle.truffle/truffle-api

void initialize(LanguageInfo language, boolean singleton) {
  this.singletonLanguage = singleton;
  if (!singleton) {
    this.languageInfo = language;
    this.reference = new ContextReference<>(API.nodes().getEngineObject(languageInfo));
  }
}
com.oracle.truffle.apiTruffleLanguage$AccessAPInodes

Popular methods of TruffleLanguage$AccessAPI

  • engineAccess
  • engineSupport
  • instrumentAccess
  • instrumentSupport
  • interopAccess
  • interopSupport
  • nodesAccess

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • Path (java.nio.file)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JButton (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best IntelliJ plugins
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