
com.oracle.truffle.tck.StructuredDataHasSizeNodeSubNodeGen Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-tck Show documentation
Show all versions of truffle-tck Show documentation
A collection of tests that can certify language implementation to be compliant
with most recent requirements of the Truffle infrastructure and tooling.
// CheckStyle: start generated
package com.oracle.truffle.tck;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.UnsupportedSpecializationException;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.NodeCost;
@GeneratedBy(StructuredDataHasSizeNodeSub.class)
final class StructuredDataHasSizeNodeSubNodeGen extends StructuredDataHasSizeNodeSub {
@CompilationFinal private boolean seenUnsupported0;
private StructuredDataHasSizeNodeSubNodeGen() {
}
@Override
public NodeCost getCost() {
return NodeCost.MONOMORPHIC;
}
@Override
public Object executeWithTarget(VirtualFrame frameValue, Object arg0Value) {
if (arg0Value instanceof StructuredData) {
StructuredData arg0Value_ = (StructuredData) arg0Value;
return this.accessWithTarget(arg0Value_);
}
throw unsupported(arg0Value);
}
private UnsupportedSpecializationException unsupported(Object arg0Value) {
if (!seenUnsupported0) {
CompilerDirectives.transferToInterpreterAndInvalidate();
seenUnsupported0 = true;
}
return new UnsupportedSpecializationException(this, new Node[] {null}, arg0Value);
}
public static StructuredDataHasSizeNodeSub create() {
return new StructuredDataHasSizeNodeSubNodeGen();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy