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

com.oracle.graal.python.nodes.bytecode.PrintExprNodeGen Maven / Gradle / Ivy

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

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.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 java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link PrintExprNode#print}
 *     Activation probability: 1.00000
 *     With/without class size: 68/45 bytes
 * 
*/ @GeneratedBy(PrintExprNode.class) @SuppressWarnings("javadoc") public final class PrintExprNodeGen extends PrintExprNode { private static final StateField STATE_0_PrintExprNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
*/ private static final PyObjectLookupAttr INLINED_LOOKUP_ATTR_ = PyObjectLookupAttrNodeGen.inline(InlineTarget.create(PyObjectLookupAttr.class, STATE_0_PrintExprNode_UPDATER.subUpdater(1, 5), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field1_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field2_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field3_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field4_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field5_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field6_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field7_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field8_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field9_", Node.class), ReferenceField.create(MethodHandles.lookup(), "lookupAttr__field10_", Node.class))); private static final Uncached UNCACHED = new Uncached(); /** * State Info:
     *   0: SpecializationActive {@link PrintExprNode#print}
     *   1-5: InlinedCache
     *        Specialization: {@link PrintExprNode#print}
     *        Parameter: {@link PyObjectLookupAttr} lookupAttr
     *        Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field1_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field2_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field3
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field3_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field4
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field4_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field5
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field5_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field6
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field6_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field7
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field7_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field8
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field8_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field9
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field9_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link PyObjectLookupAttr} lookupAttr
     *   Inline method: {@link PyObjectLookupAttrNodeGen#inline}
     *   Inline field: {@link Node} field10
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node lookupAttr__field10_; /** * Source Info:
     *   Specialization: {@link PrintExprNode#print}
     *   Parameter: {@link CallNode} callNode
*/ @Child private CallNode callNode_; private PrintExprNodeGen() { } @Override public void execute(Frame frameValue, Object arg0Value) { int state_0 = this.state_0_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[PrintExprNode.print(VirtualFrame, Object, Node, PyObjectLookupAttr, CallNode)] */) { { CallNode callNode__ = this.callNode_; if (callNode__ != null) { Node inliningTarget__ = (this); print((VirtualFrame) frameValue, arg0Value, inliningTarget__, INLINED_LOOKUP_ATTR_, callNode__); return; } } } CompilerDirectives.transferToInterpreterAndInvalidate(); executeAndSpecialize(frameValue, arg0Value); return; } private void executeAndSpecialize(Frame frameValue, Object arg0Value) { int state_0 = this.state_0_; { Node inliningTarget__ = null; inliningTarget__ = (this); CallNode callNode__ = this.insert((CallNode.create())); Objects.requireNonNull(callNode__, "Specialization 'print(VirtualFrame, Object, Node, PyObjectLookupAttr, CallNode)' 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__; state_0 = state_0 | 0b1 /* add SpecializationActive[PrintExprNode.print(VirtualFrame, Object, Node, PyObjectLookupAttr, CallNode)] */; this.state_0_ = state_0; print((VirtualFrame) frameValue, arg0Value, inliningTarget__, INLINED_LOOKUP_ATTR_, callNode__); 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 PrintExprNode create() { return new PrintExprNodeGen(); } @NeverDefault public static PrintExprNode getUncached() { return PrintExprNodeGen.UNCACHED; } @GeneratedBy(PrintExprNode.class) @DenyReplace private static final class Uncached extends PrintExprNode { @Override public void execute(Frame frameValue, Object arg0Value) { CompilerDirectives.transferToInterpreterAndInvalidate(); print((VirtualFrame) frameValue, arg0Value, (this), (PyObjectLookupAttr.getUncached()), (CallNode.getUncached())); return; } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy