com.oracle.graal.python.nodes.bytecode.UnpackSequenceNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.graal.python.nodes.bytecode;
import com.oracle.graal.python.builtins.objects.common.SequenceNodes.GetSequenceStorageNode;
import com.oracle.graal.python.builtins.objects.common.SequenceNodesFactory.GetSequenceStorageNodeGen;
import com.oracle.graal.python.builtins.objects.common.SequenceStorageNodes.GetItemScalarNode;
import com.oracle.graal.python.builtins.objects.common.SequenceStorageNodesFactory.GetItemScalarNodeGen;
import com.oracle.graal.python.lib.GetNextNode;
import com.oracle.graal.python.lib.PyObjectGetIter;
import com.oracle.graal.python.lib.PyObjectGetIterNodeGen;
import com.oracle.graal.python.nodes.PGuards;
import com.oracle.graal.python.nodes.PRaiseNode;
import com.oracle.graal.python.nodes.object.BuiltinClassProfiles.IsBuiltinObjectProfile;
import com.oracle.graal.python.nodes.object.BuiltinClassProfilesFactory.IsBuiltinObjectProfileNodeGen;
import com.oracle.graal.python.nodes.object.GetClassNode.GetPythonObjectClassNode;
import com.oracle.graal.python.nodes.object.GetClassNodeGen.GetPythonObjectClassNodeGen;
import com.oracle.graal.python.runtime.sequence.PSequence;
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.NeverDefault;
import com.oracle.truffle.api.dsl.DSLSupport.SpecializationDataNode;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.ReferenceField;
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 java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.invoke.MethodHandles.Lookup;
import java.util.Objects;
/**
* Debug Info:
* Specialization {@link UnpackSequenceNode#doUnpackSequence}
* Activation probability: 0.65000
* With/without class size: 30/22 bytes
* Specialization {@link UnpackSequenceNode#doUnpackIterable}
* Activation probability: 0.35000
* With/without class size: 20/32 bytes
*
*/
@GeneratedBy(UnpackSequenceNode.class)
@SuppressWarnings({"javadoc", "unused"})
public final class UnpackSequenceNodeGen extends UnpackSequenceNode {
private static final StateField STATE_1_UnpackSequenceNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_1_");
private static final StateField STATE_0_UnpackSequenceNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
private static final StateField FALLBACK__UNPACK_SEQUENCE_NODE_FALLBACK_STATE_0_UPDATER = StateField.create(FallbackData.lookup_(), "fallback_state_0_");
private static final StateField FALLBACK__UNPACK_SEQUENCE_NODE_FALLBACK_STATE_1_UPDATER = StateField.create(FallbackData.lookup_(), "fallback_state_1_");
private static final StateField FALLBACK__UNPACK_SEQUENCE_NODE_FALLBACK_STATE_2_UPDATER = StateField.create(FallbackData.lookup_(), "fallback_state_2_");
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetPythonObjectClassNode} getClassNode
* Inline method: {@link GetPythonObjectClassNodeGen#inline}
*/
private static final GetPythonObjectClassNode INLINED_UNPACK_SEQUENCE_GET_CLASS_NODE_ = GetPythonObjectClassNodeGen.inline(InlineTarget.create(GetPythonObjectClassNode.class, STATE_1_UnpackSequenceNode_UPDATER.subUpdater(0, 4), ReferenceField.create(MethodHandles.lookup(), "unpackSequence_getClassNode__field1_", Object.class), ReferenceField.create(MethodHandles.lookup(), "unpackSequence_getClassNode__field2_", Node.class), ReferenceField.create(MethodHandles.lookup(), "unpackSequence_getClassNode__field3_", Node.class)));
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetSequenceStorageNode} getSequenceStorageNode
* Inline method: {@link GetSequenceStorageNodeGen#inline}
*/
private static final GetSequenceStorageNode INLINED_UNPACK_SEQUENCE_GET_SEQUENCE_STORAGE_NODE_ = GetSequenceStorageNodeGen.inline(InlineTarget.create(GetSequenceStorageNode.class, STATE_0_UnpackSequenceNode_UPDATER.subUpdater(3, 3), ReferenceField.create(MethodHandles.lookup(), "unpackSequence_getSequenceStorageNode__field1_", Object.class)));
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetItemScalarNode} getItemNode
* Inline method: {@link GetItemScalarNodeGen#inline}
*/
private static final GetItemScalarNode INLINED_UNPACK_SEQUENCE_GET_ITEM_NODE_ = GetItemScalarNodeGen.inline(InlineTarget.create(GetItemScalarNode.class, STATE_0_UnpackSequenceNode_UPDATER.subUpdater(6, 8), ReferenceField.create(MethodHandles.lookup(), "unpackSequence_getItemNode__field1_", Node.class)));
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link PyObjectGetIter} getIter
* Inline method: {@link PyObjectGetIterNodeGen#inline}
*/
private static final PyObjectGetIter INLINED_FALLBACK_GET_ITER_ = PyObjectGetIterNodeGen.inline(InlineTarget.create(PyObjectGetIter.class, FALLBACK__UNPACK_SEQUENCE_NODE_FALLBACK_STATE_0_UPDATER.subUpdater(0, 2), ReferenceField.create(FallbackData.lookup_(), "fallback_getIter__field1_", Node.class), ReferenceField.create(FallbackData.lookup_(), "fallback_getIter__field2_", Node.class)));
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} notIterableProfile
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*/
private static final IsBuiltinObjectProfile INLINED_FALLBACK_NOT_ITERABLE_PROFILE_ = IsBuiltinObjectProfileNodeGen.inline(InlineTarget.create(IsBuiltinObjectProfile.class, FALLBACK__UNPACK_SEQUENCE_NODE_FALLBACK_STATE_0_UPDATER.subUpdater(2, 20), ReferenceField.create(FallbackData.lookup_(), "fallback_notIterableProfile__field1_", Node.class)));
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} stopIterationProfile1
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*/
private static final IsBuiltinObjectProfile INLINED_FALLBACK_STOP_ITERATION_PROFILE1_ = IsBuiltinObjectProfileNodeGen.inline(InlineTarget.create(IsBuiltinObjectProfile.class, FALLBACK__UNPACK_SEQUENCE_NODE_FALLBACK_STATE_1_UPDATER.subUpdater(0, 20), ReferenceField.create(FallbackData.lookup_(), "fallback_stopIterationProfile1__field1_", Node.class)));
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} stopIterationProfile2
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*/
private static final IsBuiltinObjectProfile INLINED_FALLBACK_STOP_ITERATION_PROFILE2_ = IsBuiltinObjectProfileNodeGen.inline(InlineTarget.create(IsBuiltinObjectProfile.class, FALLBACK__UNPACK_SEQUENCE_NODE_FALLBACK_STATE_2_UPDATER.subUpdater(0, 20), ReferenceField.create(FallbackData.lookup_(), "fallback_stopIterationProfile2__field1_", Node.class)));
private static final Uncached UNCACHED = new Uncached();
/**
* State Info:
* 0: SpecializationActive {@link UnpackSequenceNode#doUnpackSequence}
* 1: GuardActive[guardIndex=0] {@link UnpackSequenceNode#doUnpackSequence}
* 2: SpecializationActive {@link UnpackSequenceNode#doUnpackIterable}
* 3-5: InlinedCache
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetSequenceStorageNode} getSequenceStorageNode
* Inline method: {@link GetSequenceStorageNodeGen#inline}
* 6-13: InlinedCache
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetItemScalarNode} getItemNode
* Inline method: {@link GetItemScalarNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
/**
* State Info:
* 0-3: InlinedCache
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetPythonObjectClassNode} getClassNode
* Inline method: {@link GetPythonObjectClassNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_1_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link PRaiseNode} raiseNode
*/
@Child private PRaiseNode raise;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetPythonObjectClassNode} getClassNode
* Inline method: {@link GetPythonObjectClassNodeGen#inline}
* Inline field: {@link Object} field1
*/
@CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object unpackSequence_getClassNode__field1_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetPythonObjectClassNode} getClassNode
* Inline method: {@link GetPythonObjectClassNodeGen#inline}
* Inline field: {@link Node} field2
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node unpackSequence_getClassNode__field2_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetPythonObjectClassNode} getClassNode
* Inline method: {@link GetPythonObjectClassNodeGen#inline}
* Inline field: {@link Node} field3
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node unpackSequence_getClassNode__field3_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetSequenceStorageNode} getSequenceStorageNode
* Inline method: {@link GetSequenceStorageNodeGen#inline}
* Inline field: {@link Object} field1
*/
@CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object unpackSequence_getSequenceStorageNode__field1_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackSequence}
* Parameter: {@link GetItemScalarNode} getItemNode
* Inline method: {@link GetItemScalarNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node unpackSequence_getItemNode__field1_;
@Child private FallbackData fallback_cache;
private UnpackSequenceNodeGen() {
}
@SuppressWarnings("static-method")
private boolean fallbackGuard_(int state_0, int arg0Value, Object arg1Value, int arg2Value) {
if (arg1Value instanceof PSequence) {
PSequence arg1Value_ = (PSequence) arg1Value;
Node inliningTarget__ = (this);
GetPythonObjectClassNode getClassNode__ = INLINED_UNPACK_SEQUENCE_GET_CLASS_NODE_;
if ((((state_0 & 0b10)) == 0 /* is-not GuardActive[specialization=UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode), guardIndex=0] */ || inliningTarget__ == null || getClassNode__ == null || (PGuards.cannotBeOverridden(arg1Value_, inliningTarget__, getClassNode__)))) {
if ((((state_0 & 0b10)) == 0 /* is-not GuardActive[specialization=UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode), guardIndex=0] */ || (!(PGuards.isPString(arg1Value_))))) {
return false;
}
}
}
return true;
}
@Override
public int execute(Frame frameValue, int arg0Value, Object arg1Value, int arg2Value) {
int state_0 = this.state_0_;
if ((state_0 & 0b101) != 0 /* is SpecializationActive[UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode)] || SpecializationActive[UnpackSequenceNode.doUnpackIterable(Frame, int, Object, int, Node, PyObjectGetIter, GetNextNode, IsBuiltinObjectProfile, IsBuiltinObjectProfile, IsBuiltinObjectProfile, PRaiseNode)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode)] */ && arg1Value instanceof PSequence) {
PSequence arg1Value_ = (PSequence) arg1Value;
{
PRaiseNode raise_ = this.raise;
if (raise_ != null) {
Node inliningTarget__ = (this);
if ((PGuards.cannotBeOverridden(arg1Value_, inliningTarget__, INLINED_UNPACK_SEQUENCE_GET_CLASS_NODE_)) && (!(PGuards.isPString(arg1Value_)))) {
return UnpackSequenceNode.doUnpackSequence((VirtualFrame) frameValue, arg0Value, arg1Value_, arg2Value, inliningTarget__, INLINED_UNPACK_SEQUENCE_GET_CLASS_NODE_, INLINED_UNPACK_SEQUENCE_GET_SEQUENCE_STORAGE_NODE_, INLINED_UNPACK_SEQUENCE_GET_ITEM_NODE_, raise_);
}
}
}
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[UnpackSequenceNode.doUnpackIterable(Frame, int, Object, int, Node, PyObjectGetIter, GetNextNode, IsBuiltinObjectProfile, IsBuiltinObjectProfile, IsBuiltinObjectProfile, PRaiseNode)] */) {
FallbackData s1_ = this.fallback_cache;
if (s1_ != null) {
{
PRaiseNode raise_1 = this.raise;
if (raise_1 != null) {
Node inliningTarget__1 = (s1_);
if (fallbackGuard_(state_0, arg0Value, arg1Value, arg2Value)) {
return UnpackSequenceNode.doUnpackIterable(frameValue, arg0Value, arg1Value, arg2Value, inliningTarget__1, INLINED_FALLBACK_GET_ITER_, s1_.getNextNode_, INLINED_FALLBACK_NOT_ITERABLE_PROFILE_, INLINED_FALLBACK_STOP_ITERATION_PROFILE1_, INLINED_FALLBACK_STOP_ITERATION_PROFILE2_, raise_1);
}
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value);
}
private int executeAndSpecialize(Frame frameValue, int arg0Value, Object arg1Value, int arg2Value) {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
if (arg1Value instanceof PSequence) {
PSequence arg1Value_ = (PSequence) arg1Value;
while (true) {
boolean UnpackSequence_duplicateFound_ = false;
if ((state_0 & 0b1) != 0 /* is SpecializationActive[UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode)] */) {
PRaiseNode raise_ = this.raise;
if (raise_ != null) {
inliningTarget__ = (this);
if ((PGuards.cannotBeOverridden(arg1Value_, inliningTarget__, INLINED_UNPACK_SEQUENCE_GET_CLASS_NODE_)) && (!(PGuards.isPString(arg1Value_)))) {
UnpackSequence_duplicateFound_ = true;
}
}
}
if (!UnpackSequence_duplicateFound_) {
{
inliningTarget__ = (this);
if (((state_0 & 0b10)) == 0 /* is-not GuardActive[specialization=UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode), guardIndex=0] */) {
state_0 = state_0 | 0b10 /* add GuardActive[specialization=UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode), guardIndex=0] */;
}
if ((PGuards.cannotBeOverridden(arg1Value_, inliningTarget__, INLINED_UNPACK_SEQUENCE_GET_CLASS_NODE_)) && (!(PGuards.isPString(arg1Value_))) && ((state_0 & 0b1)) == 0 /* is-not SpecializationActive[UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode)] */) {
PRaiseNode raise_;
PRaiseNode raise__shared = this.raise;
if (raise__shared != null) {
raise_ = raise__shared;
} else {
raise_ = this.insert((PRaiseNode.create()));
if (raise_ == null) {
throw new IllegalStateException("Specialization 'doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode)' contains a shared cache with name 'raiseNode' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.raise == null) {
this.raise = raise_;
}
state_0 = state_0 | 0b1 /* add SpecializationActive[UnpackSequenceNode.doUnpackSequence(VirtualFrame, int, PSequence, int, Node, GetPythonObjectClassNode, GetSequenceStorageNode, GetItemScalarNode, PRaiseNode)] */;
this.state_0_ = state_0;
UnpackSequence_duplicateFound_ = true;
}
}
}
if (UnpackSequence_duplicateFound_) {
return UnpackSequenceNode.doUnpackSequence((VirtualFrame) frameValue, arg0Value, arg1Value_, arg2Value, inliningTarget__, INLINED_UNPACK_SEQUENCE_GET_CLASS_NODE_, INLINED_UNPACK_SEQUENCE_GET_SEQUENCE_STORAGE_NODE_, INLINED_UNPACK_SEQUENCE_GET_ITEM_NODE_, this.raise);
}
break;
}
}
}
{
Node inliningTarget__1 = null;
FallbackData s1_ = this.insert(new FallbackData());
inliningTarget__1 = (s1_);
GetNextNode getNextNode__ = s1_.insert((GetNextNode.create()));
Objects.requireNonNull(getNextNode__, "Specialization 'doUnpackIterable(Frame, int, Object, int, Node, PyObjectGetIter, GetNextNode, IsBuiltinObjectProfile, IsBuiltinObjectProfile, IsBuiltinObjectProfile, PRaiseNode)' cache 'getNextNode' returned a 'null' default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns 'null'.");
s1_.getNextNode_ = getNextNode__;
PRaiseNode raise_1;
PRaiseNode raise_1_shared = this.raise;
if (raise_1_shared != null) {
raise_1 = raise_1_shared;
} else {
raise_1 = s1_.insert((PRaiseNode.create()));
if (raise_1 == null) {
throw new IllegalStateException("Specialization 'doUnpackIterable(Frame, int, Object, int, Node, PyObjectGetIter, GetNextNode, IsBuiltinObjectProfile, IsBuiltinObjectProfile, IsBuiltinObjectProfile, PRaiseNode)' contains a shared cache with name 'raiseNode' that returned a default value for the cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.raise == null) {
this.raise = raise_1;
}
VarHandle.storeStoreFence();
this.fallback_cache = s1_;
state_0 = state_0 | 0b100 /* add SpecializationActive[UnpackSequenceNode.doUnpackIterable(Frame, int, Object, int, Node, PyObjectGetIter, GetNextNode, IsBuiltinObjectProfile, IsBuiltinObjectProfile, IsBuiltinObjectProfile, PRaiseNode)] */;
this.state_0_ = state_0;
return UnpackSequenceNode.doUnpackIterable(frameValue, arg0Value, arg1Value, arg2Value, inliningTarget__1, INLINED_FALLBACK_GET_ITER_, getNextNode__, INLINED_FALLBACK_NOT_ITERABLE_PROFILE_, INLINED_FALLBACK_STOP_ITERATION_PROFILE1_, INLINED_FALLBACK_STOP_ITERATION_PROFILE2_, raise_1);
}
}
@Override
public NodeCost getCost() {
int state_0 = this.state_0_;
if ((state_0 & 0b101) == 0) {
return NodeCost.UNINITIALIZED;
} else {
int counter = 0;
counter += Integer.bitCount((state_0 & 0b101));
if (counter == 1) {
return NodeCost.MONOMORPHIC;
}
}
return NodeCost.POLYMORPHIC;
}
@NeverDefault
public static UnpackSequenceNode create() {
return new UnpackSequenceNodeGen();
}
@NeverDefault
public static UnpackSequenceNode getUncached() {
return UnpackSequenceNodeGen.UNCACHED;
}
@GeneratedBy(UnpackSequenceNode.class)
@DenyReplace
private static final class FallbackData extends Node implements SpecializationDataNode {
/**
* State Info:
* 0-1: InlinedCache
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link PyObjectGetIter} getIter
* Inline method: {@link PyObjectGetIterNodeGen#inline}
* 2-21: InlinedCache
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} notIterableProfile
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int fallback_state_0_;
/**
* State Info:
* 0-19: InlinedCache
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} stopIterationProfile1
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int fallback_state_1_;
/**
* State Info:
* 0-19: InlinedCache
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} stopIterationProfile2
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int fallback_state_2_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link PyObjectGetIter} getIter
* Inline method: {@link PyObjectGetIterNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_getIter__field1_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link PyObjectGetIter} getIter
* Inline method: {@link PyObjectGetIterNodeGen#inline}
* Inline field: {@link Node} field2
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_getIter__field2_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link GetNextNode} getNextNode
*/
@Child GetNextNode getNextNode_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} notIterableProfile
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_notIterableProfile__field1_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} stopIterationProfile1
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_stopIterationProfile1__field1_;
/**
* Source Info:
* Specialization: {@link UnpackSequenceNode#doUnpackIterable}
* Parameter: {@link IsBuiltinObjectProfile} stopIterationProfile2
* Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node fallback_stopIterationProfile2__field1_;
FallbackData() {
}
@Override
public NodeCost getCost() {
return NodeCost.NONE;
}
private static Lookup lookup_() {
return MethodHandles.lookup();
}
}
@GeneratedBy(UnpackSequenceNode.class)
@DenyReplace
private static final class Uncached extends UnpackSequenceNode {
@Override
public int execute(Frame frameValue, int arg0Value, Object arg1Value, int arg2Value) {
CompilerDirectives.transferToInterpreterAndInvalidate();
if (arg1Value instanceof PSequence) {
PSequence arg1Value_ = (PSequence) arg1Value;
if ((PGuards.cannotBeOverridden(arg1Value_, (this), (GetPythonObjectClassNodeGen.getUncached()))) && (!(PGuards.isPString(arg1Value_)))) {
return UnpackSequenceNode.doUnpackSequence((VirtualFrame) frameValue, arg0Value, arg1Value_, arg2Value, (this), (GetPythonObjectClassNodeGen.getUncached()), (GetSequenceStorageNode.getUncached()), (GetItemScalarNodeGen.getUncached()), (PRaiseNode.getUncached()));
}
}
return UnpackSequenceNode.doUnpackIterable(frameValue, arg0Value, arg1Value, arg2Value, (this), (PyObjectGetIter.getUncached()), (GetNextNode.getUncached()), (IsBuiltinObjectProfile.getUncached()), (IsBuiltinObjectProfile.getUncached()), (IsBuiltinObjectProfile.getUncached()), (PRaiseNode.getUncached()));
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@Override
public boolean isAdoptable() {
return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy