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

com.oracle.graal.python.nodes.attributes.DeleteAttributeNodeGen Maven / Gradle / Ivy

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

import com.oracle.graal.python.builtins.objects.type.SpecialMethodSlot;
import com.oracle.graal.python.nodes.call.special.LookupAndCallBinaryNode;
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.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.VarHandle;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link DeleteAttributeNode#doIt}
 *     Activation probability: 0.65000
 *     With/without class size: 17/4 bytes
 *   Specialization {@link DeleteAttributeNode#doItUncached}
 *     Activation probability: 0.35000
 *     With/without class size: 8/0 bytes
 * 
*/ @GeneratedBy(DeleteAttributeNode.class) @SuppressWarnings("javadoc") public final class DeleteAttributeNodeGen { private static final Uncached UNCACHED = new Uncached(); @NeverDefault public static DeleteAttributeNode getUncached() { return DeleteAttributeNodeGen.UNCACHED; } /** * Required Fields:
    *
  • {@link Inlined#state_0_} *
  • {@link Inlined#it_call_} *
*/ @NeverDefault public static DeleteAttributeNode inline(@RequiredField(bits = 2, value = StateField.class)@RequiredField(type = Node.class, value = ReferenceField.class) InlineTarget target) { return new DeleteAttributeNodeGen.Inlined(target); } @GeneratedBy(DeleteAttributeNode.class) @DenyReplace private static final class Inlined extends DeleteAttributeNode { /** * State Info:
         *   0: SpecializationActive {@link DeleteAttributeNode#doIt}
         *   1: SpecializationActive {@link DeleteAttributeNode#doItUncached}
         * 
*/ private final StateField state_0_; private final ReferenceField it_call_; @SuppressWarnings("unchecked") private Inlined(InlineTarget target) { assert target.getTargetClass().isAssignableFrom(DeleteAttributeNode.class); this.state_0_ = target.getState(0, 2); this.it_call_ = target.getReference(1, LookupAndCallBinaryNode.class); } @Override public void execute(VirtualFrame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) { int state_0 = this.state_0_.get(arg0Value); if (state_0 != 0 /* is SpecializationActive[DeleteAttributeNode.doIt(VirtualFrame, Object, Object, LookupAndCallBinaryNode)] || SpecializationActive[DeleteAttributeNode.doItUncached(VirtualFrame, Object, Object)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[DeleteAttributeNode.doIt(VirtualFrame, Object, Object, LookupAndCallBinaryNode)] */) { { LookupAndCallBinaryNode call__ = this.it_call_.get(arg0Value); if (call__ != null) { doIt(frameValue, arg1Value, arg2Value, call__); return; } } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[DeleteAttributeNode.doItUncached(VirtualFrame, Object, Object)] */) { doItUncached(frameValue, arg1Value, arg2Value); return; } } CompilerDirectives.transferToInterpreterAndInvalidate(); executeAndSpecialize(frameValue, arg0Value, arg1Value, arg2Value); return; } private void executeAndSpecialize(VirtualFrame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) { int state_0 = this.state_0_.get(arg0Value); if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[DeleteAttributeNode.doItUncached(VirtualFrame, Object, Object)] */) { LookupAndCallBinaryNode call__ = arg0Value.insert((LookupAndCallBinaryNode.create(SpecialMethodSlot.DelAttr))); Objects.requireNonNull(call__, "Specialization 'doIt(VirtualFrame, Object, Object, LookupAndCallBinaryNode)' cache 'call' 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.it_call_.set(arg0Value, call__); state_0 = state_0 | 0b1 /* add SpecializationActive[DeleteAttributeNode.doIt(VirtualFrame, Object, Object, LookupAndCallBinaryNode)] */; this.state_0_.set(arg0Value, state_0); doIt(frameValue, arg1Value, arg2Value, call__); return; } this.it_call_.set(arg0Value, null); state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[DeleteAttributeNode.doIt(VirtualFrame, Object, Object, LookupAndCallBinaryNode)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[DeleteAttributeNode.doItUncached(VirtualFrame, Object, Object)] */; this.state_0_.set(arg0Value, state_0); doItUncached(frameValue, arg1Value, arg2Value); return; } @Override public boolean isAdoptable() { return false; } } @GeneratedBy(DeleteAttributeNode.class) @DenyReplace private static final class Uncached extends DeleteAttributeNode { @Override public void execute(VirtualFrame frameValue, Node arg0Value, Object arg1Value, Object arg2Value) { CompilerDirectives.transferToInterpreterAndInvalidate(); doItUncached(frameValue, arg1Value, arg2Value); return; } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy