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

com.oracle.graal.python.lib.PyDictDelItemNodeGen 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.common.HashingStorageNodes.HashingStorageDelItem;
import com.oracle.graal.python.builtins.objects.common.HashingStorageNodesFactory.HashingStorageDelItemNodeGen;
import com.oracle.graal.python.builtins.objects.dict.PDict;
import com.oracle.truffle.api.CompilerDirectives;
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.RequiredField;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
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;

/**
 * Debug Info: 
 *   Specialization {@link PyDictDelItem#delItemWithStringKey}
 *     Activation probability: 0.48333
 *     With/without class size: 11/0 bytes
 *   Specialization {@link PyDictDelItem#delItemCached}
 *     Activation probability: 0.33333
 *     With/without class size: 9/0 bytes
 *   Specialization {@link PyDictDelItem#delItem}
 *     Activation probability: 0.18333
 *     With/without class size: 6/0 bytes
 * 
*/ @GeneratedBy(PyDictDelItem.class) @SuppressWarnings("javadoc") public final class PyDictDelItemNodeGen { private static final Uncached UNCACHED = new Uncached(); @NeverDefault public static PyDictDelItem getUncached() { return PyDictDelItemNodeGen.UNCACHED; } /** * Required Fields:
    *
  • {@link Inlined#state_0_} *
  • {@link Inlined#delStorageItem_field1_} *
  • {@link Inlined#delStorageItem_field2_} *
  • {@link Inlined#delStorageItem_field3_} *
*/ @NeverDefault public static PyDictDelItem inline(@RequiredField(bits = 6, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) { return new PyDictDelItemNodeGen.Inlined(target); } @GeneratedBy(PyDictDelItem.class) @DenyReplace private static final class Inlined extends PyDictDelItem { /** * State Info:
         *   0: SpecializationActive {@link PyDictDelItem#delItemWithStringKey}
         *   1: SpecializationActive {@link PyDictDelItem#delItemCached}
         *   2: SpecializationActive {@link PyDictDelItem#delItem}
         *   3-5: InlinedCache
         *        Specialization: {@link PyDictDelItem#delItemWithStringKey}
         *        Parameter: {@link HashingStorageDelItem} delItem
         *        Inline method: {@link HashingStorageDelItemNodeGen#inline}
         * 
*/ private final StateField state_0_; private final ReferenceField delStorageItem_field1_; private final ReferenceField delStorageItem_field2_; private final ReferenceField delStorageItem_field3_; /** * Source Info:
         *   Specialization: {@link PyDictDelItem#delItemWithStringKey}
         *   Parameter: {@link HashingStorageDelItem} delItem
         *   Inline method: {@link HashingStorageDelItemNodeGen#inline}
*/ private final HashingStorageDelItem delStorageItem; @SuppressWarnings("unchecked") private Inlined(InlineTarget target) { assert target.getTargetClass().isAssignableFrom(PyDictDelItem.class); this.state_0_ = target.getState(0, 6); this.delStorageItem_field1_ = target.getReference(1, Node.class); this.delStorageItem_field2_ = target.getReference(2, Node.class); this.delStorageItem_field3_ = target.getReference(3, Node.class); this.delStorageItem = HashingStorageDelItemNodeGen.inline(InlineTarget.create(HashingStorageDelItem.class, state_0_.subUpdater(3, 3), delStorageItem_field1_, delStorageItem_field2_, delStorageItem_field3_)); } @Override public void execute(Frame frameValue, Node arg0Value, PDict arg1Value, Object arg2Value) { int state_0 = this.state_0_.get(arg0Value); if ((state_0 & 0b111) != 0 /* is SpecializationActive[PyDictDelItem.delItemWithStringKey(Node, PDict, TruffleString, HashingStorageDelItem)] || SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] || SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[PyDictDelItem.delItemWithStringKey(Node, PDict, TruffleString, HashingStorageDelItem)] */ && arg2Value instanceof TruffleString) { TruffleString arg2Value_ = (TruffleString) arg2Value; PyDictDelItem.delItemWithStringKey(arg0Value, arg1Value, arg2Value_, this.delStorageItem); return; } if ((state_0 & 0b110) != 0 /* is SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] || SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */) { if ((state_0 & 0b10) != 0 /* is SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] */) { PyDictDelItem.delItemCached((VirtualFrame) frameValue, arg0Value, arg1Value, arg2Value, this.delStorageItem); return; } if ((state_0 & 0b100) != 0 /* is SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */) { PyDictDelItem.delItem(arg0Value, arg1Value, arg2Value, this.delStorageItem); return; } } } CompilerDirectives.transferToInterpreterAndInvalidate(); executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value); return; } @Override public void execute(Frame frameValue, Node arg0Value, PDict arg1Value, TruffleString arg2Value) { int state_0 = this.state_0_.get(arg0Value); if ((state_0 & 0b111) != 0 /* is SpecializationActive[PyDictDelItem.delItemWithStringKey(Node, PDict, TruffleString, HashingStorageDelItem)] || SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] || SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[PyDictDelItem.delItemWithStringKey(Node, PDict, TruffleString, HashingStorageDelItem)] */) { PyDictDelItem.delItemWithStringKey(arg0Value, arg1Value, arg2Value, this.delStorageItem); return; } if ((state_0 & 0b110) != 0 /* is SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] || SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */) { if ((state_0 & 0b10) != 0 /* is SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] */) { PyDictDelItem.delItemCached((VirtualFrame) frameValue, arg0Value, arg1Value, arg2Value, this.delStorageItem); return; } if ((state_0 & 0b100) != 0 /* is SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */) { PyDictDelItem.delItem(arg0Value, arg1Value, arg2Value, this.delStorageItem); return; } } } CompilerDirectives.transferToInterpreterAndInvalidate(); executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value); return; } private void executeAndSpecialize(Frame frameValue, Node arg0Value, PDict arg1Value, Object arg2Value) { int state_0 = this.state_0_.get(arg0Value); if (((state_0 & 0b110)) == 0 /* is-not SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] && SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */ && arg2Value instanceof TruffleString) { TruffleString arg2Value_ = (TruffleString) arg2Value; state_0 = state_0 | 0b1 /* add SpecializationActive[PyDictDelItem.delItemWithStringKey(Node, PDict, TruffleString, HashingStorageDelItem)] */; this.state_0_.set(arg0Value, state_0); PyDictDelItem.delItemWithStringKey(arg0Value, arg1Value, arg2Value_, this.delStorageItem); return; } if (((state_0 & 0b100)) == 0 /* is-not SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */) { state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[PyDictDelItem.delItemWithStringKey(Node, PDict, TruffleString, HashingStorageDelItem)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] */; this.state_0_.set(arg0Value, state_0); PyDictDelItem.delItemCached((VirtualFrame) frameValue, arg0Value, arg1Value, arg2Value, this.delStorageItem); return; } state_0 = state_0 & 0xfffffffc /* remove SpecializationActive[PyDictDelItem.delItemWithStringKey(Node, PDict, TruffleString, HashingStorageDelItem)], SpecializationActive[PyDictDelItem.delItemCached(VirtualFrame, Node, PDict, Object, HashingStorageDelItem)] */; state_0 = state_0 | 0b100 /* add SpecializationActive[PyDictDelItem.delItem(Node, PDict, Object, HashingStorageDelItem)] */; this.state_0_.set(arg0Value, state_0); PyDictDelItem.delItem(arg0Value, arg1Value, arg2Value, this.delStorageItem); return; } @Override public boolean isAdoptable() { return false; } } @GeneratedBy(PyDictDelItem.class) @DenyReplace private static final class Uncached extends PyDictDelItem { @Override public void execute(Frame frameValue, Node arg0Value, PDict arg1Value, Object arg2Value) { CompilerDirectives.transferToInterpreterAndInvalidate(); PyDictDelItem.delItem(arg0Value, arg1Value, arg2Value, (HashingStorageDelItemNodeGen.getUncached())); return; } @Override public void execute(Frame frameValue, Node arg0Value, PDict arg1Value, TruffleString arg2Value) { CompilerDirectives.transferToInterpreterAndInvalidate(); PyDictDelItem.delItem(arg0Value, arg1Value, arg2Value, (HashingStorageDelItemNodeGen.getUncached())); return; } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy