com.oracle.graal.python.lib.PyBytesCheckExactNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.graal.python.lib;
import com.oracle.graal.python.nodes.object.BuiltinClassProfiles.IsBuiltinObjectProfile;
import com.oracle.graal.python.nodes.object.BuiltinClassProfilesFactory.IsBuiltinObjectProfileNodeGen;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.InlineSupport;
import com.oracle.truffle.api.dsl.NeverDefault;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.ReferenceField;
import com.oracle.truffle.api.dsl.InlineSupport.RequiredField;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.NodeCost;
/**
* Debug Info:
* Specialization {@link PyBytesCheckExactNode#doGeneric}
* Activation probability: 1.00000
* With/without class size: 28/7 bytes
*
*/
@GeneratedBy(PyBytesCheckExactNode.class)
@SuppressWarnings("javadoc")
public final class PyBytesCheckExactNodeGen {
private static final Uncached UNCACHED = new Uncached();
@NeverDefault
public static PyBytesCheckExactNode getUncached() {
return PyBytesCheckExactNodeGen.UNCACHED;
}
/**
* Required Fields:
* - {@link Inlined#state_0_}
*
- {@link Inlined#isBuiltin__field1_}
*
*/
@NeverDefault
public static PyBytesCheckExactNode inline(@RequiredField(bits = 20, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) {
return new PyBytesCheckExactNodeGen.Inlined(target);
}
@GeneratedBy(PyBytesCheckExactNode.class)
@DenyReplace
private static final class Inlined extends PyBytesCheckExactNode {
/**
* State Info:
* 0-19: InlinedCache
* Specialization: {@link PyBytesCheckExactNode#doGeneric}
* Parameter: {@link IsBuiltinObjectProfile} isBuiltin
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*
*/
private final StateField state_0_;
private final ReferenceField isBuiltin__field1_;
/**
* Source Info:
* Specialization: {@link PyBytesCheckExactNode#doGeneric}
* Parameter: {@link IsBuiltinObjectProfile} isBuiltin
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*/
private final IsBuiltinObjectProfile isBuiltin_;
@SuppressWarnings("unchecked")
private Inlined(InlineTarget target) {
assert target.getTargetClass().isAssignableFrom(PyBytesCheckExactNode.class);
this.state_0_ = target.getState(0, 20);
this.isBuiltin__field1_ = target.getReference(1, Node.class);
this.isBuiltin_ = IsBuiltinObjectProfileNodeGen.inline(InlineTarget.create(IsBuiltinObjectProfile.class, state_0_.subUpdater(0, 20), isBuiltin__field1_));
}
@Override
public boolean execute(Node arg0Value, Object arg1Value) {
assert InlineSupport.validate(arg0Value, this.state_0_, this.isBuiltin__field1_);
return PyBytesCheckExactNode.doGeneric(arg0Value, arg1Value, this.isBuiltin_);
}
@Override
public boolean isAdoptable() {
return false;
}
}
@GeneratedBy(PyBytesCheckExactNode.class)
@DenyReplace
private static final class Uncached extends PyBytesCheckExactNode {
@TruffleBoundary
@Override
public boolean execute(Node arg0Value, Object arg1Value) {
return PyBytesCheckExactNode.doGeneric(arg0Value, arg1Value, (IsBuiltinObjectProfile.getUncached()));
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@Override
public boolean isAdoptable() {
return false;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy