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

com.oracle.truffle.js.nodes.cast.LongToIntOrDoubleNodeGen Maven / Gradle / Ivy

// CheckStyle: start generated
package com.oracle.truffle.js.nodes.cast;

import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.InlineSupport;
import com.oracle.truffle.api.dsl.NeverDefault;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.RequiredField;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.UnadoptableNode;
import com.oracle.truffle.api.profiles.InlinedBranchProfile;
import java.lang.invoke.MethodHandles;

/**
 * Debug Info: 
 *   Specialization {@link LongToIntOrDoubleNode#toIntOrDouble}
 *     Activation probability: 1.00000
 *     With/without class size: 24/1 bytes
 * 
*/ @GeneratedBy(LongToIntOrDoubleNode.class) @SuppressWarnings("javadoc") public final class LongToIntOrDoubleNodeGen extends LongToIntOrDoubleNode { private static final StateField STATE_0_LongToIntOrDoubleNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); /** * Source Info:
     *   Specialization: {@link LongToIntOrDoubleNode#toIntOrDouble}
     *   Parameter: {@link InlinedBranchProfile} toDoubleBranch
     *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_TO_DOUBLE_BRANCH_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_LongToIntOrDoubleNode_UPDATER.subUpdater(0, 1))); private static final Uncached UNCACHED = new Uncached(); /** * State Info:
     *   0: InlinedCache
     *        Specialization: {@link LongToIntOrDoubleNode#toIntOrDouble}
     *        Parameter: {@link InlinedBranchProfile} toDoubleBranch
     *        Inline method: {@link InlinedBranchProfile#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; private LongToIntOrDoubleNodeGen() { } @Override public Number execute(Node arg0Value, long arg1Value) { return LongToIntOrDoubleNode.toIntOrDouble(this, arg1Value, INLINED_TO_DOUBLE_BRANCH_); } @NeverDefault public static LongToIntOrDoubleNode create() { return new LongToIntOrDoubleNodeGen(); } @NeverDefault public static LongToIntOrDoubleNode getUncached() { return LongToIntOrDoubleNodeGen.UNCACHED; } /** * Required Fields:
    *
  • {@link Inlined#state_0_} *
*/ @NeverDefault public static LongToIntOrDoubleNode inline(@RequiredField(bits = 1, value = StateField.class) InlineTarget target) { return new LongToIntOrDoubleNodeGen.Inlined(target); } @GeneratedBy(LongToIntOrDoubleNode.class) @DenyReplace private static final class Inlined extends LongToIntOrDoubleNode implements UnadoptableNode { /** * State Info:
         *   0: InlinedCache
         *        Specialization: {@link LongToIntOrDoubleNode#toIntOrDouble}
         *        Parameter: {@link InlinedBranchProfile} toDoubleBranch
         *        Inline method: {@link InlinedBranchProfile#inline}
         * 
*/ private final StateField state_0_; /** * Source Info:
         *   Specialization: {@link LongToIntOrDoubleNode#toIntOrDouble}
         *   Parameter: {@link InlinedBranchProfile} toDoubleBranch
         *   Inline method: {@link InlinedBranchProfile#inline}
*/ private final InlinedBranchProfile toDoubleBranch_; private Inlined(InlineTarget target) { assert target.getTargetClass().isAssignableFrom(LongToIntOrDoubleNode.class); this.state_0_ = target.getState(0, 1); this.toDoubleBranch_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, state_0_.subUpdater(0, 1))); } @Override public Number execute(Node arg0Value, long arg1Value) { assert InlineSupport.validate(arg0Value, this.state_0_); return LongToIntOrDoubleNode.toIntOrDouble(arg0Value, arg1Value, this.toDoubleBranch_); } } @GeneratedBy(LongToIntOrDoubleNode.class) @DenyReplace private static final class Uncached extends LongToIntOrDoubleNode implements UnadoptableNode { @TruffleBoundary @Override public Number execute(Node arg0Value, long arg1Value) { return LongToIntOrDoubleNode.toIntOrDouble(arg0Value, arg1Value, (InlinedBranchProfile.getUncached())); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy