com.oracle.truffle.api.instrumentation.test.TestNode1Wrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-instrument-test Show documentation
Show all versions of truffle-instrument-test Show documentation
Instrumentation tests including InstrumentationTestLanguage.
The newest version!
// CheckStyle: start generated
package com.oracle.truffle.api.instrumentation.test;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.instrumentation.InstrumentableFactory;
import com.oracle.truffle.api.instrumentation.ProbeNode;
import com.oracle.truffle.api.instrumentation.test.InstrumentableTest.TestNode1;
import com.oracle.truffle.api.nodes.NodeCost;
import com.oracle.truffle.api.nodes.UnexpectedResultException;
import java.io.IOException;
@GeneratedBy(TestNode1.class)
public final class TestNode1Wrapper implements InstrumentableFactory {
@Override
public WrapperNode createWrapper(TestNode1 delegateNode, ProbeNode probeNode) {
return new TestNode1Wrapper0(delegateNode, probeNode);
}
@GeneratedBy(TestNode1.class)
private static final class TestNode1Wrapper0 extends TestNode1 implements WrapperNode {
@Child private TestNode1 delegateNode;
@Child private ProbeNode probeNode;
private TestNode1Wrapper0(TestNode1 delegateNode, ProbeNode probeNode) {
this.delegateNode = delegateNode;
this.probeNode = probeNode;
}
@Override
public TestNode1 getDelegateNode() {
return delegateNode;
}
@Override
public ProbeNode getProbeNode() {
return probeNode;
}
@Override
public NodeCost getCost() {
return NodeCost.NONE;
}
@Override
public void execute1() {
try {
probeNode.onEnter(null);
delegateNode.execute1();
probeNode.onReturnValue(null, null);
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public byte execute15() throws UnexpectedResultException {
try {
probeNode.onEnter(null);
byte returnValue = delegateNode.execute15();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public byte execute16() throws IOException {
try {
probeNode.onEnter(null);
byte returnValue = delegateNode.execute16();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public Object execute2() {
try {
probeNode.onEnter(null);
Object returnValue = delegateNode.execute2();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public int execute3() {
try {
probeNode.onEnter(null);
int returnValue = delegateNode.execute3();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public String execute4() {
try {
probeNode.onEnter(null);
String returnValue = delegateNode.execute4();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public double execute5() {
try {
probeNode.onEnter(null);
double returnValue = delegateNode.execute5();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public long execute6() {
try {
probeNode.onEnter(null);
long returnValue = delegateNode.execute6();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public float execute7() {
try {
probeNode.onEnter(null);
float returnValue = delegateNode.execute7();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public short execute8() {
try {
probeNode.onEnter(null);
short returnValue = delegateNode.execute8();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public byte execute9() {
try {
probeNode.onEnter(null);
byte returnValue = delegateNode.execute9();
probeNode.onReturnValue(null, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(null, t);
throw t;
}
}
@Override
public Object execute10(VirtualFrame frame1) {
try {
probeNode.onEnter(frame1);
Object returnValue = delegateNode.execute10(frame1);
probeNode.onReturnValue(frame1, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(frame1, t);
throw t;
}
}
@Override
public Object execute12(VirtualFrame frame1, int b) {
try {
probeNode.onEnter(frame1);
Object returnValue = delegateNode.execute12(frame1, b);
probeNode.onReturnValue(frame1, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(frame1, t);
throw t;
}
}
@Override
public Object execute11(int a, VirtualFrame frame1) {
try {
probeNode.onEnter(frame1);
Object returnValue = delegateNode.execute11(a, frame1);
probeNode.onReturnValue(frame1, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(frame1, t);
throw t;
}
}
@Override
public Object execute13(int a, VirtualFrame frame1, int b) {
try {
probeNode.onEnter(frame1);
Object returnValue = delegateNode.execute13(a, frame1, b);
probeNode.onReturnValue(frame1, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(frame1, t);
throw t;
}
}
@Override
public Object execute17(int a, VirtualFrame frame1, int b) throws UnexpectedResultException {
try {
probeNode.onEnter(frame1);
Object returnValue = delegateNode.execute17(a, frame1, b);
probeNode.onReturnValue(frame1, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(frame1, t);
throw t;
}
}
@Override
public Object execute18(int a, VirtualFrame frame1, int b) throws UnexpectedResultException {
try {
probeNode.onEnter(frame1);
Object returnValue = delegateNode.execute18(a, frame1, b);
probeNode.onReturnValue(frame1, returnValue);
return returnValue;
} catch (Throwable t) {
probeNode.onReturnExceptional(frame1, t);
throw t;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy