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

com.oracle.graal.python.lib.PyTupleCheckExactNodeGen 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.nodes.object.BuiltinClassProfiles.IsBuiltinObjectProfile;
import com.oracle.graal.python.nodes.object.BuiltinClassProfilesFactory.IsBuiltinObjectProfileNodeGen;
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 PyTupleCheckExactNode#doGeneric}
 *     Activation probability: 1.00000
 *     With/without class size: 28/7 bytes
 * 
*/ @GeneratedBy(PyTupleCheckExactNode.class) @SuppressWarnings("javadoc") public final class PyTupleCheckExactNodeGen { private static final Uncached UNCACHED = new Uncached(); @NeverDefault public static PyTupleCheckExactNode getUncached() { return PyTupleCheckExactNodeGen.UNCACHED; } /** * Required Fields:
    *
  • {@link Inlined#state_0_} *
  • {@link Inlined#isBuiltin__field1_} *
*/ @NeverDefault public static PyTupleCheckExactNode inline(@RequiredField(bits = 20, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) { return new PyTupleCheckExactNodeGen.Inlined(target); } @GeneratedBy(PyTupleCheckExactNode.class) @DenyReplace private static final class Inlined extends PyTupleCheckExactNode { /** * State Info:
         *   0-19: InlinedCache
         *        Specialization: {@link PyTupleCheckExactNode#doGeneric}
         *        Parameter: {@link IsBuiltinObjectProfile} isBuiltin
         *        Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
         * 
*/ private final StateField state_0_; private final ReferenceField isBuiltin__field1_; /** * Source Info:
         *   Specialization: {@link PyTupleCheckExactNode#doGeneric}
         *   Parameter: {@link IsBuiltinObjectProfile} isBuiltin
         *   Inline method: {@link IsBuiltinObjectProfileNodeGen#inline}
*/ private final IsBuiltinObjectProfile isBuiltin_; @SuppressWarnings("unchecked") private Inlined(InlineTarget target) { assert target.getTargetClass().isAssignableFrom(PyTupleCheckExactNode.class); this.state_0_ = target.getState(0, 20); this.isBuiltin__field1_ = target.getReference(1, Node.class); this.isBuiltin_ = IsBuiltinObjectProfileNodeGen.inline(InlineTarget.create(IsBuiltinObjectProfile.class, state_0_.subUpdater(0, 20), isBuiltin__field1_)); } @Override public boolean execute(Node arg0Value, Object arg1Value) { assert InlineSupport.validate(arg0Value, this.state_0_, this.isBuiltin__field1_); return PyTupleCheckExactNode.doGeneric(arg0Value, arg1Value, this.isBuiltin_); } @Override public boolean isAdoptable() { return false; } } @GeneratedBy(PyTupleCheckExactNode.class) @DenyReplace private static final class Uncached extends PyTupleCheckExactNode { @TruffleBoundary @Override public boolean execute(Node arg0Value, Object arg1Value) { return PyTupleCheckExactNode.doGeneric(arg0Value, arg1Value, (IsBuiltinObjectProfile.getUncached())); } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy