com.oracle.graal.python.nodes.bytecode.KwargsMergeNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.graal.python.nodes.bytecode;
import com.oracle.graal.python.nodes.PRaiseNode.Lazy;
import com.oracle.graal.python.nodes.PRaiseNodeGen.LazyNodeGen;
import com.oracle.graal.python.nodes.argument.keywords.ConcatDictToStorageNode;
import com.oracle.graal.python.nodes.argument.keywords.ConcatDictToStorageNodeGen;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
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.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.profiles.InlinedBranchProfile;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.util.Objects;
/**
* Debug Info:
* Specialization {@link KwargsMergeNode#merge}
* Activation probability: 1.00000
* With/without class size: 32/9 bytes
*
*/
@GeneratedBy(KwargsMergeNode.class)
@SuppressWarnings("javadoc")
public final class KwargsMergeNodeGen extends KwargsMergeNode {
private static final StateField STATE_0_KwargsMergeNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link KwargsMergeNode#merge}
* Parameter: {@link Lazy} raise
* Inline method: {@link LazyNodeGen#inline}
*/
private static final Lazy INLINED_RAISE_ = LazyNodeGen.inline(InlineTarget.create(Lazy.class, STATE_0_KwargsMergeNode_UPDATER.subUpdater(1, 1), ReferenceField.create(MethodHandles.lookup(), "raise__field1_", Node.class)));
/**
* Source Info:
* Specialization: {@link KwargsMergeNode#merge}
* Parameter: {@link InlinedBranchProfile} keywordsError1
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_KEYWORDS_ERROR1_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_KwargsMergeNode_UPDATER.subUpdater(2, 1)));
/**
* Source Info:
* Specialization: {@link KwargsMergeNode#merge}
* Parameter: {@link InlinedBranchProfile} keywordsError2
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_KEYWORDS_ERROR2_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_KwargsMergeNode_UPDATER.subUpdater(3, 1)));
private static final Uncached UNCACHED = new Uncached();
/**
* State Info:
* 0: SpecializationActive {@link KwargsMergeNode#merge}
* 1: InlinedCache
* Specialization: {@link KwargsMergeNode#merge}
* Parameter: {@link Lazy} raise
* Inline method: {@link LazyNodeGen#inline}
* 2: InlinedCache
* Specialization: {@link KwargsMergeNode#merge}
* Parameter: {@link InlinedBranchProfile} keywordsError1
* Inline method: {@link InlinedBranchProfile#inline}
* 3: InlinedCache
* Specialization: {@link KwargsMergeNode#merge}
* Parameter: {@link InlinedBranchProfile} keywordsError2
* Inline method: {@link InlinedBranchProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
/**
* Source Info:
* Specialization: {@link KwargsMergeNode#merge}
* Parameter: {@link ConcatDictToStorageNode} concatNode
*/
@Child private ConcatDictToStorageNode concatNode_;
/**
* Source Info:
* Specialization: {@link KwargsMergeNode#merge}
* Parameter: {@link Lazy} raise
* Inline method: {@link LazyNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node raise__field1_;
private KwargsMergeNodeGen() {
}
@Override
public int execute(Frame frameValue, int arg0Value) {
int state_0 = this.state_0_;
if ((state_0 & 0b1) != 0 /* is SpecializationActive[KwargsMergeNode.merge(VirtualFrame, int, Node, ConcatDictToStorageNode, Lazy, InlinedBranchProfile, InlinedBranchProfile)] */) {
{
ConcatDictToStorageNode concatNode__ = this.concatNode_;
if (concatNode__ != null) {
Node inliningTarget__ = (this);
return KwargsMergeNode.merge((VirtualFrame) frameValue, arg0Value, inliningTarget__, concatNode__, INLINED_RAISE_, INLINED_KEYWORDS_ERROR1_, INLINED_KEYWORDS_ERROR2_);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(frameValue, arg0Value);
}
private int executeAndSpecialize(Frame frameValue, int arg0Value) {
int state_0 = this.state_0_;
{
Node inliningTarget__ = null;
inliningTarget__ = (this);
ConcatDictToStorageNode concatNode__ = this.insert((ConcatDictToStorageNodeGen.create()));
Objects.requireNonNull(concatNode__, "Specialization 'merge(VirtualFrame, int, Node, ConcatDictToStorageNode, Lazy, InlinedBranchProfile, InlinedBranchProfile)' cache 'concatNode' 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.concatNode_ = concatNode__;
state_0 = state_0 | 0b1 /* add SpecializationActive[KwargsMergeNode.merge(VirtualFrame, int, Node, ConcatDictToStorageNode, Lazy, InlinedBranchProfile, InlinedBranchProfile)] */;
this.state_0_ = state_0;
return KwargsMergeNode.merge((VirtualFrame) frameValue, arg0Value, inliningTarget__, concatNode__, INLINED_RAISE_, INLINED_KEYWORDS_ERROR1_, INLINED_KEYWORDS_ERROR2_);
}
}
@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 KwargsMergeNode create() {
return new KwargsMergeNodeGen();
}
@NeverDefault
public static KwargsMergeNode getUncached() {
return KwargsMergeNodeGen.UNCACHED;
}
@GeneratedBy(KwargsMergeNode.class)
@DenyReplace
private static final class Uncached extends KwargsMergeNode {
@Override
public int execute(Frame frameValue, int arg0Value) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return KwargsMergeNode.merge((VirtualFrame) frameValue, arg0Value, (this), (ConcatDictToStorageNodeGen.getUncached()), (Lazy.getUncached()), (InlinedBranchProfile.getUncached()), (InlinedBranchProfile.getUncached()));
}
@Override
public NodeCost getCost() {
return NodeCost.MEGAMORPHIC;
}
@Override
public boolean isAdoptable() {
return false;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy