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

com.oracle.graal.python.nodes.object.DeleteDictNodeGen Maven / Gradle / Ivy

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

import com.oracle.graal.python.builtins.objects.common.HashingStorageNodes.HashingStorageCopy;
import com.oracle.graal.python.builtins.objects.common.HashingStorageNodesFactory.HashingStorageCopyNodeGen;
import com.oracle.graal.python.builtins.objects.object.PythonObject;
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
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.library.LibraryFactory;
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.object.DynamicObjectLibrary;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link DeleteDictNode#doPythonObject}
 *     Activation probability: 1.00000
 *     With/without class size: 40/17 bytes
 * 
*/ @GeneratedBy(DeleteDictNode.class) @SuppressWarnings("javadoc") public final class DeleteDictNodeGen extends DeleteDictNode { private static final StateField STATE_0_DeleteDictNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); /** * Source Info:
     *   Specialization: {@link DeleteDictNode#doPythonObject}
     *   Parameter: {@link HashingStorageCopy} copyNode
     *   Inline method: {@link HashingStorageCopyNodeGen#inline}
*/ private static final HashingStorageCopy INLINED_COPY_NODE_ = HashingStorageCopyNodeGen.inline(InlineTarget.create(HashingStorageCopy.class, STATE_0_DeleteDictNode_UPDATER.subUpdater(1, 6), ReferenceField.create(MethodHandles.lookup(), "copyNode__field1_", Node.class), ReferenceField.create(MethodHandles.lookup(), "copyNode__field2_", Node.class))); private static final Uncached UNCACHED = new Uncached(); private static final LibraryFactory DYNAMIC_OBJECT_LIBRARY_ = LibraryFactory.resolve(DynamicObjectLibrary.class); /** * State Info:
     *   0: SpecializationActive {@link DeleteDictNode#doPythonObject}
     *   1-6: InlinedCache
     *        Specialization: {@link DeleteDictNode#doPythonObject}
     *        Parameter: {@link HashingStorageCopy} copyNode
     *        Inline method: {@link HashingStorageCopyNodeGen#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; /** * Source Info:
     *   Specialization: {@link DeleteDictNode#doPythonObject}
     *   Parameter: {@link DynamicObjectLibrary} dylib
*/ @Child private DynamicObjectLibrary dylib_; /** * Source Info:
     *   Specialization: {@link DeleteDictNode#doPythonObject}
     *   Parameter: {@link HashingStorageCopy} copyNode
     *   Inline method: {@link HashingStorageCopyNodeGen#inline}
     *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node copyNode__field1_; /** * Source Info:
     *   Specialization: {@link DeleteDictNode#doPythonObject}
     *   Parameter: {@link HashingStorageCopy} copyNode
     *   Inline method: {@link HashingStorageCopyNodeGen#inline}
     *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node copyNode__field2_; /** * Source Info:
     *   Specialization: {@link DeleteDictNode#doPythonObject}
     *   Parameter: {@link PythonObjectFactory} factory
*/ @Child private PythonObjectFactory factory_; private DeleteDictNodeGen() { } @Override public void execute(PythonObject arg0Value) { int state_0 = this.state_0_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[DeleteDictNode.doPythonObject(PythonObject, DynamicObjectLibrary, Node, HashingStorageCopy, PythonObjectFactory)] */) { { DynamicObjectLibrary dylib__ = this.dylib_; if (dylib__ != null) { PythonObjectFactory factory__ = this.factory_; if (factory__ != null) { Node inliningTarget__ = (this); DeleteDictNode.doPythonObject(arg0Value, dylib__, inliningTarget__, INLINED_COPY_NODE_, factory__); return; } } } } CompilerDirectives.transferToInterpreterAndInvalidate(); executeAndSpecialize(arg0Value); return; } private void executeAndSpecialize(PythonObject arg0Value) { int state_0 = this.state_0_; { Node inliningTarget__ = null; DynamicObjectLibrary dylib__ = this.insert((DYNAMIC_OBJECT_LIBRARY_.createDispatched(4))); Objects.requireNonNull(dylib__, "Specialization 'doPythonObject(PythonObject, DynamicObjectLibrary, Node, HashingStorageCopy, PythonObjectFactory)' cache 'dylib' 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.dylib_ = dylib__; inliningTarget__ = (this); PythonObjectFactory factory__ = this.insert((PythonObjectFactory.create())); Objects.requireNonNull(factory__, "Specialization 'doPythonObject(PythonObject, DynamicObjectLibrary, Node, HashingStorageCopy, PythonObjectFactory)' cache 'factory' 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.factory_ = factory__; state_0 = state_0 | 0b1 /* add SpecializationActive[DeleteDictNode.doPythonObject(PythonObject, DynamicObjectLibrary, Node, HashingStorageCopy, PythonObjectFactory)] */; this.state_0_ = state_0; DeleteDictNode.doPythonObject(arg0Value, dylib__, inliningTarget__, INLINED_COPY_NODE_, factory__); return; } } @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 DeleteDictNode create() { return new DeleteDictNodeGen(); } @NeverDefault public static DeleteDictNode getUncached() { return DeleteDictNodeGen.UNCACHED; } @GeneratedBy(DeleteDictNode.class) @DenyReplace private static final class Uncached extends DeleteDictNode { @TruffleBoundary @Override public void execute(PythonObject arg0Value) { DeleteDictNode.doPythonObject(arg0Value, (DYNAMIC_OBJECT_LIBRARY_.getUncached()), (this), (HashingStorageCopyNodeGen.getUncached()), (PythonObjectFactory.getUncached())); return; } @Override public NodeCost getCost() { return NodeCost.MEGAMORPHIC; } @Override public boolean isAdoptable() { return false; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy