All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.graal.python.lib.PyObjectGetIterNodeGen Maven / Gradle / Ivy

There is a newer version: 24.1.1
Show newest version
// CheckStyle: start generated
package com.oracle.graal.python.lib;

import com.oracle.graal.python.builtins.objects.range.PIntRange;
import com.oracle.graal.python.builtins.objects.type.SpecialMethodSlot;
import com.oracle.graal.python.nodes.PRaiseNode.Lazy;
import com.oracle.graal.python.nodes.PRaiseNodeGen.LazyNodeGen;
import com.oracle.graal.python.nodes.call.special.CallUnaryMethodNode;
import com.oracle.graal.python.nodes.call.special.LookupSpecialMethodSlotNode;
import com.oracle.graal.python.nodes.object.GetClassNode;
import com.oracle.graal.python.nodes.object.GetClassNodeGen;
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
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.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.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 PyObjectGetIter#getIterRange}
 *     Activation probability: 0.65000
 *     With/without class size: 11/0 bytes
 *   Specialization {@link PyObjectGetIter#getIter}
 *     Activation probability: 0.35000
 *     With/without class size: 25/43 bytes
 * 
*/ @GeneratedBy(PyObjectGetIter.class) @SuppressWarnings({"javadoc", "unused"}) public final class PyObjectGetIterNodeGen extends PyObjectGetIter { private static final StateField GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_0_UPDATER = StateField.create(GetIterData.lookup_(), "getIter_state_0_"); private static final StateField GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_1_UPDATER = StateField.create(GetIterData.lookup_(), "getIter_state_1_"); /** * Source Info:
     *   Specialization: {@link PyObjectGetIter#getIter}
     *   Parameter: {@link GetClassNode} getReceiverClass
     *   Inline method: {@link GetClassNodeGen#inline}
*/ private static final GetClassNode INLINED_GET_ITER_GET_RECEIVER_CLASS_ = GetClassNodeGen.inline(InlineTarget.create(GetClassNode.class, GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_0_UPDATER.subUpdater(0, 17), ReferenceField.create(GetIterData.lookup_(), "getIter_getReceiverClass__field1_", Node.class))); /** * Source Info:
     *   Specialization: {@link PyObjectGetIter#getIter}
     *   Parameter: {@link PySequenceCheckNode} sequenceCheckNode
     *   Inline method: {@link PySequenceCheckNodeGen#inline}
*/ private static final PySequenceCheckNode INLINED_GET_ITER_SEQUENCE_CHECK_NODE_ = PySequenceCheckNodeGen.inline(InlineTarget.create(PySequenceCheckNode.class, GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_0_UPDATER.subUpdater(17, 6), ReferenceField.create(GetIterData.lookup_(), "getIter_sequenceCheckNode__field1_", Node.class), ReferenceField.create(GetIterData.lookup_(), "getIter_sequenceCheckNode__field2_", Node.class))); /** * Source Info:
     *   Specialization: {@link PyObjectGetIter#getIter}
     *   Parameter: {@link Lazy} raise
     *   Inline method: {@link LazyNodeGen#inline}
*/ private static final Lazy INLINED_GET_ITER_RAISE_ = LazyNodeGen.inline(InlineTarget.create(Lazy.class, GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_0_UPDATER.subUpdater(23, 1), ReferenceField.create(GetIterData.lookup_(), "getIter_raise__field1_", Node.class))); /** * Source Info:
     *   Specialization: {@link PyObjectGetIter#getIter}
     *   Parameter: {@link PyIterCheckNode} checkNode
     *   Inline method: {@link PyIterCheckNodeGen#inline}
*/ private static final PyIterCheckNode INLINED_GET_ITER_CHECK_NODE_ = PyIterCheckNodeGen.inline(InlineTarget.create(PyIterCheckNode.class, GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_1_UPDATER.subUpdater(0, 25), ReferenceField.create(GetIterData.lookup_(), "getIter_checkNode__field1_", Node.class), ReferenceField.create(GetIterData.lookup_(), "getIter_checkNode__field2_", Node.class), ReferenceField.create(GetIterData.lookup_(), "getIter_checkNode__field3_", Node.class))); private static final Uncached UNCACHED = new Uncached(); /** * State Info:
     *   0: SpecializationActive {@link PyObjectGetIter#getIterRange}
     *   1: SpecializationActive {@link PyObjectGetIter#getIter}
     * 
*/ @CompilationFinal private int state_0_; /** * Source Info:
     *   Specialization: {@link PyObjectGetIter#getIterRange}
     *   Parameter: {@link PythonObjectFactory} factory
*/ @Child private PythonObjectFactory factory; @Child private GetIterData getIter_cache; private PyObjectGetIterNodeGen() { } @Override public Object execute(Frame frameValue, Node arg0Value, Object arg1Value) { int state_0 = this.state_0_; if (state_0 != 0 /* is SpecializationActive[PyObjectGetIter.getIterRange(PIntRange, PythonObjectFactory)] || SpecializationActive[PyObjectGetIter.getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[PyObjectGetIter.getIterRange(PIntRange, PythonObjectFactory)] */ && arg1Value instanceof PIntRange) { PIntRange arg1Value_ = (PIntRange) arg1Value; { PythonObjectFactory factory_ = this.factory; if (factory_ != null) { return PyObjectGetIter.getIterRange(arg1Value_, factory_); } } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[PyObjectGetIter.getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)] */) { GetIterData s1_ = this.getIter_cache; if (s1_ != null) { { PythonObjectFactory factory_1 = this.factory; if (factory_1 != null) { return PyObjectGetIter.getIter(frameValue, s1_, arg1Value, INLINED_GET_ITER_GET_RECEIVER_CLASS_, s1_.lookupIter_, INLINED_GET_ITER_SEQUENCE_CHECK_NODE_, factory_1, INLINED_GET_ITER_RAISE_, s1_.callIter_, INLINED_GET_ITER_CHECK_NODE_); } } } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(frameValue, arg0Value, arg1Value); } private Object executeAndSpecialize(Frame frameValue, Node arg0Value, Object arg1Value) { int state_0 = this.state_0_; if (arg1Value instanceof PIntRange) { PIntRange arg1Value_ = (PIntRange) arg1Value; PythonObjectFactory factory_; PythonObjectFactory factory__shared = this.factory; if (factory__shared != null) { factory_ = factory__shared; } else { factory_ = this.insert((PythonObjectFactory.create())); if (factory_ == null) { throw new IllegalStateException("Specialization 'getIterRange(PIntRange, PythonObjectFactory)' contains a shared cache with name 'factory' 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.factory == null) { VarHandle.storeStoreFence(); this.factory = factory_; } state_0 = state_0 | 0b1 /* add SpecializationActive[PyObjectGetIter.getIterRange(PIntRange, PythonObjectFactory)] */; this.state_0_ = state_0; return PyObjectGetIter.getIterRange(arg1Value_, factory_); } GetIterData s1_ = this.insert(new GetIterData()); LookupSpecialMethodSlotNode lookupIter__ = s1_.insert((LookupSpecialMethodSlotNode.create(SpecialMethodSlot.Iter))); Objects.requireNonNull(lookupIter__, "Specialization 'getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)' cache 'lookupIter' 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_.lookupIter_ = lookupIter__; PythonObjectFactory factory_1; PythonObjectFactory factory_1_shared = this.factory; if (factory_1_shared != null) { factory_1 = factory_1_shared; } else { factory_1 = s1_.insert((PythonObjectFactory.create())); if (factory_1 == null) { throw new IllegalStateException("Specialization 'getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)' contains a shared cache with name 'factory' 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.factory == null) { this.factory = factory_1; } CallUnaryMethodNode callIter__ = s1_.insert((CallUnaryMethodNode.create())); Objects.requireNonNull(callIter__, "Specialization 'getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)' cache 'callIter' 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_.callIter_ = callIter__; VarHandle.storeStoreFence(); this.getIter_cache = s1_; state_0 = state_0 | 0b10 /* add SpecializationActive[PyObjectGetIter.getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)] */; this.state_0_ = state_0; return PyObjectGetIter.getIter(frameValue, s1_, arg1Value, INLINED_GET_ITER_GET_RECEIVER_CLASS_, lookupIter__, INLINED_GET_ITER_SEQUENCE_CHECK_NODE_, factory_1, INLINED_GET_ITER_RAISE_, callIter__, INLINED_GET_ITER_CHECK_NODE_); } @Override public NodeCost getCost() { int state_0 = this.state_0_; if (state_0 == 0) { return NodeCost.UNINITIALIZED; } else { if ((state_0 & (state_0 - 1)) == 0 /* is-single */) { return NodeCost.MONOMORPHIC; } } return NodeCost.POLYMORPHIC; } @NeverDefault public static PyObjectGetIter create() { return new PyObjectGetIterNodeGen(); } @NeverDefault public static PyObjectGetIter getUncached() { return PyObjectGetIterNodeGen.UNCACHED; } /** * Required Fields:
    *
  • {@link Inlined#state_0_} *
  • {@link Inlined#factory} *
  • {@link Inlined#getIter_cache} *
*/ @NeverDefault public static PyObjectGetIter inline(@RequiredField(bits = 2, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) { return new PyObjectGetIterNodeGen.Inlined(target); } @GeneratedBy(PyObjectGetIter.class) @DenyReplace private static final class Inlined extends PyObjectGetIter { /** * State Info:
         *   0: SpecializationActive {@link PyObjectGetIter#getIterRange}
         *   1: SpecializationActive {@link PyObjectGetIter#getIter}
         * 
*/ private final StateField state_0_; private final ReferenceField factory; private final ReferenceField getIter_cache; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link GetClassNode} getReceiverClass
         *   Inline method: {@link GetClassNodeGen#inline}
*/ private final GetClassNode getIter_getReceiverClass_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link PySequenceCheckNode} sequenceCheckNode
         *   Inline method: {@link PySequenceCheckNodeGen#inline}
*/ private final PySequenceCheckNode getIter_sequenceCheckNode_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link Lazy} raise
         *   Inline method: {@link LazyNodeGen#inline}
*/ private final Lazy getIter_raise_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link PyIterCheckNode} checkNode
         *   Inline method: {@link PyIterCheckNodeGen#inline}
*/ private final PyIterCheckNode getIter_checkNode_; @SuppressWarnings("unchecked") private Inlined(InlineTarget target) { assert target.getTargetClass().isAssignableFrom(PyObjectGetIter.class); this.state_0_ = target.getState(0, 2); this.factory = target.getReference(1, PythonObjectFactory.class); this.getIter_cache = target.getReference(2, GetIterData.class); this.getIter_getReceiverClass_ = GetClassNodeGen.inline(InlineTarget.create(GetClassNode.class, GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_0_UPDATER.subUpdater(0, 17), ReferenceField.create(GetIterData.lookup_(), "getIter_getReceiverClass__field1_", Node.class))); this.getIter_sequenceCheckNode_ = PySequenceCheckNodeGen.inline(InlineTarget.create(PySequenceCheckNode.class, GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_0_UPDATER.subUpdater(17, 6), ReferenceField.create(GetIterData.lookup_(), "getIter_sequenceCheckNode__field1_", Node.class), ReferenceField.create(GetIterData.lookup_(), "getIter_sequenceCheckNode__field2_", Node.class))); this.getIter_raise_ = LazyNodeGen.inline(InlineTarget.create(Lazy.class, GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_0_UPDATER.subUpdater(23, 1), ReferenceField.create(GetIterData.lookup_(), "getIter_raise__field1_", Node.class))); this.getIter_checkNode_ = PyIterCheckNodeGen.inline(InlineTarget.create(PyIterCheckNode.class, GET_ITER__PY_OBJECT_GET_ITER_GET_ITER_STATE_1_UPDATER.subUpdater(0, 25), ReferenceField.create(GetIterData.lookup_(), "getIter_checkNode__field1_", Node.class), ReferenceField.create(GetIterData.lookup_(), "getIter_checkNode__field2_", Node.class), ReferenceField.create(GetIterData.lookup_(), "getIter_checkNode__field3_", Node.class))); } @Override public Object execute(Frame frameValue, Node arg0Value, Object arg1Value) { int state_0 = this.state_0_.get(arg0Value); if (state_0 != 0 /* is SpecializationActive[PyObjectGetIter.getIterRange(PIntRange, PythonObjectFactory)] || SpecializationActive[PyObjectGetIter.getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[PyObjectGetIter.getIterRange(PIntRange, PythonObjectFactory)] */ && arg1Value instanceof PIntRange) { PIntRange arg1Value_ = (PIntRange) arg1Value; { PythonObjectFactory factory_ = this.factory.get(arg0Value); if (factory_ != null) { return PyObjectGetIter.getIterRange(arg1Value_, factory_); } } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[PyObjectGetIter.getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)] */) { GetIterData s1_ = this.getIter_cache.get(arg0Value); if (s1_ != null) { { PythonObjectFactory factory_1 = this.factory.get(arg0Value); if (factory_1 != null) { return PyObjectGetIter.getIter(frameValue, s1_, arg1Value, this.getIter_getReceiverClass_, s1_.lookupIter_, this.getIter_sequenceCheckNode_, factory_1, this.getIter_raise_, s1_.callIter_, this.getIter_checkNode_); } } } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(frameValue, arg0Value, arg1Value); } private Object executeAndSpecialize(Frame frameValue, Node arg0Value, Object arg1Value) { int state_0 = this.state_0_.get(arg0Value); if (arg1Value instanceof PIntRange) { PIntRange arg1Value_ = (PIntRange) arg1Value; PythonObjectFactory factory_; PythonObjectFactory factory__shared = this.factory.get(arg0Value); if (factory__shared != null) { factory_ = factory__shared; } else { factory_ = arg0Value.insert((PythonObjectFactory.create())); if (factory_ == null) { throw new IllegalStateException("Specialization 'getIterRange(PIntRange, PythonObjectFactory)' contains a shared cache with name 'factory' 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.factory.get(arg0Value) == null) { VarHandle.storeStoreFence(); this.factory.set(arg0Value, factory_); } state_0 = state_0 | 0b1 /* add SpecializationActive[PyObjectGetIter.getIterRange(PIntRange, PythonObjectFactory)] */; this.state_0_.set(arg0Value, state_0); return PyObjectGetIter.getIterRange(arg1Value_, factory_); } GetIterData s1_ = arg0Value.insert(new GetIterData()); LookupSpecialMethodSlotNode lookupIter__ = s1_.insert((LookupSpecialMethodSlotNode.create(SpecialMethodSlot.Iter))); Objects.requireNonNull(lookupIter__, "Specialization 'getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)' cache 'lookupIter' 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_.lookupIter_ = lookupIter__; PythonObjectFactory factory_1; PythonObjectFactory factory_1_shared = this.factory.get(arg0Value); if (factory_1_shared != null) { factory_1 = factory_1_shared; } else { factory_1 = s1_.insert((PythonObjectFactory.create())); if (factory_1 == null) { throw new IllegalStateException("Specialization 'getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)' contains a shared cache with name 'factory' 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.factory.get(arg0Value) == null) { this.factory.set(arg0Value, factory_1); } CallUnaryMethodNode callIter__ = s1_.insert((CallUnaryMethodNode.create())); Objects.requireNonNull(callIter__, "Specialization 'getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)' cache 'callIter' 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_.callIter_ = callIter__; VarHandle.storeStoreFence(); this.getIter_cache.set(arg0Value, s1_); state_0 = state_0 | 0b10 /* add SpecializationActive[PyObjectGetIter.getIter(Frame, Node, Object, GetClassNode, LookupSpecialMethodSlotNode, PySequenceCheckNode, PythonObjectFactory, Lazy, CallUnaryMethodNode, PyIterCheckNode)] */; this.state_0_.set(arg0Value, state_0); return PyObjectGetIter.getIter(frameValue, s1_, arg1Value, this.getIter_getReceiverClass_, lookupIter__, this.getIter_sequenceCheckNode_, factory_1, this.getIter_raise_, callIter__, this.getIter_checkNode_); } @Override public boolean isAdoptable() { return false; } } @GeneratedBy(PyObjectGetIter.class) @DenyReplace private static final class GetIterData extends Node implements SpecializationDataNode { /** * State Info:
         *   0-16: InlinedCache
         *        Specialization: {@link PyObjectGetIter#getIter}
         *        Parameter: {@link GetClassNode} getReceiverClass
         *        Inline method: {@link GetClassNodeGen#inline}
         *   17-22: InlinedCache
         *        Specialization: {@link PyObjectGetIter#getIter}
         *        Parameter: {@link PySequenceCheckNode} sequenceCheckNode
         *        Inline method: {@link PySequenceCheckNodeGen#inline}
         *   23: InlinedCache
         *        Specialization: {@link PyObjectGetIter#getIter}
         *        Parameter: {@link Lazy} raise
         *        Inline method: {@link LazyNodeGen#inline}
         * 
*/ @CompilationFinal @UnsafeAccessedField private int getIter_state_0_; /** * State Info:
         *   0-24: InlinedCache
         *        Specialization: {@link PyObjectGetIter#getIter}
         *        Parameter: {@link PyIterCheckNode} checkNode
         *        Inline method: {@link PyIterCheckNodeGen#inline}
         * 
*/ @CompilationFinal @UnsafeAccessedField private int getIter_state_1_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link GetClassNode} getReceiverClass
         *   Inline method: {@link GetClassNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIter_getReceiverClass__field1_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link LookupSpecialMethodSlotNode} lookupIter
*/ @Child LookupSpecialMethodSlotNode lookupIter_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link PySequenceCheckNode} sequenceCheckNode
         *   Inline method: {@link PySequenceCheckNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIter_sequenceCheckNode__field1_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link PySequenceCheckNode} sequenceCheckNode
         *   Inline method: {@link PySequenceCheckNodeGen#inline}
         *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIter_sequenceCheckNode__field2_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link Lazy} raise
         *   Inline method: {@link LazyNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIter_raise__field1_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link CallUnaryMethodNode} callIter
*/ @Child CallUnaryMethodNode callIter_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link PyIterCheckNode} checkNode
         *   Inline method: {@link PyIterCheckNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIter_checkNode__field1_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link PyIterCheckNode} checkNode
         *   Inline method: {@link PyIterCheckNodeGen#inline}
         *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIter_checkNode__field2_; /** * Source Info:
         *   Specialization: {@link PyObjectGetIter#getIter}
         *   Parameter: {@link PyIterCheckNode} checkNode
         *   Inline method: {@link PyIterCheckNodeGen#inline}
         *   Inline field: {@link Node} field3
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getIter_checkNode__field3_; GetIterData() { } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } @GeneratedBy(PyObjectGetIter.class) @DenyReplace private static final class Uncached extends PyObjectGetIter { @Override public Object execute(Frame frameValue, Node arg0Value, Object arg1Value) { CompilerDirectives.transferToInterpreterAndInvalidate(); if (arg1Value instanceof PIntRange) { PIntRange arg1Value_ = (PIntRange) arg1Value; return PyObjectGetIter.getIterRange(arg1Value_, (PythonObjectFactory.getUncached())); } return PyObjectGetIter.getIter(frameValue, arg0Value, arg1Value, (GetClassNode.getUncached()), (LookupSpecialMethodSlotNode.getUncached(SpecialMethodSlot.Iter)), (PySequenceCheckNodeGen.getUncached()), (PythonObjectFactory.getUncached()), (Lazy.getUncached()), (CallUnaryMethodNode.getUncached()), (PyIterCheckNodeGen.getUncached())); } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy