Tabnine Logo
HostVM.isRelocatedPointer
Code IndexAdd Tabnine to your IDE (free)

How to use
isRelocatedPointer
method
in
com.oracle.graal.pointsto.api.HostVM

Best Java code snippets using com.oracle.graal.pointsto.api.HostVM.isRelocatedPointer (Showing top 2 results out of 315)

origin: com.oracle.substratevm/pointsto

if (fieldValue.getJavaKind() == JavaKind.Object && bb.getHostVM().isRelocatedPointer(bb.getSnippetReflectionProvider().asObject(Object.class, fieldValue))) {
  forRelocatedPointerFieldValue(receiver, field, fieldValue);
} else if (fieldValue.isNull()) {
origin: com.oracle.substratevm/svm

/**
 * Intercept {@link Word} types. They are boxed objects in the hosted world, but primitive
 * values in the runtime world.
 */
private JavaConstant interceptWordType(AnalysisField field, JavaConstant value) {
  if (value.getJavaKind() == JavaKind.Object) {
    Object originalObject = universe.getSnippetReflection().asObject(Object.class, value);
    if (universe.hostVM().isRelocatedPointer(originalObject)) {
      /*
       * Such pointers are subject to relocation therefore we don't know their values yet.
       * Therefore there should not be a relocated pointer constant in a function which is
       * compiled. RelocatedPointers are only allowed in non-constant fields. The caller
       * of readValue is responsible of handling the returned value correctly.
       */
      return value;
    } else if (originalObject instanceof WordBase) {
      return JavaConstant.forIntegerKind(universe.getWordKind(), ((WordBase) originalObject).rawValue());
    } else if (originalObject == null && field.getType().isWordType()) {
      return JavaConstant.forIntegerKind(universe.getWordKind(), 0);
    }
  }
  return value;
}
com.oracle.graal.pointsto.apiHostVMisRelocatedPointer

Popular methods of HostVM

  • getImageName
    Gets the name of the native image being built.
  • checkForbidden
  • clearInThread
  • createGraphBuilderPhase
  • getConfiguration
  • handleForeignCall
  • installInThread
  • isInitialized
  • options
  • registerType
  • warn
  • warn

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • setContentView (Activity)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFileChooser (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in 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