com.oracle.graal.python.lib.PyObjectReprAsTruffleStringNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.graal.python.lib;
import com.oracle.graal.python.nodes.util.CastToTruffleStringNode;
import com.oracle.graal.python.nodes.util.CastToTruffleStringNodeGen;
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.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.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.frame.Frame;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.NodeCost;
import com.oracle.truffle.api.strings.TruffleString;
import java.lang.invoke.MethodHandles;
/**
* Debug Info:
* Specialization {@link PyObjectReprAsTruffleStringNode#repr}
* Activation probability: 1.00000
* With/without class size: 56/36 bytes
*
*/
@GeneratedBy(PyObjectReprAsTruffleStringNode.class)
@SuppressWarnings("javadoc")
public final class PyObjectReprAsTruffleStringNodeGen extends PyObjectReprAsTruffleStringNode {
private static final StateField STATE_0_PyObjectReprAsTruffleStringNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
*/
private static final PyObjectReprAsObjectNode INLINED_REPR_NODE_ = PyObjectReprAsObjectNodeGen.inline(InlineTarget.create(PyObjectReprAsObjectNode.class, STATE_0_PyObjectReprAsTruffleStringNode_UPDATER.subUpdater(0, 23), ReferenceField.create(MethodHandles.lookup(), "reprNode__field1_", Node.class), ReferenceField.create(MethodHandles.lookup(), "reprNode__field2_", Node.class), ReferenceField.create(MethodHandles.lookup(), "reprNode__field3_", Node.class), ReferenceField.create(MethodHandles.lookup(), "reprNode__field4_", Node.class), ReferenceField.create(MethodHandles.lookup(), "reprNode__field5_", Node.class)));
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link CastToTruffleStringNode} cast
* Inline method: {@link CastToTruffleStringNodeGen#inline}
*/
private static final CastToTruffleStringNode INLINED_CAST_ = CastToTruffleStringNodeGen.inline(InlineTarget.create(CastToTruffleStringNode.class, STATE_0_PyObjectReprAsTruffleStringNode_UPDATER.subUpdater(23, 8), ReferenceField.create(MethodHandles.lookup(), "cast__field1_", Node.class), ReferenceField.create(MethodHandles.lookup(), "cast__field2_", Node.class), ReferenceField.create(MethodHandles.lookup(), "cast__field3_", Node.class)));
private static final Uncached UNCACHED = new Uncached();
/**
* State Info:
* 0-22: InlinedCache
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
* 23-30: InlinedCache
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link CastToTruffleStringNode} cast
* Inline method: {@link CastToTruffleStringNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node reprNode__field1_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
* Inline field: {@link Node} field2
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node reprNode__field2_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
* Inline field: {@link Node} field3
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node reprNode__field3_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
* Inline field: {@link Node} field4
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node reprNode__field4_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
* Inline field: {@link Node} field5
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node reprNode__field5_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link CastToTruffleStringNode} cast
* Inline method: {@link CastToTruffleStringNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cast__field1_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link CastToTruffleStringNode} cast
* Inline method: {@link CastToTruffleStringNodeGen#inline}
* Inline field: {@link Node} field2
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cast__field2_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link CastToTruffleStringNode} cast
* Inline method: {@link CastToTruffleStringNodeGen#inline}
* Inline field: {@link Node} field3
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cast__field3_;
private PyObjectReprAsTruffleStringNodeGen() {
}
@Override
public TruffleString execute(Frame frameValue, Node arg0Value, Object arg1Value) {
return PyObjectReprAsTruffleStringNode.repr((VirtualFrame) frameValue, this, arg1Value, INLINED_REPR_NODE_, INLINED_CAST_);
}
@Override
public NodeCost getCost() {
return NodeCost.MONOMORPHIC;
}
@NeverDefault
public static PyObjectReprAsTruffleStringNode create() {
return new PyObjectReprAsTruffleStringNodeGen();
}
@NeverDefault
public static PyObjectReprAsTruffleStringNode getUncached() {
return PyObjectReprAsTruffleStringNodeGen.UNCACHED;
}
/**
* Required Fields:
* - {@link Inlined#state_0_}
*
- {@link Inlined#reprNode__field1_}
*
- {@link Inlined#reprNode__field2_}
*
- {@link Inlined#reprNode__field3_}
*
- {@link Inlined#reprNode__field4_}
*
- {@link Inlined#reprNode__field5_}
*
- {@link Inlined#cast__field1_}
*
- {@link Inlined#cast__field2_}
*
- {@link Inlined#cast__field3_}
*
*/
@NeverDefault
public static PyObjectReprAsTruffleStringNode inline(@RequiredField(bits = 31, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) {
return new PyObjectReprAsTruffleStringNodeGen.Inlined(target);
}
@GeneratedBy(PyObjectReprAsTruffleStringNode.class)
@DenyReplace
private static final class Inlined extends PyObjectReprAsTruffleStringNode {
/**
* State Info:
* 0-22: InlinedCache
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
* 23-30: InlinedCache
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link CastToTruffleStringNode} cast
* Inline method: {@link CastToTruffleStringNodeGen#inline}
*
*/
private final StateField state_0_;
private final ReferenceField reprNode__field1_;
private final ReferenceField reprNode__field2_;
private final ReferenceField reprNode__field3_;
private final ReferenceField reprNode__field4_;
private final ReferenceField reprNode__field5_;
private final ReferenceField cast__field1_;
private final ReferenceField cast__field2_;
private final ReferenceField cast__field3_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link PyObjectReprAsObjectNode} reprNode
* Inline method: {@link PyObjectReprAsObjectNodeGen#inline}
*/
private final PyObjectReprAsObjectNode reprNode_;
/**
* Source Info:
* Specialization: {@link PyObjectReprAsTruffleStringNode#repr}
* Parameter: {@link CastToTruffleStringNode} cast
* Inline method: {@link CastToTruffleStringNodeGen#inline}
*/
private final CastToTruffleStringNode cast_;
@SuppressWarnings("unchecked")
private Inlined(InlineTarget target) {
assert target.getTargetClass().isAssignableFrom(PyObjectReprAsTruffleStringNode.class);
this.state_0_ = target.getState(0, 31);
this.reprNode__field1_ = target.getReference(1, Node.class);
this.reprNode__field2_ = target.getReference(2, Node.class);
this.reprNode__field3_ = target.getReference(3, Node.class);
this.reprNode__field4_ = target.getReference(4, Node.class);
this.reprNode__field5_ = target.getReference(5, Node.class);
this.cast__field1_ = target.getReference(6, Node.class);
this.cast__field2_ = target.getReference(7, Node.class);
this.cast__field3_ = target.getReference(8, Node.class);
this.reprNode_ = PyObjectReprAsObjectNodeGen.inline(InlineTarget.create(PyObjectReprAsObjectNode.class, state_0_.subUpdater(0, 23), reprNode__field1_, reprNode__field2_, reprNode__field3_, reprNode__field4_, reprNode__field5_));
this.cast_ = CastToTruffleStringNodeGen.inline(InlineTarget.create(CastToTruffleStringNode.class, state_0_.subUpdater(23, 8), cast__field1_, cast__field2_, cast__field3_));
}
@Override
public TruffleString execute(Frame frameValue, Node arg0Value, Object arg1Value) {
assert InlineSupport.validate(arg0Value, this.state_0_, this.reprNode__field1_, this.reprNode__field2_, this.reprNode__field3_, this.reprNode__field4_, this.reprNode__field5_, this.state_0_, this.cast__field1_, this.cast__field2_, this.cast__field3_);
return PyObjectReprAsTruffleStringNode.repr((VirtualFrame) frameValue, arg0Value, arg1Value, this.reprNode_, this.cast_);
}
@Override
public boolean isAdoptable() {
return false;
}
}
@GeneratedBy(PyObjectReprAsTruffleStringNode.class)
@DenyReplace
private static final class Uncached extends PyObjectReprAsTruffleStringNode {
@Override
public TruffleString execute(Frame frameValue, Node arg0Value, Object arg1Value) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return PyObjectReprAsTruffleStringNode.repr((VirtualFrame) frameValue, arg0Value, arg1Value, (PyObjectReprAsObjectNode.getUncached()), (CastToTruffleStringNode.getUncached()));
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@Override
public boolean isAdoptable() {
return false;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy