Skip to content

Commit

Permalink
Support DynamicNewInstanceNode in hightiercodegen
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick96 authored and peter-hofer committed Aug 13, 2023
1 parent d091e64 commit 44187dd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
import org.graalvm.compiler.nodes.java.AtomicReadAndWriteNode;
import org.graalvm.compiler.nodes.java.ClassIsAssignableFromNode;
import org.graalvm.compiler.nodes.java.DynamicNewArrayNode;
import org.graalvm.compiler.nodes.java.DynamicNewInstanceNode;
import org.graalvm.compiler.nodes.java.ExceptionObjectNode;
import org.graalvm.compiler.nodes.java.InstanceOfDynamicNode;
import org.graalvm.compiler.nodes.java.InstanceOfNode;
Expand Down Expand Up @@ -333,6 +334,8 @@ protected void dispatch(Node node) {
lower((IdentityHashCodeNode) node);
} else if (node instanceof ClassIsAssignableFromNode) {
lower((ClassIsAssignableFromNode) node);
} else if (node instanceof DynamicNewInstanceNode n) {
lower(n);
} else {
if (!isIgnored(node)) {
handleUnknownNodeType(node);
Expand Down Expand Up @@ -439,6 +442,8 @@ protected void handleUnknownNodeType(Node node) {

protected abstract void lower(NewInstanceNode node);

protected abstract void lower(DynamicNewInstanceNode node);

protected abstract void lower(NotNode node);

protected abstract void lower(NarrowNode node);
Expand Down

0 comments on commit 44187dd

Please sign in to comment.