Skip to content

Commit

Permalink
Remove old ChildExecutionTest change
Browse files Browse the repository at this point in the history
  • Loading branch information
DSouzaM committed Jan 29, 2024
1 parent be162a6 commit 0dfdc42
Showing 1 changed file with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
import com.oracle.truffle.api.dsl.NodeChild;
import com.oracle.truffle.api.dsl.NodeChildren;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.dsl.TypeSystem;
import com.oracle.truffle.api.dsl.TypeSystemReference;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.UnexpectedResultException;
Expand Down Expand Up @@ -83,17 +81,6 @@ public String executeString(VirtualFrame frame) {
}
}

public static class ChildExecutionChildNodeWithError extends Node {

public int executeInt(VirtualFrame frame) throws UnexpectedResultException {
throw new UnexpectedResultException(null);
}

public Object executeObject(VirtualFrame frame) {
return 0;
}
}

@ExpectError("Child execution method: String ChildExecutionChildNode2::executeString(VirtualFrame) called from method: boolean TestNode2::executeBool(boolean) requires a frame parameter.")
@NodeChildren({
@NodeChild(value = "first", type = ChildExecutionChildNode2.class),
Expand Down Expand Up @@ -144,28 +131,4 @@ protected boolean doIt(String a, String b) {
return a.isEmpty() && b.isEmpty();
}
}

@TypeSystem({int.class})
public static class ChildTestTypeSystem {
}

@NodeChildren({
@NodeChild(value = "first", type = ChildExecutionChildNodeWithError.class),
@NodeChild(value = "second", type = ChildExecutionChildNode2.class)
})
@TypeSystemReference(ChildTestTypeSystem.class)
public abstract static class TestNode4 extends Node {

public abstract Object execute(VirtualFrame frame);

@Specialization
protected boolean doItPrim(int a, String b) {
return true;
}

@Specialization
protected boolean doIt(String a, String b) {
return true;
}
}
}

0 comments on commit 0dfdc42

Please sign in to comment.