Search in sources :

Example 11 with BeforeAnalysisAccessImpl

use of com.oracle.svm.hosted.FeatureImpl.BeforeAnalysisAccessImpl in project graal by oracle.

the class ClassNewInstanceFeature method beforeAnalysis.

@Override
public void beforeAnalysis(BeforeAnalysisAccess a) {
    BeforeAnalysisAccessImpl access = (BeforeAnalysisAccessImpl) a;
    access.registerAsCompiled(Object.class.getDeclaredConstructors()[0]);
    try {
        access.registerAsCompiled(DynamicHub.class.getDeclaredMethod("newInstanceInstantiationError", Object.class));
        access.registerAsCompiled(DynamicHub.class.getDeclaredMethod("newInstanceReachableError", Object.class));
    } catch (NoSuchMethodException e) {
        throw new RuntimeException(e);
    }
}
Also used : BeforeAnalysisAccessImpl(com.oracle.svm.hosted.FeatureImpl.BeforeAnalysisAccessImpl) DynamicHub(com.oracle.svm.core.hub.DynamicHub)

Example 12 with BeforeAnalysisAccessImpl

use of com.oracle.svm.hosted.FeatureImpl.BeforeAnalysisAccessImpl in project graal by oracle.

the class Target_com_oracle_truffle_api_nodes_Node method beforeAnalysis.

@Override
public void beforeAnalysis(BeforeAnalysisAccess a) {
    BeforeAnalysisAccessImpl access = (BeforeAnalysisAccessImpl) a;
    metaAccess = access.getMetaAccess();
}
Also used : BeforeAnalysisAccessImpl(com.oracle.svm.hosted.FeatureImpl.BeforeAnalysisAccessImpl)

Aggregations

BeforeAnalysisAccessImpl (com.oracle.svm.hosted.FeatureImpl.BeforeAnalysisAccessImpl)12 AnalysisMethod (com.oracle.graal.pointsto.meta.AnalysisMethod)3 HostedProviders (com.oracle.graal.pointsto.meta.HostedProviders)3 AnalysisMetaAccess (com.oracle.graal.pointsto.meta.AnalysisMetaAccess)2 AnalysisType (com.oracle.graal.pointsto.meta.AnalysisType)2 SubstrateReplacements (com.oracle.svm.core.graal.meta.SubstrateReplacements)2 HostedOptionValues (com.oracle.svm.core.option.HostedOptionValues)2 NativeLibraries (com.oracle.svm.hosted.c.NativeLibraries)2 Field (java.lang.reflect.Field)2 ArrayList (java.util.ArrayList)2 JavaKind (jdk.vm.ci.meta.JavaKind)2 MetaAccessProvider (jdk.vm.ci.meta.MetaAccessProvider)2 ResolvedJavaMethod (jdk.vm.ci.meta.ResolvedJavaMethod)2 DebugContext (org.graalvm.compiler.debug.DebugContext)2 Providers (org.graalvm.compiler.phases.util.Providers)2 WordTypes (org.graalvm.compiler.word.WordTypes)2 CEntryPoint (org.graalvm.nativeimage.c.function.CEntryPoint)2 AnalysisPolicy (com.oracle.graal.pointsto.AnalysisPolicy)1 UnsupportedFeatureException (com.oracle.graal.pointsto.constraints.UnsupportedFeatureException)1 SubstitutionProcessor (com.oracle.graal.pointsto.infrastructure.SubstitutionProcessor)1