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

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

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

origin: com.oracle.substratevm/pointsto

public void registerAsInTypeCheck() {
  isInTypeCheck = true;
  universe.hostVM.checkForbidden(this, UsageKind.InTypeCheck);
}
origin: com.oracle.substratevm/pointsto

private static void registerForeignCall(BigBang bb, ForeignCallDescriptor foreignCallDescriptor) {
  Optional<AnalysisMethod> targetMethod = bb.getHostVM().handleForeignCall(foreignCallDescriptor, bb.getProviders().getForeignCalls());
  targetMethod.ifPresent(analysisMethod -> {
    bb.addRootMethod(analysisMethod);
  });
}
origin: com.oracle.substratevm/pointsto

@Override
public final boolean isInitialized() {
  return universe.hostVM.isInitialized(this);
}
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/pointsto

this.debug = DebugContext.create(options, debugHandlerFactories);
this.hostVM = hostVM;
String imageName = hostVM.getImageName();
this.typeFlowTimer = new Timer(imageName, "(typeflow)", false);
this.checkObjectsTimer = new Timer(imageName, "(objects)", false);
origin: com.oracle.substratevm/pointsto

} else {
  executorService.execute(() -> {
    bb.getHostVM().installInThread(vmConfig);
    long startTime = 0L;
    if (timing != null) {
      thrown = x;
    } finally {
      bb.getHostVM().clearInThread();
      if (timing != null) {
        long taskTime = System.nanoTime() - startTime;
origin: com.oracle.substratevm/pointsto

public ContextSensitiveAnalysisObject(AnalysisUniverse universe, AnalysisType type, AnalysisObjectKind kind) {
  super(universe, type, kind);
  assert PointstoOptions.AllocationSiteSensitiveHeap.getValue(universe.hostVM().options());
}
origin: com.oracle.substratevm/pointsto

public void init(Timing newTiming) {
  assert isSequential() || !executorService.hasQueuedSubmissions();
  assert Thread.currentThread() == mainThread;
  timing = newTiming;
  setState(State.BEFORE_START);
  postedOperations.reset();
  completedOperations.reset();
  postedBeforeStart.clear();
  vmConfig = bb.getHostVM().getConfiguration();
}
origin: com.oracle.substratevm/pointsto

        .withUnresolvedIsError(PointstoOptions.UnresolvedIsError.getValue(bb.getOptions()))
        .withNodeSourcePosition(true).withBytecodeExceptionMode(BytecodeExceptionMode.CheckAll);
bb.getHostVM().createGraphBuilderPhase(bb.getProviders(), config, OptimisticOptimizations.NONE, null).apply(graph);
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;
}
origin: com.oracle.substratevm/svm

@SuppressWarnings("try")
public void finish(DebugContext debug) {
  try {
    String imageName = universe.getBigBang().getHostVM().getImageName();
    try (StopTimer t = new Timer(imageName, "(parse)").start()) {
      parseAll();
origin: com.oracle.substratevm/pointsto

public AnalysisField(AnalysisUniverse universe, ResolvedJavaField wrappedField) {
  assert !wrappedField.isInternal();
  this.position = -1;
  this.isUnsafeAccessed = new AtomicBoolean();
  this.unsafeFrozenTypeState = new AtomicBoolean();
  this.wrapped = wrappedField;
  this.id = universe.nextFieldId.getAndIncrement();
  readBy = PointstoOptions.TrackAccessChain.getValue(universe.hostVM().options()) ? new ConcurrentHashMap<>() : null;
  writtenBy = new ConcurrentHashMap<>();
  declaringClass = universe.lookup(wrappedField.getDeclaringClass());
  fieldType = getDeclaredType(universe, wrappedField);
  isUsedInComparison = false;
  if (this.isStatic()) {
    this.canBeNull = false;
    this.staticFieldFlow = new FieldTypeFlow(this, getType());
    this.initialInstanceFieldFlow = null;
  } else {
    this.canBeNull = true;
    this.instanceFieldFlow = new FieldSinkTypeFlow(this, getType());
    this.initialInstanceFieldFlow = new FieldTypeFlow(this, getType());
  }
}
origin: com.oracle.substratevm/pointsto

public void registerAsInHeap() {
  assert isArray() || (isInstanceClass() && !Modifier.isAbstract(getModifiers()));
  isInHeap = true;
  universe.hostVM.checkForbidden(this, UsageKind.InHeap);
}
origin: com.oracle.substratevm/pointsto

this.id = universe.nextMethodId.getAndIncrement();
if (PointstoOptions.TrackAccessChain.getValue(universe.hostVM().options())) {
  startTrackInvocations();
typeFlow = new MethodTypeFlow(universe.hostVM().options(), this);
origin: com.oracle.substratevm/pointsto

/**
 * @param node For future use and debugging
 */
public void registerAsAllocated(Node node) {
  assert isArray() || (isInstanceClass() && !Modifier.isAbstract(getModifiers())) : this;
  if (!isAllocated) {
    isAllocated = true;
  }
  universe.hostVM.checkForbidden(this, UsageKind.Allocated);
}
com.oracle.graal.pointsto.apiHostVM

Javadoc

This is an interface for the functionality that the hosting VM must support.

Most used methods

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text 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