Tabnine Logo
CompilerDirectives.transferToInterpreterAndInvalidate
Code IndexAdd Tabnine to your IDE (free)

How to use
transferToInterpreterAndInvalidate
method
in
com.oracle.truffle.api.CompilerDirectives

Best Java code snippets using com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate (Showing top 20 results out of 315)

origin: com.oracle.truffle/truffle-api

/**
 * Creates an exception thrown to enter a slow path.
 *
 * @since 0.8 or earlier
 */
public SlowPathException(String message) {
  super(message);
  CompilerDirectives.transferToInterpreterAndInvalidate();
}
origin: com.oracle.truffle/truffle-api

/**
 * Creates an exception thrown to enter a slow path.
 *
 * @since 0.8 or earlier
 */
public SlowPathException(Throwable cause) {
  super(cause);
  CompilerDirectives.transferToInterpreterAndInvalidate();
}
origin: org.graalvm.truffle/truffle-api

@Override
public void enter() {
  if (!visited) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    visited = true;
  }
}
origin: com.oracle.truffle/truffle-api

Object getPolyglotGuestBindings() {
  Object bindings = this.polyglotGuestBindings;
  if (bindings == null) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    initializeLanguageBindings();
    bindings = polyglotGuestBindings;
    assert bindings != null;
  }
  return bindings;
}
origin: com.oracle.truffle/truffle-api

@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
  int state = state_;
  if (state != 0 /* is-active accessWithTarget(EmptyGlobalBindings) */ && arg0Value instanceof EmptyGlobalBindings) {
    EmptyGlobalBindings arg0Value_ = (EmptyGlobalBindings) arg0Value;
    return accessWithTarget(arg0Value_);
  }
  CompilerDirectives.transferToInterpreterAndInvalidate();
  return executeAndSpecialize(arg0Value);
}
origin: com.oracle.truffle/truffle-api

@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
  int state = state_;
  if (state != 0 /* is-active accessWithTarget(EmptyGlobalBindings) */ && arg0Value instanceof EmptyGlobalBindings) {
    EmptyGlobalBindings arg0Value_ = (EmptyGlobalBindings) arg0Value;
    return accessWithTarget(arg0Value_);
  }
  CompilerDirectives.transferToInterpreterAndInvalidate();
  return executeAndSpecialize(arg0Value);
}
origin: com.oracle.truffle/truffle-api

private LookupFieldNode lookupField() {
  if (lookupField == null) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    lookupField = insert(LookupFieldNode.create());
  }
  return lookupField;
}
origin: com.oracle.truffle/truffle-api

private LookupConstructorNode lookupConstructor() {
  if (lookupConstructor == null) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    lookupConstructor = insert(LookupConstructorNode.create());
  }
  return lookupConstructor;
}
origin: com.oracle.truffle/truffle-api

  private KeyInfoCacheNode keyInfoCache() {
    if (keyInfoCache == null) {
      CompilerDirectives.transferToInterpreterAndInvalidate();
      keyInfoCache = insert(KeyInfoCacheNode.create());
    }
    return keyInfoCache;
  }
}
origin: com.oracle.truffle/truffle-api

@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
  int state = state_;
  if (state != 0 /* is-active accessWithTarget(VariableNamesObject) */ && arg0Value instanceof VariableNamesObject) {
    VariableNamesObject arg0Value_ = (VariableNamesObject) arg0Value;
    return accessWithTarget(arg0Value_);
  }
  CompilerDirectives.transferToInterpreterAndInvalidate();
  return executeAndSpecialize(arg0Value);
}
origin: com.oracle.truffle/truffle-api

@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
  int state = state_;
  if (state != 0 /* is-active accessWithTarget(JavaObject) */ && arg0Value instanceof JavaObject) {
    JavaObject arg0Value_ = (JavaObject) arg0Value;
    return accessWithTarget(arg0Value_);
  }
  CompilerDirectives.transferToInterpreterAndInvalidate();
  return executeAndSpecialize(arg0Value);
}
origin: com.oracle.truffle/truffle-api

@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
  int state = state_;
  if (state != 0 /* is-active accessWithTarget(JavaObject) */ && arg0Value instanceof JavaObject) {
    JavaObject arg0Value_ = (JavaObject) arg0Value;
    return accessWithTarget(arg0Value_);
  }
  CompilerDirectives.transferToInterpreterAndInvalidate();
  return executeAndSpecialize(arg0Value);
}
origin: com.oracle.truffle/truffle-api

@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
  int state = state_;
  if (state != 0 /* is-active accessWithTarget(JavaObject) */ && arg0Value instanceof JavaObject) {
    JavaObject arg0Value_ = (JavaObject) arg0Value;
    return accessWithTarget(arg0Value_);
  }
  CompilerDirectives.transferToInterpreterAndInvalidate();
  return executeAndSpecialize(arg0Value);
}
origin: com.oracle.truffle/truffle-api

@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
  int state = state_;
  if (state != 0 /* is-active accessWithTarget(TopScopeObject) */ && arg0Value instanceof TopScopeObject) {
    TopScopeObject arg0Value_ = (TopScopeObject) arg0Value;
    return accessWithTarget(arg0Value_);
  }
  CompilerDirectives.transferToInterpreterAndInvalidate();
  return executeAndSpecialize(arg0Value);
}
origin: org.graalvm.truffle/truffle-api

private HostExecuteNode executeMethod() {
  if (executeMethod == null) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    executeMethod = insert(HostExecuteNode.create());
  }
  return executeMethod;
}
origin: org.graalvm.truffle/truffle-api

@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
  int state = state_;
  if (state != 0 /* is-active accessWithTarget(EmptyGlobalBindings) */ && arg0Value instanceof EmptyGlobalBindings) {
    EmptyGlobalBindings arg0Value_ = (EmptyGlobalBindings) arg0Value;
    return accessWithTarget(arg0Value_);
  }
  CompilerDirectives.transferToInterpreterAndInvalidate();
  return executeAndSpecialize(arg0Value);
}
origin: com.oracle.truffle/truffle-api

public Object access(JavaFunctionObject function, Object[] args) {
  if (doExecute == null) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    doExecute = insert(ExecuteMethodNode.create());
  }
  return doExecute.execute(function.method, function.obj, args, function.languageContext);
}
origin: com.oracle.truffle/truffle-api

  private JavaMethodDesc lookupFunctionalInterfaceMethod(JavaObject receiver) {
    if (lookupMethod == null) {
      CompilerDirectives.transferToInterpreterAndInvalidate();
      lookupMethod = insert(LookupFunctionalMethodNode.create());
    }
    return lookupMethod.execute(receiver.getLookupClass());
  }
}
origin: com.oracle.truffle/truffle-api

  private JavaMethodDesc lookupFunctionalInterfaceMethod(JavaObject receiver) {
    if (lookupMethod == null) {
      CompilerDirectives.transferToInterpreterAndInvalidate();
      lookupMethod = insert(LookupFunctionalMethodNode.create());
    }
    return lookupMethod.execute(receiver.getLookupClass());
  }
}
origin: org.graalvm.truffle/truffle-api

@Override
protected Object executeImpl(PolyglotLanguageContext languageContext, TruffleObject receiver, Object[] args) {
  if (proxyInvoke == null || toGuests == null) {
    CompilerDirectives.transferToInterpreterAndInvalidate();
    toGuests = ToGuestValuesNode.create();
    proxyInvoke = ProxyInvokeNodeGen.create();
  }
  Method method = (Method) args[ARGUMENT_OFFSET];
  Object[] arguments = toGuests.apply(languageContext, (Object[]) args[ARGUMENT_OFFSET + 1]);
  return proxyInvoke.execute(languageContext, receiver, method, arguments);
}
com.oracle.truffle.apiCompilerDirectivestransferToInterpreterAndInvalidate

Javadoc

Directive for the compiler to discontinue compilation at this code position and instead insert a transfer to the interpreter, invalidating the currently executing machine code.

Popular methods of CompilerDirectives

  • transferToInterpreter
    Directive for the compiler to discontinue compilation at this code position and instead insert a tra
  • inInterpreter
    Returns a boolean value indicating whether the method is executed in the interpreter.
  • inCompiledCode
    Returns a boolean value indicating whether the method is executed in the compiled code.
  • injectBranchProbability
    Injects a probability for the given condition into the probability information of the immediately su
  • isCompilationConstant
    Returns a boolean indicating whether or not a given value is seen as constant in optimized code. If
  • <init>
  • castExact
    Casts the given object to the exact class represented by clazz. The cast succeeds only if object ==
  • inCompilationRoot
    Returns a boolean value indicating whether the method is executed in the root of a Truffle compilati
  • isPartialEvaluationConstant
    Returns a boolean indicating whether or not a given value is seen as constant during the initial par
  • ensureVirtualized
    Ensures that the given object will be virtual (escape analyzed) at all points that are dominated by

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
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