org.truffleruby.language.control.WhileNodeFactory 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.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.InlinedBranchProfile;
import java.lang.invoke.MethodHandles;
import org.truffleruby.core.cast.BooleanCastNode;
import org.truffleruby.core.cast.BooleanCastNodeGen;
import org.truffleruby.language.RubyNode;
import org.truffleruby.language.control.WhileNode.DoWhileRepeatingNode;
import org.truffleruby.language.control.WhileNode.WhileRepeatingNode;
@GeneratedBy(WhileNode.class)
@SuppressWarnings("javadoc")
public final class WhileNodeFactory {
/**
* Debug Info:
* Specialization {@link WhileRepeatingNode#doRepeating}
* Activation probability: 1.00000
* With/without class size: 28/7 bytes
*
*/
@GeneratedBy(WhileRepeatingNode.class)
@SuppressWarnings("javadoc")
public static final class WhileRepeatingNodeGen extends WhileRepeatingNode {
private static final StateField STATE_0_WhileRepeatingNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link WhileRepeatingNode#doRepeating}
* 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_WhileRepeatingNode_UPDATER.subUpdater(0, 16), ReferenceField.create(MethodHandles.lookup(), "booleanCastNode__field1_", Node.class)));
/**
* Source Info:
* Specialization: {@link WhileRepeatingNode#doRepeating}
* Parameter: {@link InlinedBranchProfile} redoUsed
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_REDO_USED_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_WhileRepeatingNode_UPDATER.subUpdater(16, 1)));
/**
* Source Info:
* Specialization: {@link WhileRepeatingNode#doRepeating}
* Parameter: {@link InlinedBranchProfile} nextUsed
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_NEXT_USED_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_WhileRepeatingNode_UPDATER.subUpdater(17, 1)));
/**
* State Info:
* 0-15: InlinedCache
* Specialization: {@link WhileRepeatingNode#doRepeating}
* Parameter: {@link BooleanCastNode} booleanCastNode
* Inline method: {@link BooleanCastNodeGen#inline}
* 16: InlinedCache
* Specialization: {@link WhileRepeatingNode#doRepeating}
* Parameter: {@link InlinedBranchProfile} redoUsed
* Inline method: {@link InlinedBranchProfile#inline}
* 17: InlinedCache
* Specialization: {@link WhileRepeatingNode#doRepeating}
* Parameter: {@link InlinedBranchProfile} nextUsed
* Inline method: {@link InlinedBranchProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
/**
* Source Info:
* Specialization: {@link WhileRepeatingNode#doRepeating}
* Parameter: {@link BooleanCastNode} booleanCastNode
* Inline method: {@link BooleanCastNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node booleanCastNode__field1_;
private WhileRepeatingNodeGen(RubyNode condition, RubyNode body) {
super(condition, body);
}
@Override
protected boolean execute(VirtualFrame frameValue) {
return doRepeating(frameValue, INLINED_BOOLEAN_CAST_NODE_, INLINED_REDO_USED_, INLINED_NEXT_USED_);
}
@NeverDefault
public static WhileRepeatingNode create(RubyNode condition, RubyNode body) {
return new WhileRepeatingNodeGen(condition, body);
}
}
/**
* Debug Info:
* Specialization {@link DoWhileRepeatingNode#doRepeating}
* Activation probability: 1.00000
* With/without class size: 28/7 bytes
*
*/
@GeneratedBy(DoWhileRepeatingNode.class)
@SuppressWarnings("javadoc")
public static final class DoWhileRepeatingNodeGen extends DoWhileRepeatingNode {
private static final StateField STATE_0_DoWhileRepeatingNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_");
/**
* Source Info:
* Specialization: {@link DoWhileRepeatingNode#doRepeating}
* 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_DoWhileRepeatingNode_UPDATER.subUpdater(0, 16), ReferenceField.create(MethodHandles.lookup(), "booleanCastNode__field1_", Node.class)));
/**
* Source Info:
* Specialization: {@link DoWhileRepeatingNode#doRepeating}
* Parameter: {@link InlinedBranchProfile} redoUsed
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_REDO_USED_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_DoWhileRepeatingNode_UPDATER.subUpdater(16, 1)));
/**
* Source Info:
* Specialization: {@link DoWhileRepeatingNode#doRepeating}
* Parameter: {@link InlinedBranchProfile} nextUsed
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_NEXT_USED_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_DoWhileRepeatingNode_UPDATER.subUpdater(17, 1)));
/**
* State Info:
* 0-15: InlinedCache
* Specialization: {@link DoWhileRepeatingNode#doRepeating}
* Parameter: {@link BooleanCastNode} booleanCastNode
* Inline method: {@link BooleanCastNodeGen#inline}
* 16: InlinedCache
* Specialization: {@link DoWhileRepeatingNode#doRepeating}
* Parameter: {@link InlinedBranchProfile} redoUsed
* Inline method: {@link InlinedBranchProfile#inline}
* 17: InlinedCache
* Specialization: {@link DoWhileRepeatingNode#doRepeating}
* Parameter: {@link InlinedBranchProfile} nextUsed
* Inline method: {@link InlinedBranchProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int state_0_;
/**
* Source Info:
* Specialization: {@link DoWhileRepeatingNode#doRepeating}
* Parameter: {@link BooleanCastNode} booleanCastNode
* Inline method: {@link BooleanCastNodeGen#inline}
* Inline field: {@link Node} field1
*/
@Child @UnsafeAccessedField @SuppressWarnings("unused") private Node booleanCastNode__field1_;
private DoWhileRepeatingNodeGen(RubyNode condition, RubyNode body) {
super(condition, body);
}
@Override
protected boolean execute(VirtualFrame frameValue) {
return doRepeating(frameValue, INLINED_BOOLEAN_CAST_NODE_, INLINED_REDO_USED_, INLINED_NEXT_USED_);
}
@NeverDefault
public static DoWhileRepeatingNode create(RubyNode condition, RubyNode body) {
return new DoWhileRepeatingNodeGen(condition, body);
}
}
}