org.truffleruby.language.control.OrLazyValueDefinedNodeGen Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ruby-language Show documentation
Show all versions of ruby-language Show documentation
Core module of Ruby on Truffle
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 OrLazyValueDefinedNode#doOrLazyValueDefined}
* Activation probability: 1.00000
* With/without class size: 36/14 bytes
*
*/
@GeneratedBy(OrLazyValueDefinedNode.class)
@SuppressWarnings("javadoc")
public final class OrLazyValueDefinedNodeGen extends OrLazyValueDefinedNode {
private static final StateField STATE_0_OrLazyValueDefinedNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link OrLazyValueDefinedNode#doOrLazyValueDefined}
* Parameter: {@link BooleanCastNode} leftCast
* Inline method: {@link BooleanCastNodeGen#inline}
*/
private static final BooleanCastNode INLINED_LEFT_CAST_ = BooleanCastNodeGen.inline(InlineTarget.create(BooleanCastNode.class, STATE_0_OrLazyValueDefinedNode_UPDATER.subUpdater(0, 16), ReferenceField.create(MethodHandles.lookup(), "leftCast__field1_", Node.class)));
/**
* Source Info:
* Specialization: {@link OrLazyValueDefinedNode#doOrLazyValueDefined}
* Parameter: {@link InlinedCountingConditionProfile} countingProfile
* Inline method: {@link InlinedCountingConditionProfile#inline}
*/
private static final InlinedCountingConditionProfile INLINED_COUNTING_PROFILE_ = InlinedCountingConditionProfile.inline(InlineTarget.create(InlinedCountingConditionProfile.class, IntField.create(MethodHandles.lookup(), "countingProfile__field0_"), IntField.create(MethodHandles.lookup(), "countingProfile__field1_")));
/**
* State Info:
* 0-15: InlinedCache
* Specialization: {@link OrLazyValueDefinedNode#doOrLazyValueDefined}
* Parameter: {@link BooleanCastNode} leftCast
* Inline method: {@link BooleanCastNodeGen#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
/**
* Source Info:
* Specialization: {@link OrLazyValueDefinedNode#doOrLazyValueDefined}
* Parameter: {@link BooleanCastNode} leftCast
* Inline method: {@link BooleanCastNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node leftCast__field1_;
/**
* Source Info:
* Specialization: {@link OrLazyValueDefinedNode#doOrLazyValueDefined}
* Parameter: {@link InlinedCountingConditionProfile} countingProfile
* Inline method: {@link InlinedCountingConditionProfile#inline}
* Inline field: int field0
*/
@CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private int countingProfile__field0_;
/**
* Source Info:
* Specialization: {@link OrLazyValueDefinedNode#doOrLazyValueDefined}
* Parameter: {@link InlinedCountingConditionProfile} countingProfile
* Inline method: {@link InlinedCountingConditionProfile#inline}
* Inline field: int field1
*/
@CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private int countingProfile__field1_;
private OrLazyValueDefinedNodeGen(RubyNode left, RubyNode right) {
super(left, right);
}
@Override
public Object execute(VirtualFrame frameValue) {
return doOrLazyValueDefined(frameValue, INLINED_LEFT_CAST_, INLINED_COUNTING_PROFILE_);
}
@NeverDefault
public static OrLazyValueDefinedNode create(RubyNode left, RubyNode right) {
return new OrLazyValueDefinedNodeGen(left, right);
}
}