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

org.truffleruby.language.control.IfElseNodeGen Maven / Gradle / Ivy

The newest version!
// CheckStyle: start generated
package org.truffleruby.language.control;

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.IntField;
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.VirtualFrame;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.profiles.InlinedCountingConditionProfile;
import java.lang.invoke.MethodHandles;
import org.truffleruby.core.cast.BooleanCastNode;
import org.truffleruby.core.cast.BooleanCastNodeGen;
import org.truffleruby.language.RubyNode;

/**
 * Debug Info: 
 *   Specialization {@link IfElseNode#doIfElse}
 *     Activation probability: 1.00000
 *     With/without class size: 36/14 bytes
 * 
*/ @GeneratedBy(IfElseNode.class) @SuppressWarnings("javadoc") public final class IfElseNodeGen extends IfElseNode { private static final StateField STATE_0_IfElseNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); /** * Source Info:
     *   Specialization: {@link IfElseNode#doIfElse}
     *   Parameter: {@link InlinedCountingConditionProfile} conditionProfile
     *   Inline method: {@link InlinedCountingConditionProfile#inline}
*/ private static final InlinedCountingConditionProfile INLINED_CONDITION_PROFILE_ = InlinedCountingConditionProfile.inline(InlineTarget.create(InlinedCountingConditionProfile.class, IntField.create(MethodHandles.lookup(), "conditionProfile__field0_"), IntField.create(MethodHandles.lookup(), "conditionProfile__field1_"))); /** * Source Info:
     *   Specialization: {@link IfElseNode#doIfElse}
     *   Parameter: {@link BooleanCastNode} booleanCastNode
     *   Inline method: {@link BooleanCastNodeGen#inline}
*/ private static final BooleanCastNode INLINED_BOOLEAN_CAST_NODE_ = BooleanCastNodeGen.inline(InlineTarget.create(BooleanCastNode.class, STATE_0_IfElseNode_UPDATER.subUpdater(0, 16), ReferenceField.create(MethodHandles.lookup(), "booleanCastNode__field1_", Node.class))); /** * State Info:
     *   0-15: InlinedCache
     *        Specialization: {@link IfElseNode#doIfElse}
     *        Parameter: {@link BooleanCastNode} booleanCastNode
     *        Inline method: {@link BooleanCastNodeGen#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; /** * Source Info:
     *   Specialization: {@link IfElseNode#doIfElse}
     *   Parameter: {@link InlinedCountingConditionProfile} conditionProfile
     *   Inline method: {@link InlinedCountingConditionProfile#inline}
     *   Inline field: int field0
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private int conditionProfile__field0_; /** * Source Info:
     *   Specialization: {@link IfElseNode#doIfElse}
     *   Parameter: {@link InlinedCountingConditionProfile} conditionProfile
     *   Inline method: {@link InlinedCountingConditionProfile#inline}
     *   Inline field: int field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private int conditionProfile__field1_; /** * Source Info:
     *   Specialization: {@link IfElseNode#doIfElse}
     *   Parameter: {@link BooleanCastNode} booleanCastNode
     *   Inline method: {@link BooleanCastNodeGen#inline}
     *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node booleanCastNode__field1_; private IfElseNodeGen(RubyNode condition, RubyNode thenBody, RubyNode elseBody) { super(condition, thenBody, elseBody); } @Override public Object execute(VirtualFrame frameValue) { return doIfElse(frameValue, INLINED_CONDITION_PROFILE_, INLINED_BOOLEAN_CAST_NODE_); } @NeverDefault public static IfElseNode create(RubyNode condition, RubyNode thenBody, RubyNode elseBody) { return new IfElseNodeGen(condition, thenBody, elseBody); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy