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

com.oracle.truffle.js.nodes.binary.JSConcatStringsNodeGen Maven / Gradle / Ivy

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

import com.oracle.truffle.api.CompilerDirectives;
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.profiles.InlinedBranchProfile;
import com.oracle.truffle.api.strings.TruffleString;
import com.oracle.truffle.api.strings.TruffleString.ConcatNode;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link JSConcatStringsNode#doConcat}
 *     Activation probability: 1.00000
 *     With/without class size: 28/5 bytes
 * 
*/ @GeneratedBy(JSConcatStringsNode.class) @SuppressWarnings("javadoc") public final class JSConcatStringsNodeGen extends JSConcatStringsNode { private static final StateField STATE_0_JSConcatStringsNode_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); /** * Source Info:
     *   Specialization: {@link JSConcatStringsNode#doConcat}
     *   Parameter: {@link InlinedBranchProfile} errorBranch
     *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_ERROR_BRANCH_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_JSConcatStringsNode_UPDATER.subUpdater(1, 1))); /** * State Info:
     *   0: SpecializationActive {@link JSConcatStringsNode#doConcat}
     *   1: InlinedCache
     *        Specialization: {@link JSConcatStringsNode#doConcat}
     *        Parameter: {@link InlinedBranchProfile} errorBranch
     *        Inline method: {@link InlinedBranchProfile#inline}
     * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; /** * Source Info:
     *   Specialization: {@link JSConcatStringsNode#doConcat}
     *   Parameter: {@link ConcatNode} concatNode
*/ @Child private ConcatNode concatNode_; private JSConcatStringsNodeGen(int stringLengthLimit) { super(stringLengthLimit); } @Override public TruffleString executeTString(TruffleString arg0Value, TruffleString arg1Value) { int state_0 = this.state_0_; if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSConcatStringsNode.doConcat(TruffleString, TruffleString, InlinedBranchProfile, ConcatNode)] */) { { ConcatNode concatNode__ = this.concatNode_; if (concatNode__ != null) { return doConcat(arg0Value, arg1Value, INLINED_ERROR_BRANCH_, concatNode__); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value); } private TruffleString executeAndSpecialize(TruffleString arg0Value, TruffleString arg1Value) { int state_0 = this.state_0_; ConcatNode concatNode__ = this.insert((ConcatNode.create())); Objects.requireNonNull(concatNode__, "A specialization cache returned a default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns the default value."); VarHandle.storeStoreFence(); this.concatNode_ = concatNode__; state_0 = state_0 | 0b1 /* add SpecializationActive[JSConcatStringsNode.doConcat(TruffleString, TruffleString, InlinedBranchProfile, ConcatNode)] */; this.state_0_ = state_0; return doConcat(arg0Value, arg1Value, INLINED_ERROR_BRANCH_, concatNode__); } @NeverDefault public static JSConcatStringsNode create(int stringLengthLimit) { return new JSConcatStringsNodeGen(stringLengthLimit); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy