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

com.oracle.graal.python.nodes.bytecode.ExitWithNodeGen 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.builtins.objects.exception.ExceptionNodes.GetTracebackNode;
import com.oracle.graal.python.builtins.objects.exception.ExceptionNodesFactory.GetTracebackNodeGen;
import com.oracle.graal.python.lib.PyObjectIsTrueNode;
import com.oracle.graal.python.lib.PyObjectIsTrueNodeGen;
import com.oracle.graal.python.nodes.call.special.CallQuaternaryMethodNode;
import com.oracle.graal.python.nodes.object.GetClassNode;
import com.oracle.graal.python.nodes.object.GetClassNodeGen;
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 ExitWithNode#exit}
 *     Activation probability: 1.00000
 *     With/without class size: 64/42 bytes
 * 
*/ @GeneratedBy(ExitWithNode.class) @SuppressWarnings("javadoc") public final class ExitWithNodeGen extends ExitWithNode { private static final StateField STATE_0_ExitWithNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); private static final StateField STATE_1_ExitWithNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_1_"); /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   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_ExitWithNode_UPDATER.subUpdater(1, 17), ReferenceField.create(MethodHandles.lookup(), "getClassNode__field1_", Node.class))); /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   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_ExitWithNode_UPDATER.subUpdater(18, 5), ReferenceField.create(MethodHandles.lookup(), "getTracebackNode__field1_", Node.class), ReferenceField.create(MethodHandles.lookup(), "getTracebackNode__field2_", Node.class))); /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   Parameter: {@link PyObjectIsTrueNode} isTrueNode
     *   Inline method: {@link PyObjectIsTrueNodeGen#inline}
*/ private static final PyObjectIsTrueNode INLINED_IS_TRUE_NODE_ = PyObjectIsTrueNodeGen.inline(InlineTarget.create(PyObjectIsTrueNode.class, STATE_1_ExitWithNode_UPDATER.subUpdater(0, 19), STATE_0_ExitWithNode_UPDATER.subUpdater(23, 4), ReferenceField.create(MethodHandles.lookup(), "isTrueNode__field2_", Object.class), ReferenceField.create(MethodHandles.lookup(), "isTrueNode__field3_", Node.class), ReferenceField.create(MethodHandles.lookup(), "isTrueNode__field4_", Node.class), ReferenceField.create(MethodHandles.lookup(), "isTrueNode__field5_", Node.class), ReferenceField.create(MethodHandles.lookup(), "isTrueNode__field6_", Node.class))); private static final Uncached UNCACHED = new Uncached(); /** * State Info:
     *   0: SpecializationActive {@link ExitWithNode#exit}
     *   1-17: InlinedCache
     *        Specialization: {@link ExitWithNode#exit}
     *        Parameter: {@link GetClassNode} getClassNode
     *        Inline method: {@link GetClassNodeGen#inline}
     *   18-22: InlinedCache
     *        Specialization: {@link ExitWithNode#exit}
     *        Parameter: {@link GetTracebackNode} getTracebackNode
     *        Inline method: {@link GetTracebackNodeGen#inline}
     *   23-26: InlinedCache
     *        Specialization: {@link ExitWithNode#exit}
     *        Parameter: {@link PyObjectIsTrueNode} isTrueNode
     *        Inline method: {@link PyObjectIsTrueNodeGen#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; /** * State Info:
     *   0-18: InlinedCache
     *        Specialization: {@link ExitWithNode#exit}
     *        Parameter: {@link PyObjectIsTrueNode} isTrueNode
     *        Inline method: {@link PyObjectIsTrueNodeGen#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_1_; /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   Parameter: {@link CallQuaternaryMethodNode} callExit
*/ @Child private CallQuaternaryMethodNode callExit_; /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   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 ExitWithNode#exit}
     *   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 ExitWithNode#exit}
     *   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 ExitWithNode#exit}
     *   Parameter: {@link PyObjectIsTrueNode} isTrueNode
     *   Inline method: {@link PyObjectIsTrueNodeGen#inline}
     *   Inline field: {@link Object} field2
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object isTrueNode__field2_; /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   Parameter: {@link PyObjectIsTrueNode} isTrueNode
     *   Inline method: {@link PyObjectIsTrueNodeGen#inline}
     *   Inline field: {@link Node} field3
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node isTrueNode__field3_; /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   Parameter: {@link PyObjectIsTrueNode} isTrueNode
     *   Inline method: {@link PyObjectIsTrueNodeGen#inline}
     *   Inline field: {@link Node} field4
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node isTrueNode__field4_; /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   Parameter: {@link PyObjectIsTrueNode} isTrueNode
     *   Inline method: {@link PyObjectIsTrueNodeGen#inline}
     *   Inline field: {@link Node} field5
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node isTrueNode__field5_; /** * Source Info:
     *   Specialization: {@link ExitWithNode#exit}
     *   Parameter: {@link PyObjectIsTrueNode} isTrueNode
     *   Inline method: {@link PyObjectIsTrueNodeGen#inline}
     *   Inline field: {@link Node} field6
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node isTrueNode__field6_; private ExitWithNodeGen() { } @Override public int execute(Frame frameValue, int arg0Value, boolean arg1Value) { int state_0 = this.state_0_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[ExitWithNode.exit(VirtualFrame, int, boolean, Node, CallQuaternaryMethodNode, GetClassNode, GetTracebackNode, PyObjectIsTrueNode)] */) { { CallQuaternaryMethodNode callExit__ = this.callExit_; if (callExit__ != null) { Node inliningTarget__ = (this); return exit((VirtualFrame) frameValue, arg0Value, arg1Value, inliningTarget__, callExit__, INLINED_GET_CLASS_NODE_, INLINED_GET_TRACEBACK_NODE_, INLINED_IS_TRUE_NODE_); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(frameValue, arg0Value, arg1Value); } private int executeAndSpecialize(Frame frameValue, int arg0Value, boolean arg1Value) { int state_0 = this.state_0_; { Node inliningTarget__ = null; inliningTarget__ = (this); CallQuaternaryMethodNode callExit__ = this.insert((CallQuaternaryMethodNode.create())); Objects.requireNonNull(callExit__, "Specialization 'exit(VirtualFrame, int, boolean, Node, CallQuaternaryMethodNode, GetClassNode, GetTracebackNode, PyObjectIsTrueNode)' cache 'callExit' 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.callExit_ = callExit__; state_0 = state_0 | 0b1 /* add SpecializationActive[ExitWithNode.exit(VirtualFrame, int, boolean, Node, CallQuaternaryMethodNode, GetClassNode, GetTracebackNode, PyObjectIsTrueNode)] */; this.state_0_ = state_0; return exit((VirtualFrame) frameValue, arg0Value, arg1Value, inliningTarget__, callExit__, INLINED_GET_CLASS_NODE_, INLINED_GET_TRACEBACK_NODE_, INLINED_IS_TRUE_NODE_); } } @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 ExitWithNode create() { return new ExitWithNodeGen(); } @NeverDefault public static ExitWithNode getUncached() { return ExitWithNodeGen.UNCACHED; } @GeneratedBy(ExitWithNode.class) @DenyReplace private static final class Uncached extends ExitWithNode { @Override public int execute(Frame frameValue, int arg0Value, boolean arg1Value) { CompilerDirectives.transferToInterpreterAndInvalidate(); return exit((VirtualFrame) frameValue, arg0Value, arg1Value, (this), (CallQuaternaryMethodNode.getUncached()), (GetClassNode.getUncached()), (GetTracebackNodeGen.getUncached()), (PyObjectIsTrueNode.getUncached())); } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy