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);
}
}
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();
}
Aggregations