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

com.oracle.graal.python.lib.PyErrChainExceptionsNodeGen 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.exception.ExceptionNodes.SetContextNode;
import com.oracle.graal.python.builtins.objects.exception.ExceptionNodesFactory.SetContextNodeGen;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.InlineSupport;
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.RequiredField;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.NodeCost;

/**
 * Debug Info: 
 *   Specialization {@link PyErrChainExceptions#chain}
 *     Activation probability: 1.00000
 *     With/without class size: 28/5 bytes
 * 
*/ @GeneratedBy(PyErrChainExceptions.class) @SuppressWarnings("javadoc") public final class PyErrChainExceptionsNodeGen { private static final Uncached UNCACHED = new Uncached(); @NeverDefault public static PyErrChainExceptions getUncached() { return PyErrChainExceptionsNodeGen.UNCACHED; } /** * Required Fields:
    *
  • {@link Inlined#state_0_} *
  • {@link Inlined#setContextNode__field1_} *
*/ @NeverDefault public static PyErrChainExceptions inline(@RequiredField(bits = 4, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) { return new PyErrChainExceptionsNodeGen.Inlined(target); } @GeneratedBy(PyErrChainExceptions.class) @DenyReplace private static final class Inlined extends PyErrChainExceptions { /** * State Info:
         *   0-3: InlinedCache
         *        Specialization: {@link PyErrChainExceptions#chain}
         *        Parameter: {@link SetContextNode} setContextNode
         *        Inline method: {@link SetContextNodeGen#inline}
         * 
*/ private final StateField state_0_; private final ReferenceField setContextNode__field1_; /** * Source Info:
         *   Specialization: {@link PyErrChainExceptions#chain}
         *   Parameter: {@link SetContextNode} setContextNode
         *   Inline method: {@link SetContextNodeGen#inline}
*/ private final SetContextNode setContextNode_; @SuppressWarnings("unchecked") private Inlined(InlineTarget target) { assert target.getTargetClass().isAssignableFrom(PyErrChainExceptions.class); this.state_0_ = target.getState(0, 4); this.setContextNode__field1_ = target.getReference(1, Node.class); this.setContextNode_ = SetContextNodeGen.inline(InlineTarget.create(SetContextNode.class, state_0_.subUpdater(0, 4), setContextNode__field1_)); } @Override void execute(Node arg0Value, Object arg1Value, Object arg2Value) { assert InlineSupport.validate(arg0Value, this.state_0_, this.setContextNode__field1_); PyErrChainExceptions.chain(arg0Value, arg1Value, arg2Value, this.setContextNode_); return; } @Override public boolean isAdoptable() { return false; } } @GeneratedBy(PyErrChainExceptions.class) @DenyReplace private static final class Uncached extends PyErrChainExceptions { @TruffleBoundary @Override void execute(Node arg0Value, Object arg1Value, Object arg2Value) { PyErrChainExceptions.chain(arg0Value, arg1Value, arg2Value, (SetContextNodeGen.getUncached())); return; } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy