com.oracle.truffle.js.nodes.binary.NotUndefinedOrNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.js.nodes.binary;
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.StateField;
import com.oracle.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.profiles.InlinedConditionProfile;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import java.lang.invoke.MethodHandles;
/**
* Debug Info:
* Specialization {@link NotUndefinedOrNode#doGeneric}
* Activation probability: 1.00000
* With/without class size: 24/1 bytes
*
*/
@GeneratedBy(NotUndefinedOrNode.class)
@SuppressWarnings("javadoc")
final class NotUndefinedOrNodeGen extends NotUndefinedOrNode {
private static final StateField STATE_0_NotUndefinedOrNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link NotUndefinedOrNode#doGeneric}
* Parameter: {@link InlinedConditionProfile} canShortCircuit
* Inline method: {@link InlinedConditionProfile#inline}
*/
private static final InlinedConditionProfile INLINED_CAN_SHORT_CIRCUIT_ = InlinedConditionProfile.inline(InlineTarget.create(InlinedConditionProfile.class, STATE_0_NotUndefinedOrNode_UPDATER.subUpdater(0, 2)));
/**
* State Info:
* 0-1: InlinedCache
* Specialization: {@link NotUndefinedOrNode#doGeneric}
* Parameter: {@link InlinedConditionProfile} canShortCircuit
* Inline method: {@link InlinedConditionProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
private NotUndefinedOrNodeGen(JavaScriptNode left, JavaScriptNode right) {
super(left, right);
}
@Override
protected Object executeEvaluated(VirtualFrame frameValue, Object leftNodeValue) {
return doGeneric(frameValue, leftNodeValue, INLINED_CAN_SHORT_CIRCUIT_);
}
@Override
public Object execute(VirtualFrame frameValue) {
Object leftNodeValue_ = super.leftNode.execute(frameValue);
return doGeneric(frameValue, leftNodeValue_, INLINED_CAN_SHORT_CIRCUIT_);
}
@Override
public void executeVoid(VirtualFrame frameValue) {
execute(frameValue);
return;
}
@NeverDefault
public static NotUndefinedOrNode create(JavaScriptNode left, JavaScriptNode right) {
return new NotUndefinedOrNodeGen(left, right);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy