congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SubstrateBackend.getCodeCache
Code IndexAdd Tabnine to your IDE (free)

How to use
getCodeCache
method
in
com.oracle.svm.core.graal.code.SubstrateBackend

Best Java code snippets using com.oracle.svm.core.graal.code.SubstrateBackend.getCodeCache (Showing top 2 results out of 315)

origin: com.oracle.substratevm/svm

@Override
public RegisterAllocationConfig newRegisterAllocationConfig(RegisterConfig registerConfig, String[] allocationRestrictedTo) {
  RegisterConfig registerConfigNonNull = registerConfig == null ? getCodeCache().getRegisterConfig() : registerConfig;
  return new RegisterAllocationConfig(registerConfigNonNull, allocationRestrictedTo);
}
origin: com.oracle.substratevm/library-support

public CompileFunction createCustomCompileFunction() {
  return (debug, method, identifier, reason, config) -> {
    SubstrateBackend backend = config.getBackendForNormalMethod();
    VMError.guarantee(backend.getTarget().arch instanceof AMD64, "currently only implemented on AMD64");
    // Determine register for jmethodID argument
    HostedProviders providers = (HostedProviders) config.getProviders();
    List<JavaType> parameters = new ArrayList<>();
    parameters.add(providers.getMetaAccess().lookupJavaType(JNIEnvironment.class));
    parameters.add(providers.getMetaAccess().lookupJavaType(JNIObjectHandle.class));
    if (nonVirtual) {
      parameters.add(providers.getMetaAccess().lookupJavaType(JNIObjectHandle.class));
    }
    parameters.add(providers.getMetaAccess().lookupJavaType(JNIMethodId.class));
    ResolvedJavaType returnType = providers.getWordTypes().getWordImplType();
    CallingConvention callingConvention = backend.getCodeCache().getRegisterConfig().getCallingConvention(
            SubstrateCallingConventionType.NativeCall, returnType, parameters.toArray(new JavaType[0]), backend);
    RegisterValue methodIdArg = (RegisterValue) callingConvention.getArgument(parameters.size() - 1);
    return backend.createJNITrampolineMethod(method, identifier, methodIdArg, getFieldOffset(providers));
  };
}
com.oracle.svm.core.graal.codeSubstrateBackendgetCodeCache

Popular methods of SubstrateBackend

  • getTarget
  • createJNITrampolineMethod
  • getProviders
  • newCompilationResult

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • getSystemService (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Reference (javax.naming)
  • JButton (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Github Copilot alternatives
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