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

com.oracle.graal.python.nodes.WriteUnraisableNodeGen Maven / Gradle / Ivy

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

import com.oracle.graal.python.builtins.objects.exception.ExceptionNodes.GetTracebackNode;
import com.oracle.graal.python.builtins.objects.exception.ExceptionNodesFactory.GetTracebackNodeGen;
import com.oracle.graal.python.lib.PyObjectLookupAttr;
import com.oracle.graal.python.lib.PyObjectLookupAttrNodeGen;
import com.oracle.graal.python.nodes.call.CallNode;
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.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 com.oracle.truffle.api.strings.TruffleString;
import com.oracle.truffle.api.strings.TruffleString.ConcatNode;
import com.oracle.truffle.api.strings.TruffleString.CopyToByteArrayNode;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link WriteUnraisableNode#writeUnraisable}
 *     Activation probability: 1.00000
 *     With/without class size: 92/72 bytes
 * 
*/ @GeneratedBy(WriteUnraisableNode.class) @SuppressWarnings("javadoc") public final class WriteUnraisableNodeGen extends WriteUnraisableNode { private static final StateField STATE_0_WriteUnraisableNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
*/ private static final PyObjectLookupAttr INLINED_LOOKUP_ = PyObjectLookupAttrNodeGen.inline(InlineTarget.create(PyObjectLookupAttr.class, STATE_0_WriteUnraisableNode_UPDATER.subUpdater(1, 5), ReferenceField.create(MethodHandles.lookup(), "lookup__field1_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field2_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field3_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field4_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field5_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field6_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field7_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field8_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field9_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookup__field10_", Node.class))); /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link GetClassNode} getClassNode
     *   Inline method: {@link GetClassNodeGen#inline}
*/ private static final GetClassNode INLINED_GET_CLASS_NODE_ = GetClassNodeGen.inline(InlineTarget.create(GetClassNode.class, STATE_0_WriteUnraisableNode_UPDATER.subUpdater(6, 17), ReferenceField.create(MethodHandles.lookup(), "getClassNode__field1_", Node.class))); /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link GetTracebackNode} getTracebackNode
     *   Inline method: {@link GetTracebackNodeGen#inline}
*/ private static final GetTracebackNode INLINED_GET_TRACEBACK_NODE_ = GetTracebackNodeGen.inline(InlineTarget.create(GetTracebackNode.class, STATE_0_WriteUnraisableNode_UPDATER.subUpdater(23, 5), ReferenceField.create(MethodHandles.lookup(), "getTracebackNode__field1_", Node.class), ReferenceField.create(MethodHandles.lookup(), "getTracebackNode__field2_", Node.class))); private static final Uncached UNCACHED = new Uncached(); /** * State Info:
     *   0: SpecializationActive {@link WriteUnraisableNode#writeUnraisable}
     *   1-5: InlinedCache
     *        Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *        Parameter: {@link PyObjectLookupAttr} lookup
     *        Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   6-22: InlinedCache
     *        Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *        Parameter: {@link GetClassNode} getClassNode
     *        Inline method: {@link GetClassNodeGen#inline}
     *   23-27: InlinedCache
     *        Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *        Parameter: {@link GetTracebackNode} getTracebackNode
     *        Inline method: {@link GetTracebackNodeGen#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field1_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field2_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field3
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field3_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field4
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field4_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field5
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field5_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field6
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field6_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field7
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field7_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field8
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field8_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field9
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field9_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PyObjectLookupAttr} lookup
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field10
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookup__field10_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link CallNode} callNode
*/ @Child private CallNode callNode_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link GetClassNode} getClassNode
     *   Inline method: {@link GetClassNodeGen#inline}
     *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getClassNode__field1_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link PythonObjectFactory} factory
*/ @Child private PythonObjectFactory factory_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link GetTracebackNode} getTracebackNode
     *   Inline method: {@link GetTracebackNodeGen#inline}
     *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getTracebackNode__field1_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link GetTracebackNode} getTracebackNode
     *   Inline method: {@link GetTracebackNodeGen#inline}
     *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node getTracebackNode__field2_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link ConcatNode} concatNode
*/ @Child private ConcatNode concatNode_; /** * Source Info:
     *   Specialization: {@link WriteUnraisableNode#writeUnraisable}
     *   Parameter: {@link CopyToByteArrayNode} copyToByteArrayNode
*/ @Child private CopyToByteArrayNode copyToByteArrayNode_; private WriteUnraisableNodeGen() { } @Override protected void executeInternal(Frame frameValue, Object arg0Value, TruffleString arg1Value, Object arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[WriteUnraisableNode.writeUnraisable(VirtualFrame, Object, TruffleString, Object, Node, PyObjectLookupAttr, CallNode, GetClassNode, PythonObjectFactory, GetTracebackNode, ConcatNode, CopyToByteArrayNode)] */) { { CallNode callNode__ = this.callNode_; if (callNode__ != null) { PythonObjectFactory factory__ = this.factory_; if (factory__ != null) { ConcatNode concatNode__ = this.concatNode_; if (concatNode__ != null) { CopyToByteArrayNode copyToByteArrayNode__ = this.copyToByteArrayNode_; if (copyToByteArrayNode__ != null) { Node inliningTarget__ = (this); WriteUnraisableNode.writeUnraisable((VirtualFrame) frameValue, arg0Value, arg1Value, arg2Value, inliningTarget__, INLINED_LOOKUP_, callNode__, INLINED_GET_CLASS_NODE_, factory__, INLINED_GET_TRACEBACK_NODE_, concatNode__, copyToByteArrayNode__); return; } } } } } } CompilerDirectives.transferToInterpreterAndInvalidate(); executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value); return; } private void executeAndSpecialize(Frame frameValue, Object arg0Value, TruffleString arg1Value, Object arg2Value) { int state_0 = this.state_0_; { Node inliningTarget__ = null; inliningTarget__ = (this); CallNode callNode__ = this.insert((CallNode.create())); Objects.requireNonNull(callNode__, "Specialization 'writeUnraisable(VirtualFrame, Object, TruffleString, Object, Node, PyObjectLookupAttr, CallNode, GetClassNode, PythonObjectFactory, GetTracebackNode, ConcatNode, CopyToByteArrayNode)' cache 'callNode' 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'."); VarHandle.storeStoreFence(); this.callNode_ = callNode__; PythonObjectFactory factory__ = this.insert((PythonObjectFactory.create())); Objects.requireNonNull(factory__, "Specialization 'writeUnraisable(VirtualFrame, Object, TruffleString, Object, Node, PyObjectLookupAttr, CallNode, GetClassNode, PythonObjectFactory, GetTracebackNode, ConcatNode, CopyToByteArrayNode)' cache 'factory' 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'."); VarHandle.storeStoreFence(); this.factory_ = factory__; ConcatNode concatNode__ = this.insert((ConcatNode.create())); Objects.requireNonNull(concatNode__, "Specialization 'writeUnraisable(VirtualFrame, Object, TruffleString, Object, Node, PyObjectLookupAttr, CallNode, GetClassNode, PythonObjectFactory, GetTracebackNode, ConcatNode, CopyToByteArrayNode)' cache 'concatNode' 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'."); VarHandle.storeStoreFence(); this.concatNode_ = concatNode__; CopyToByteArrayNode copyToByteArrayNode__ = this.insert((CopyToByteArrayNode.create())); Objects.requireNonNull(copyToByteArrayNode__, "Specialization 'writeUnraisable(VirtualFrame, Object, TruffleString, Object, Node, PyObjectLookupAttr, CallNode, GetClassNode, PythonObjectFactory, GetTracebackNode, ConcatNode, CopyToByteArrayNode)' cache 'copyToByteArrayNode' 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'."); VarHandle.storeStoreFence(); this.copyToByteArrayNode_ = copyToByteArrayNode__; state_0 = state_0 | 0b1 /* add SpecializationActive[WriteUnraisableNode.writeUnraisable(VirtualFrame, Object, TruffleString, Object, Node, PyObjectLookupAttr, CallNode, GetClassNode, PythonObjectFactory, GetTracebackNode, ConcatNode, CopyToByteArrayNode)] */; this.state_0_ = state_0; WriteUnraisableNode.writeUnraisable((VirtualFrame) frameValue, arg0Value, arg1Value, arg2Value, inliningTarget__, INLINED_LOOKUP_, callNode__, INLINED_GET_CLASS_NODE_, factory__, INLINED_GET_TRACEBACK_NODE_, concatNode__, copyToByteArrayNode__); return; } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b1) == 0) { return NodeCost.UNINITIALIZED; } else { return NodeCost.MONOMORPHIC; } } @NeverDefault public static WriteUnraisableNode create() { return new WriteUnraisableNodeGen(); } @NeverDefault public static WriteUnraisableNode getUncached() { return WriteUnraisableNodeGen.UNCACHED; } @GeneratedBy(WriteUnraisableNode.class) @DenyReplace private static final class Uncached extends WriteUnraisableNode { @Override protected void executeInternal(Frame frameValue, Object arg0Value, TruffleString arg1Value, Object arg2Value) { CompilerDirectives.transferToInterpreterAndInvalidate(); WriteUnraisableNode.writeUnraisable((VirtualFrame) frameValue, arg0Value, arg1Value, arg2Value, (this), (PyObjectLookupAttr.getUncached()), (CallNode.getUncached()), (GetClassNode.getUncached()), (PythonObjectFactory.getUncached()), (GetTracebackNodeGen.getUncached()), (ConcatNode.getUncached()), (CopyToByteArrayNode.getUncached())); return; } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy