< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/tutorial/StaticAnalysis.java
Print this page
*** 251,261 ****
* We want all types to be resolved by the graph builder, i.e., we want classes
* referenced by the bytecodes to be loaded and initialized. Since we do not run
* the code before static analysis, the classes would otherwise be not loaded
* yet and the bytecode parser would only create a graph.
*/
! Plugins plugins = new Plugins(new InvocationPlugins(metaAccess));
GraphBuilderConfiguration graphBuilderConfig = GraphBuilderConfiguration.getDefault(plugins).withEagerResolving(true);
/*
* For simplicity, we ignore all exception handling during the static analysis.
* This is a constraint of this example code, a real static analysis needs to
* handle the Graal nodes for throwing and handling exceptions.
--- 251,261 ----
* We want all types to be resolved by the graph builder, i.e., we want classes
* referenced by the bytecodes to be loaded and initialized. Since we do not run
* the code before static analysis, the classes would otherwise be not loaded
* yet and the bytecode parser would only create a graph.
*/
! Plugins plugins = new Plugins(new InvocationPlugins());
GraphBuilderConfiguration graphBuilderConfig = GraphBuilderConfiguration.getDefault(plugins).withEagerResolving(true);
/*
* For simplicity, we ignore all exception handling during the static analysis.
* This is a constraint of this example code, a real static analysis needs to
* handle the Graal nodes for throwing and handling exceptions.
< prev index next >