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

org.pkl.thirdparty.truffle.polyglot.PolyglotMapFactory Maven / Gradle / Ivy

Go to download

Fat Jar containing pkl-cli, pkl-codegen-java, pkl-codegen-kotlin, pkl-config-java, pkl-core, pkl-doc, and their shaded third-party dependencies.

There is a newer version: 0.27.1
Show newest version
// CheckStyle: start generated
package org.pkl.thirdparty.truffle.polyglot;

import org.pkl.thirdparty.truffle.api.CompilerDirectives;
import org.pkl.thirdparty.truffle.api.CompilerDirectives.CompilationFinal;
import org.pkl.thirdparty.truffle.api.CompilerDirectives.TruffleBoundary;
import org.pkl.thirdparty.truffle.api.dsl.GeneratedBy;
import org.pkl.thirdparty.truffle.api.dsl.NeverDefault;
import org.pkl.thirdparty.truffle.api.dsl.InlineSupport.InlineTarget;
import org.pkl.thirdparty.truffle.api.dsl.InlineSupport.ReferenceField;
import org.pkl.thirdparty.truffle.api.dsl.InlineSupport.StateField;
import org.pkl.thirdparty.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import org.pkl.thirdparty.truffle.api.interop.InteropLibrary;
import org.pkl.thirdparty.truffle.api.library.LibraryFactory;
import org.pkl.thirdparty.truffle.api.nodes.DenyReplace;
import org.pkl.thirdparty.truffle.api.nodes.EncapsulatingNodeReference;
import org.pkl.thirdparty.truffle.api.nodes.ExplodeLoop;
import org.pkl.thirdparty.truffle.api.nodes.Node;
import org.pkl.thirdparty.truffle.api.nodes.NodeCost;
import org.pkl.thirdparty.truffle.api.profiles.InlinedBranchProfile;
import org.pkl.thirdparty.truffle.polyglot.PolyglotLanguageContext.ToGuestValueNode;
import org.pkl.thirdparty.truffle.polyglot.PolyglotLanguageContextFactory.ToGuestValueNodeGen;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.ContainsKeyNode;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.EntrySet;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.GetNode;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.HashEntriesIteratorNode;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.HashSizeNode;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.PolyglotMapNode;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.Put;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.RemoveBoolean;
import org.pkl.thirdparty.truffle.polyglot.PolyglotMap.Cache.RemoveNode;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodHandles.Lookup;
import java.util.Objects;

@GeneratedBy(PolyglotMap.class)
@SuppressWarnings({"javadoc", "unused"})
final class PolyglotMapFactory {

    private static final LibraryFactory INTEROP_LIBRARY_ = LibraryFactory.resolve(InteropLibrary.class);

    @GeneratedBy(Cache.class)
    static final class CacheFactory {

        /**
         * Debug Info: 
         *   Specialization {@link ContainsKeyNode#doCached}
         *     Activation probability: 0.65000
         *     With/without class size: 24/9 bytes
         *   Specialization {@link ContainsKeyNode#doCached}
         *     Activation probability: 0.35000
         *     With/without class size: 12/5 bytes
         * 
*/ @GeneratedBy(ContainsKeyNode.class) @SuppressWarnings("javadoc") static final class ContainsKeyNodeGen extends ContainsKeyNode { private static final StateField CACHED0_CACHED0_STATE_0_UPDATER = StateField.create(Cached0Data.lookup_(), "cached0_state_0_"); private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); static final ReferenceField CACHED0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "cached0_cache", Cached0Data.class); /** * Source Info:
             *   Specialization: {@link ContainsKeyNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED0_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(0, 3), ReferenceField.create(Cached0Data.lookup_(), "cached0_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link ContainsKeyNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED1_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, STATE_0_UPDATER.subUpdater(2, 3), ReferenceField.create(MethodHandles.lookup(), "cached1_toGuest__field1_", Object.class))); /** * State Info:
             *   0: SpecializationActive {@link ContainsKeyNode#doCached}
             *   1: SpecializationActive {@link ContainsKeyNode#doCached}
             *   2-4: InlinedCache
             *        Specialization: {@link ContainsKeyNode#doCached}
             *        Parameter: {@link ToGuestValueNode} toGuest
             *        Inline method: {@link ToGuestValueNodeGen#inline}
             * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; @UnsafeAccessedField @Child private Cached0Data cached0_cache; /** * Source Info:
             *   Specialization: {@link ContainsKeyNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
             *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached1_toGuest__field1_; private ContainsKeyNodeGen(Cache cache) { super(cache); } @ExplodeLoop @Override protected Object executeImpl(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[Cache.ContainsKeyNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)] || SpecializationActive[Cache.ContainsKeyNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[Cache.ContainsKeyNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)] */) { Cached0Data s0_ = this.cached0_cache; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { Node node__ = (s0_); return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[Cache.ContainsKeyNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)] */) { return this.cached1Boundary(state_0, arg0Value, arg1Value, arg2Value); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } @SuppressWarnings("static-method") @TruffleBoundary private Object cached1Boundary(int state_0, PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { Node node__ = (this); InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_); } } finally { encapsulating_.set(prev_); } } private Object executeAndSpecialize(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; { Node node__ = null; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[Cache.ContainsKeyNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)] */) { while (true) { int count0_ = 0; Cached0Data s0_ = CACHED0_CACHE_UPDATER.getVolatile(this); Cached0Data s0_original = s0_; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { node__ = (s0_); break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { // assert (s0_.interop_.accepts(arg1Value)); if (count0_ < (PolyglotMapNode.LIMIT)) { s0_ = this.insert(new Cached0Data(s0_original)); node__ = (s0_); InteropLibrary interop__ = s0_.insert((INTEROP_LIBRARY_.create(arg1Value))); Objects.requireNonNull(interop__, "Specialization 'doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)' cache 'interop' returned a 'null' 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 'null'."); s0_.interop_ = interop__; if (!CACHED0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[Cache.ContainsKeyNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)] */; this.state_0_ = state_0; } } if (s0_ != null) { return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_); } break; } } } { InteropLibrary interop__ = null; Node node__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { node__ = (this); interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); this.cached0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[Cache.ContainsKeyNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[Cache.ContainsKeyNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode)] */; this.state_0_ = state_0; return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_); } finally { encapsulating_.set(prev_); } } } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b11) == 0) { return NodeCost.UNINITIALIZED; } else { if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) { Cached0Data s0_ = this.cached0_cache; if ((s0_ == null || s0_.next_ == null)) { return NodeCost.MONOMORPHIC; } } } return NodeCost.POLYMORPHIC; } @NeverDefault public static ContainsKeyNode create(Cache cache) { return new ContainsKeyNodeGen(cache); } @GeneratedBy(ContainsKeyNode.class) @DenyReplace private static final class Cached0Data extends Node { @Child Cached0Data next_; /** * State Info:
                 *   0-2: InlinedCache
                 *        Specialization: {@link ContainsKeyNode#doCached}
                 *        Parameter: {@link ToGuestValueNode} toGuest
                 *        Inline method: {@link ToGuestValueNodeGen#inline}
                 * 
*/ @CompilationFinal @UnsafeAccessedField private int cached0_state_0_; /** * Source Info:
                 *   Specialization: {@link ContainsKeyNode#doCached}
                 *   Parameter: {@link InteropLibrary} interop
*/ @Child InteropLibrary interop_; /** * Source Info:
                 *   Specialization: {@link ContainsKeyNode#doCached}
                 *   Parameter: {@link ToGuestValueNode} toGuest
                 *   Inline method: {@link ToGuestValueNodeGen#inline}
                 *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached0_toGuest__field1_; Cached0Data(Cached0Data next_) { this.next_ = next_; } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } } /** * Debug Info:
         *   Specialization {@link EntrySet#doCached}
         *     Activation probability: 0.65000
         *     With/without class size: 27/13 bytes
         *   Specialization {@link EntrySet#doCached}
         *     Activation probability: 0.35000
         *     With/without class size: 13/9 bytes
         * 
*/ @GeneratedBy(EntrySet.class) @SuppressWarnings("javadoc") static final class EntrySetNodeGen extends EntrySet { private static final StateField CACHED0_CACHED0_STATE_0_UPDATER = StateField.create(Cached0Data.lookup_(), "cached0_state_0_"); private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); static final ReferenceField CACHED0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "cached0_cache", Cached0Data.class); /** * Source Info:
             *   Specialization: {@link EntrySet#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
*/ private static final PolyglotToHostNode INLINED_CACHED0_TO_HOST_ = PolyglotToHostNodeGen.inline(InlineTarget.create(PolyglotToHostNode.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(0, 4), ReferenceField.create(Cached0Data.lookup_(), "cached0_toHost__field1_", Object.class), ReferenceField.create(Cached0Data.lookup_(), "cached0_toHost__field2_", Node.class))); /** * Source Info:
             *   Specialization: {@link EntrySet#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED0_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(4, 1))); /** * Source Info:
             *   Specialization: {@link EntrySet#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
*/ private static final PolyglotToHostNode INLINED_CACHED1_TO_HOST_ = PolyglotToHostNodeGen.inline(InlineTarget.create(PolyglotToHostNode.class, STATE_0_UPDATER.subUpdater(2, 4), ReferenceField.create(MethodHandles.lookup(), "cached1_toHost__field1_", Object.class), ReferenceField.create(MethodHandles.lookup(), "cached1_toHost__field2_", Node.class))); /** * Source Info:
             *   Specialization: {@link EntrySet#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED1_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_UPDATER.subUpdater(6, 1))); /** * State Info:
             *   0: SpecializationActive {@link EntrySet#doCached}
             *   1: SpecializationActive {@link EntrySet#doCached}
             *   2-5: InlinedCache
             *        Specialization: {@link EntrySet#doCached}
             *        Parameter: {@link PolyglotToHostNode} toHost
             *        Inline method: {@link PolyglotToHostNodeGen#inline}
             *   6: InlinedCache
             *        Specialization: {@link EntrySet#doCached}
             *        Parameter: {@link InlinedBranchProfile} error
             *        Inline method: {@link InlinedBranchProfile#inline}
             * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; @UnsafeAccessedField @Child private Cached0Data cached0_cache; /** * Source Info:
             *   Specialization: {@link EntrySet#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
             *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached1_toHost__field1_; /** * Source Info:
             *   Specialization: {@link EntrySet#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
             *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cached1_toHost__field2_; private EntrySetNodeGen(Cache cache) { super(cache); } @ExplodeLoop @Override protected Object executeImpl(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[Cache.EntrySet.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] || SpecializationActive[Cache.EntrySet.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[Cache.EntrySet.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */) { Cached0Data s0_ = this.cached0_cache; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { Node node__ = (s0_); return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_HOST_, INLINED_CACHED0_ERROR_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[Cache.EntrySet.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */) { return this.cached1Boundary(state_0, arg0Value, arg1Value, arg2Value); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } @SuppressWarnings("static-method") @TruffleBoundary private Object cached1Boundary(int state_0, PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { Node node__ = (this); InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_HOST_, INLINED_CACHED1_ERROR_); } } finally { encapsulating_.set(prev_); } } private Object executeAndSpecialize(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; { Node node__ = null; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[Cache.EntrySet.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */) { while (true) { int count0_ = 0; Cached0Data s0_ = CACHED0_CACHE_UPDATER.getVolatile(this); Cached0Data s0_original = s0_; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { node__ = (s0_); break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { // assert (s0_.interop_.accepts(arg1Value)); if (count0_ < (PolyglotMapNode.LIMIT)) { s0_ = this.insert(new Cached0Data(s0_original)); node__ = (s0_); InteropLibrary interop__ = s0_.insert((INTEROP_LIBRARY_.create(arg1Value))); Objects.requireNonNull(interop__, "Specialization 'doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)' cache 'interop' returned a 'null' 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 'null'."); s0_.interop_ = interop__; if (!CACHED0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[Cache.EntrySet.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */; this.state_0_ = state_0; } } if (s0_ != null) { return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_HOST_, INLINED_CACHED0_ERROR_); } break; } } } { InteropLibrary interop__ = null; Node node__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { node__ = (this); interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); this.cached0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[Cache.EntrySet.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[Cache.EntrySet.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */; this.state_0_ = state_0; return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_HOST_, INLINED_CACHED1_ERROR_); } finally { encapsulating_.set(prev_); } } } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b11) == 0) { return NodeCost.UNINITIALIZED; } else { if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) { Cached0Data s0_ = this.cached0_cache; if ((s0_ == null || s0_.next_ == null)) { return NodeCost.MONOMORPHIC; } } } return NodeCost.POLYMORPHIC; } @NeverDefault public static EntrySet create(Cache cache) { return new EntrySetNodeGen(cache); } @GeneratedBy(EntrySet.class) @DenyReplace private static final class Cached0Data extends Node { @Child Cached0Data next_; /** * State Info:
                 *   0-3: InlinedCache
                 *        Specialization: {@link EntrySet#doCached}
                 *        Parameter: {@link PolyglotToHostNode} toHost
                 *        Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   4: InlinedCache
                 *        Specialization: {@link EntrySet#doCached}
                 *        Parameter: {@link InlinedBranchProfile} error
                 *        Inline method: {@link InlinedBranchProfile#inline}
                 * 
*/ @CompilationFinal @UnsafeAccessedField private int cached0_state_0_; /** * Source Info:
                 *   Specialization: {@link EntrySet#doCached}
                 *   Parameter: {@link InteropLibrary} interop
*/ @Child InteropLibrary interop_; /** * Source Info:
                 *   Specialization: {@link EntrySet#doCached}
                 *   Parameter: {@link PolyglotToHostNode} toHost
                 *   Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached0_toHost__field1_; /** * Source Info:
                 *   Specialization: {@link EntrySet#doCached}
                 *   Parameter: {@link PolyglotToHostNode} toHost
                 *   Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cached0_toHost__field2_; Cached0Data(Cached0Data next_) { this.next_ = next_; } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } } /** * Debug Info:
         *   Specialization {@link GetNode#doCached}
         *     Activation probability: 0.65000
         *     With/without class size: 30/17 bytes
         *   Specialization {@link GetNode#doCached}
         *     Activation probability: 0.35000
         *     With/without class size: 15/13 bytes
         * 
*/ @GeneratedBy(GetNode.class) @SuppressWarnings("javadoc") static final class GetNodeGen extends GetNode { private static final StateField CACHED0_CACHED0_STATE_0_UPDATER = StateField.create(Cached0Data.lookup_(), "cached0_state_0_"); private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); static final ReferenceField CACHED0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "cached0_cache", Cached0Data.class); /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED0_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(0, 3), ReferenceField.create(Cached0Data.lookup_(), "cached0_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
*/ private static final PolyglotToHostNode INLINED_CACHED0_TO_HOST_ = PolyglotToHostNodeGen.inline(InlineTarget.create(PolyglotToHostNode.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(3, 4), ReferenceField.create(Cached0Data.lookup_(), "cached0_toHost__field1_", Object.class), ReferenceField.create(Cached0Data.lookup_(), "cached0_toHost__field2_", Node.class))); /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED0_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(7, 1))); /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED1_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, STATE_0_UPDATER.subUpdater(2, 3), ReferenceField.create(MethodHandles.lookup(), "cached1_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
*/ private static final PolyglotToHostNode INLINED_CACHED1_TO_HOST_ = PolyglotToHostNodeGen.inline(InlineTarget.create(PolyglotToHostNode.class, STATE_0_UPDATER.subUpdater(5, 4), ReferenceField.create(MethodHandles.lookup(), "cached1_toHost__field1_", Object.class), ReferenceField.create(MethodHandles.lookup(), "cached1_toHost__field2_", Node.class))); /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED1_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_UPDATER.subUpdater(9, 1))); /** * State Info:
             *   0: SpecializationActive {@link GetNode#doCached}
             *   1: SpecializationActive {@link GetNode#doCached}
             *   2-4: InlinedCache
             *        Specialization: {@link GetNode#doCached}
             *        Parameter: {@link ToGuestValueNode} toGuest
             *        Inline method: {@link ToGuestValueNodeGen#inline}
             *   5-8: InlinedCache
             *        Specialization: {@link GetNode#doCached}
             *        Parameter: {@link PolyglotToHostNode} toHost
             *        Inline method: {@link PolyglotToHostNodeGen#inline}
             *   9: InlinedCache
             *        Specialization: {@link GetNode#doCached}
             *        Parameter: {@link InlinedBranchProfile} error
             *        Inline method: {@link InlinedBranchProfile#inline}
             * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; @UnsafeAccessedField @Child private Cached0Data cached0_cache; /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
             *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached1_toGuest__field1_; /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
             *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached1_toHost__field1_; /** * Source Info:
             *   Specialization: {@link GetNode#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
             *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cached1_toHost__field2_; private GetNodeGen(Cache cache) { super(cache); } @ExplodeLoop @Override protected Object executeImpl(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[Cache.GetNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)] || SpecializationActive[Cache.GetNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[Cache.GetNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)] */) { Cached0Data s0_ = this.cached0_cache; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { Node node__ = (s0_); return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_, INLINED_CACHED0_TO_HOST_, INLINED_CACHED0_ERROR_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[Cache.GetNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)] */) { return this.cached1Boundary(state_0, arg0Value, arg1Value, arg2Value); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } @SuppressWarnings("static-method") @TruffleBoundary private Object cached1Boundary(int state_0, PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { Node node__ = (this); InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_, INLINED_CACHED1_TO_HOST_, INLINED_CACHED1_ERROR_); } } finally { encapsulating_.set(prev_); } } private Object executeAndSpecialize(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; { Node node__ = null; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[Cache.GetNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)] */) { while (true) { int count0_ = 0; Cached0Data s0_ = CACHED0_CACHE_UPDATER.getVolatile(this); Cached0Data s0_original = s0_; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { node__ = (s0_); break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { // assert (s0_.interop_.accepts(arg1Value)); if (count0_ < (PolyglotMapNode.LIMIT)) { s0_ = this.insert(new Cached0Data(s0_original)); node__ = (s0_); InteropLibrary interop__ = s0_.insert((INTEROP_LIBRARY_.create(arg1Value))); Objects.requireNonNull(interop__, "Specialization 'doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)' cache 'interop' returned a 'null' 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 'null'."); s0_.interop_ = interop__; if (!CACHED0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[Cache.GetNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)] */; this.state_0_ = state_0; } } if (s0_ != null) { return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_, INLINED_CACHED0_TO_HOST_, INLINED_CACHED0_ERROR_); } break; } } } { InteropLibrary interop__ = null; Node node__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { node__ = (this); interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); this.cached0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[Cache.GetNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[Cache.GetNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, PolyglotToHostNode, InlinedBranchProfile)] */; this.state_0_ = state_0; return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_, INLINED_CACHED1_TO_HOST_, INLINED_CACHED1_ERROR_); } finally { encapsulating_.set(prev_); } } } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b11) == 0) { return NodeCost.UNINITIALIZED; } else { if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) { Cached0Data s0_ = this.cached0_cache; if ((s0_ == null || s0_.next_ == null)) { return NodeCost.MONOMORPHIC; } } } return NodeCost.POLYMORPHIC; } @NeverDefault public static GetNode create(Cache cache) { return new GetNodeGen(cache); } @GeneratedBy(GetNode.class) @DenyReplace private static final class Cached0Data extends Node { @Child Cached0Data next_; /** * State Info:
                 *   0-2: InlinedCache
                 *        Specialization: {@link GetNode#doCached}
                 *        Parameter: {@link ToGuestValueNode} toGuest
                 *        Inline method: {@link ToGuestValueNodeGen#inline}
                 *   3-6: InlinedCache
                 *        Specialization: {@link GetNode#doCached}
                 *        Parameter: {@link PolyglotToHostNode} toHost
                 *        Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   7: InlinedCache
                 *        Specialization: {@link GetNode#doCached}
                 *        Parameter: {@link InlinedBranchProfile} error
                 *        Inline method: {@link InlinedBranchProfile#inline}
                 * 
*/ @CompilationFinal @UnsafeAccessedField private int cached0_state_0_; /** * Source Info:
                 *   Specialization: {@link GetNode#doCached}
                 *   Parameter: {@link InteropLibrary} interop
*/ @Child InteropLibrary interop_; /** * Source Info:
                 *   Specialization: {@link GetNode#doCached}
                 *   Parameter: {@link ToGuestValueNode} toGuest
                 *   Inline method: {@link ToGuestValueNodeGen#inline}
                 *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached0_toGuest__field1_; /** * Source Info:
                 *   Specialization: {@link GetNode#doCached}
                 *   Parameter: {@link PolyglotToHostNode} toHost
                 *   Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached0_toHost__field1_; /** * Source Info:
                 *   Specialization: {@link GetNode#doCached}
                 *   Parameter: {@link PolyglotToHostNode} toHost
                 *   Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cached0_toHost__field2_; Cached0Data(Cached0Data next_) { this.next_ = next_; } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } } /** * Debug Info:
         *   Specialization {@link Put#doCached}
         *     Activation probability: 0.65000
         *     With/without class size: 24/9 bytes
         *   Specialization {@link Put#doCached}
         *     Activation probability: 0.35000
         *     With/without class size: 12/5 bytes
         * 
*/ @GeneratedBy(Put.class) @SuppressWarnings("javadoc") static final class PutNodeGen extends Put { private static final StateField CACHED0_CACHED0_STATE_0_UPDATER = StateField.create(Cached0Data.lookup_(), "cached0_state_0_"); private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); static final ReferenceField CACHED0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "cached0_cache", Cached0Data.class); /** * Source Info:
             *   Specialization: {@link Put#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED0_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(0, 3), ReferenceField.create(Cached0Data.lookup_(), "cached0_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link Put#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED0_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(3, 1))); /** * Source Info:
             *   Specialization: {@link Put#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED1_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, STATE_0_UPDATER.subUpdater(2, 3), ReferenceField.create(MethodHandles.lookup(), "cached1_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link Put#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED1_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_UPDATER.subUpdater(5, 1))); /** * State Info:
             *   0: SpecializationActive {@link Put#doCached}
             *   1: SpecializationActive {@link Put#doCached}
             *   2-4: InlinedCache
             *        Specialization: {@link Put#doCached}
             *        Parameter: {@link ToGuestValueNode} toGuest
             *        Inline method: {@link ToGuestValueNodeGen#inline}
             *   5: InlinedCache
             *        Specialization: {@link Put#doCached}
             *        Parameter: {@link InlinedBranchProfile} error
             *        Inline method: {@link InlinedBranchProfile#inline}
             * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; @UnsafeAccessedField @Child private Cached0Data cached0_cache; /** * Source Info:
             *   Specialization: {@link Put#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
             *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached1_toGuest__field1_; private PutNodeGen(Cache cache) { super(cache); } @ExplodeLoop @Override protected Object executeImpl(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[Cache.Put.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] || SpecializationActive[Cache.Put.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[Cache.Put.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { Cached0Data s0_ = this.cached0_cache; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { Node node__ = (s0_); return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_, INLINED_CACHED0_ERROR_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[Cache.Put.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { return this.cached1Boundary(state_0, arg0Value, arg1Value, arg2Value); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } @SuppressWarnings("static-method") @TruffleBoundary private Object cached1Boundary(int state_0, PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { Node node__ = (this); InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_, INLINED_CACHED1_ERROR_); } } finally { encapsulating_.set(prev_); } } private Object executeAndSpecialize(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; { Node node__ = null; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[Cache.Put.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { while (true) { int count0_ = 0; Cached0Data s0_ = CACHED0_CACHE_UPDATER.getVolatile(this); Cached0Data s0_original = s0_; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { node__ = (s0_); break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { // assert (s0_.interop_.accepts(arg1Value)); if (count0_ < (PolyglotMapNode.LIMIT)) { s0_ = this.insert(new Cached0Data(s0_original)); node__ = (s0_); InteropLibrary interop__ = s0_.insert((INTEROP_LIBRARY_.create(arg1Value))); Objects.requireNonNull(interop__, "Specialization 'doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)' cache 'interop' returned a 'null' 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 'null'."); s0_.interop_ = interop__; if (!CACHED0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[Cache.Put.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; this.state_0_ = state_0; } } if (s0_ != null) { return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_, INLINED_CACHED0_ERROR_); } break; } } } { InteropLibrary interop__ = null; Node node__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { node__ = (this); interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); this.cached0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[Cache.Put.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[Cache.Put.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; this.state_0_ = state_0; return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_, INLINED_CACHED1_ERROR_); } finally { encapsulating_.set(prev_); } } } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b11) == 0) { return NodeCost.UNINITIALIZED; } else { if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) { Cached0Data s0_ = this.cached0_cache; if ((s0_ == null || s0_.next_ == null)) { return NodeCost.MONOMORPHIC; } } } return NodeCost.POLYMORPHIC; } @NeverDefault public static Put create(Cache cache) { return new PutNodeGen(cache); } @GeneratedBy(Put.class) @DenyReplace private static final class Cached0Data extends Node { @Child Cached0Data next_; /** * State Info:
                 *   0-2: InlinedCache
                 *        Specialization: {@link Put#doCached}
                 *        Parameter: {@link ToGuestValueNode} toGuest
                 *        Inline method: {@link ToGuestValueNodeGen#inline}
                 *   3: InlinedCache
                 *        Specialization: {@link Put#doCached}
                 *        Parameter: {@link InlinedBranchProfile} error
                 *        Inline method: {@link InlinedBranchProfile#inline}
                 * 
*/ @CompilationFinal @UnsafeAccessedField private int cached0_state_0_; /** * Source Info:
                 *   Specialization: {@link Put#doCached}
                 *   Parameter: {@link InteropLibrary} interop
*/ @Child InteropLibrary interop_; /** * Source Info:
                 *   Specialization: {@link Put#doCached}
                 *   Parameter: {@link ToGuestValueNode} toGuest
                 *   Inline method: {@link ToGuestValueNodeGen#inline}
                 *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached0_toGuest__field1_; Cached0Data(Cached0Data next_) { this.next_ = next_; } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } } /** * Debug Info:
         *   Specialization {@link RemoveNode#doCached}
         *     Activation probability: 0.65000
         *     With/without class size: 24/9 bytes
         *   Specialization {@link RemoveNode#doCached}
         *     Activation probability: 0.35000
         *     With/without class size: 12/5 bytes
         * 
*/ @GeneratedBy(RemoveNode.class) @SuppressWarnings("javadoc") static final class RemoveNodeGen extends RemoveNode { private static final StateField CACHED0_CACHED0_STATE_0_UPDATER = StateField.create(Cached0Data.lookup_(), "cached0_state_0_"); private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); static final ReferenceField CACHED0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "cached0_cache", Cached0Data.class); /** * Source Info:
             *   Specialization: {@link RemoveNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED0_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(0, 3), ReferenceField.create(Cached0Data.lookup_(), "cached0_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link RemoveNode#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED0_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(3, 1))); /** * Source Info:
             *   Specialization: {@link RemoveNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED1_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, STATE_0_UPDATER.subUpdater(2, 3), ReferenceField.create(MethodHandles.lookup(), "cached1_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link RemoveNode#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED1_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_UPDATER.subUpdater(5, 1))); /** * State Info:
             *   0: SpecializationActive {@link RemoveNode#doCached}
             *   1: SpecializationActive {@link RemoveNode#doCached}
             *   2-4: InlinedCache
             *        Specialization: {@link RemoveNode#doCached}
             *        Parameter: {@link ToGuestValueNode} toGuest
             *        Inline method: {@link ToGuestValueNodeGen#inline}
             *   5: InlinedCache
             *        Specialization: {@link RemoveNode#doCached}
             *        Parameter: {@link InlinedBranchProfile} error
             *        Inline method: {@link InlinedBranchProfile#inline}
             * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; @UnsafeAccessedField @Child private Cached0Data cached0_cache; /** * Source Info:
             *   Specialization: {@link RemoveNode#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
             *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached1_toGuest__field1_; private RemoveNodeGen(Cache cache) { super(cache); } @ExplodeLoop @Override protected Object executeImpl(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[Cache.RemoveNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] || SpecializationActive[Cache.RemoveNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[Cache.RemoveNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { Cached0Data s0_ = this.cached0_cache; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { Node node__ = (s0_); return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_, INLINED_CACHED0_ERROR_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[Cache.RemoveNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { return this.cached1Boundary(state_0, arg0Value, arg1Value, arg2Value); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } @SuppressWarnings("static-method") @TruffleBoundary private Object cached1Boundary(int state_0, PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { Node node__ = (this); InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_, INLINED_CACHED1_ERROR_); } } finally { encapsulating_.set(prev_); } } private Object executeAndSpecialize(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; { Node node__ = null; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[Cache.RemoveNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { while (true) { int count0_ = 0; Cached0Data s0_ = CACHED0_CACHE_UPDATER.getVolatile(this); Cached0Data s0_original = s0_; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { node__ = (s0_); break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { // assert (s0_.interop_.accepts(arg1Value)); if (count0_ < (PolyglotMapNode.LIMIT)) { s0_ = this.insert(new Cached0Data(s0_original)); node__ = (s0_); InteropLibrary interop__ = s0_.insert((INTEROP_LIBRARY_.create(arg1Value))); Objects.requireNonNull(interop__, "Specialization 'doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)' cache 'interop' returned a 'null' 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 'null'."); s0_.interop_ = interop__; if (!CACHED0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[Cache.RemoveNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; this.state_0_ = state_0; } } if (s0_ != null) { return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_, INLINED_CACHED0_ERROR_); } break; } } } { InteropLibrary interop__ = null; Node node__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { node__ = (this); interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); this.cached0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[Cache.RemoveNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[Cache.RemoveNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; this.state_0_ = state_0; return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_, INLINED_CACHED1_ERROR_); } finally { encapsulating_.set(prev_); } } } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b11) == 0) { return NodeCost.UNINITIALIZED; } else { if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) { Cached0Data s0_ = this.cached0_cache; if ((s0_ == null || s0_.next_ == null)) { return NodeCost.MONOMORPHIC; } } } return NodeCost.POLYMORPHIC; } @NeverDefault public static RemoveNode create(Cache cache) { return new RemoveNodeGen(cache); } @GeneratedBy(RemoveNode.class) @DenyReplace private static final class Cached0Data extends Node { @Child Cached0Data next_; /** * State Info:
                 *   0-2: InlinedCache
                 *        Specialization: {@link RemoveNode#doCached}
                 *        Parameter: {@link ToGuestValueNode} toGuest
                 *        Inline method: {@link ToGuestValueNodeGen#inline}
                 *   3: InlinedCache
                 *        Specialization: {@link RemoveNode#doCached}
                 *        Parameter: {@link InlinedBranchProfile} error
                 *        Inline method: {@link InlinedBranchProfile#inline}
                 * 
*/ @CompilationFinal @UnsafeAccessedField private int cached0_state_0_; /** * Source Info:
                 *   Specialization: {@link RemoveNode#doCached}
                 *   Parameter: {@link InteropLibrary} interop
*/ @Child InteropLibrary interop_; /** * Source Info:
                 *   Specialization: {@link RemoveNode#doCached}
                 *   Parameter: {@link ToGuestValueNode} toGuest
                 *   Inline method: {@link ToGuestValueNodeGen#inline}
                 *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached0_toGuest__field1_; Cached0Data(Cached0Data next_) { this.next_ = next_; } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } } /** * Debug Info:
         *   Specialization {@link RemoveBoolean#doCached}
         *     Activation probability: 0.65000
         *     With/without class size: 24/9 bytes
         *   Specialization {@link RemoveBoolean#doCached}
         *     Activation probability: 0.35000
         *     With/without class size: 12/5 bytes
         * 
*/ @GeneratedBy(RemoveBoolean.class) @SuppressWarnings("javadoc") static final class RemoveBooleanNodeGen extends RemoveBoolean { private static final StateField CACHED0_CACHED0_STATE_0_UPDATER = StateField.create(Cached0Data.lookup_(), "cached0_state_0_"); private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); static final ReferenceField CACHED0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "cached0_cache", Cached0Data.class); /** * Source Info:
             *   Specialization: {@link RemoveBoolean#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED0_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(0, 3), ReferenceField.create(Cached0Data.lookup_(), "cached0_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link RemoveBoolean#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED0_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(3, 1))); /** * Source Info:
             *   Specialization: {@link RemoveBoolean#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
*/ private static final ToGuestValueNode INLINED_CACHED1_TO_GUEST_ = ToGuestValueNodeGen.inline(InlineTarget.create(ToGuestValueNode.class, STATE_0_UPDATER.subUpdater(2, 3), ReferenceField.create(MethodHandles.lookup(), "cached1_toGuest__field1_", Object.class))); /** * Source Info:
             *   Specialization: {@link RemoveBoolean#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED1_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_UPDATER.subUpdater(5, 1))); /** * State Info:
             *   0: SpecializationActive {@link RemoveBoolean#doCached}
             *   1: SpecializationActive {@link RemoveBoolean#doCached}
             *   2-4: InlinedCache
             *        Specialization: {@link RemoveBoolean#doCached}
             *        Parameter: {@link ToGuestValueNode} toGuest
             *        Inline method: {@link ToGuestValueNodeGen#inline}
             *   5: InlinedCache
             *        Specialization: {@link RemoveBoolean#doCached}
             *        Parameter: {@link InlinedBranchProfile} error
             *        Inline method: {@link InlinedBranchProfile#inline}
             * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; @UnsafeAccessedField @Child private Cached0Data cached0_cache; /** * Source Info:
             *   Specialization: {@link RemoveBoolean#doCached}
             *   Parameter: {@link ToGuestValueNode} toGuest
             *   Inline method: {@link ToGuestValueNodeGen#inline}
             *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached1_toGuest__field1_; private RemoveBooleanNodeGen(Cache cache) { super(cache); } @ExplodeLoop @Override protected Object executeImpl(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[Cache.RemoveBoolean.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] || SpecializationActive[Cache.RemoveBoolean.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[Cache.RemoveBoolean.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { Cached0Data s0_ = this.cached0_cache; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { Node node__ = (s0_); return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_, INLINED_CACHED0_ERROR_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[Cache.RemoveBoolean.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { return this.cached1Boundary(state_0, arg0Value, arg1Value, arg2Value); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } @SuppressWarnings("static-method") @TruffleBoundary private Object cached1Boundary(int state_0, PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { Node node__ = (this); InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_, INLINED_CACHED1_ERROR_); } } finally { encapsulating_.set(prev_); } } private Object executeAndSpecialize(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; { Node node__ = null; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[Cache.RemoveBoolean.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */) { while (true) { int count0_ = 0; Cached0Data s0_ = CACHED0_CACHE_UPDATER.getVolatile(this); Cached0Data s0_original = s0_; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { node__ = (s0_); break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { // assert (s0_.interop_.accepts(arg1Value)); if (count0_ < (PolyglotMapNode.LIMIT)) { s0_ = this.insert(new Cached0Data(s0_original)); node__ = (s0_); InteropLibrary interop__ = s0_.insert((INTEROP_LIBRARY_.create(arg1Value))); Objects.requireNonNull(interop__, "Specialization 'doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)' cache 'interop' returned a 'null' 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 'null'."); s0_.interop_ = interop__; if (!CACHED0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[Cache.RemoveBoolean.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; this.state_0_ = state_0; } } if (s0_ != null) { return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_GUEST_, INLINED_CACHED0_ERROR_); } break; } } } { InteropLibrary interop__ = null; Node node__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { node__ = (this); interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); this.cached0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[Cache.RemoveBoolean.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[Cache.RemoveBoolean.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, ToGuestValueNode, InlinedBranchProfile)] */; this.state_0_ = state_0; return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_GUEST_, INLINED_CACHED1_ERROR_); } finally { encapsulating_.set(prev_); } } } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b11) == 0) { return NodeCost.UNINITIALIZED; } else { if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) { Cached0Data s0_ = this.cached0_cache; if ((s0_ == null || s0_.next_ == null)) { return NodeCost.MONOMORPHIC; } } } return NodeCost.POLYMORPHIC; } @NeverDefault public static RemoveBoolean create(Cache cache) { return new RemoveBooleanNodeGen(cache); } @GeneratedBy(RemoveBoolean.class) @DenyReplace private static final class Cached0Data extends Node { @Child Cached0Data next_; /** * State Info:
                 *   0-2: InlinedCache
                 *        Specialization: {@link RemoveBoolean#doCached}
                 *        Parameter: {@link ToGuestValueNode} toGuest
                 *        Inline method: {@link ToGuestValueNodeGen#inline}
                 *   3: InlinedCache
                 *        Specialization: {@link RemoveBoolean#doCached}
                 *        Parameter: {@link InlinedBranchProfile} error
                 *        Inline method: {@link InlinedBranchProfile#inline}
                 * 
*/ @CompilationFinal @UnsafeAccessedField private int cached0_state_0_; /** * Source Info:
                 *   Specialization: {@link RemoveBoolean#doCached}
                 *   Parameter: {@link InteropLibrary} interop
*/ @Child InteropLibrary interop_; /** * Source Info:
                 *   Specialization: {@link RemoveBoolean#doCached}
                 *   Parameter: {@link ToGuestValueNode} toGuest
                 *   Inline method: {@link ToGuestValueNodeGen#inline}
                 *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached0_toGuest__field1_; Cached0Data(Cached0Data next_) { this.next_ = next_; } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } } /** * Debug Info:
         *   Specialization {@link HashEntriesIteratorNode#doCached}
         *     Activation probability: 0.65000
         *     With/without class size: 27/13 bytes
         *   Specialization {@link HashEntriesIteratorNode#doCached}
         *     Activation probability: 0.35000
         *     With/without class size: 13/9 bytes
         * 
*/ @GeneratedBy(HashEntriesIteratorNode.class) @SuppressWarnings("javadoc") static final class HashEntriesIteratorNodeGen extends HashEntriesIteratorNode { private static final StateField CACHED0_CACHED0_STATE_0_UPDATER = StateField.create(Cached0Data.lookup_(), "cached0_state_0_"); private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); static final ReferenceField CACHED0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "cached0_cache", Cached0Data.class); /** * Source Info:
             *   Specialization: {@link HashEntriesIteratorNode#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
*/ private static final PolyglotToHostNode INLINED_CACHED0_TO_HOST_ = PolyglotToHostNodeGen.inline(InlineTarget.create(PolyglotToHostNode.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(0, 4), ReferenceField.create(Cached0Data.lookup_(), "cached0_toHost__field1_", Object.class), ReferenceField.create(Cached0Data.lookup_(), "cached0_toHost__field2_", Node.class))); /** * Source Info:
             *   Specialization: {@link HashEntriesIteratorNode#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED0_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(4, 1))); /** * Source Info:
             *   Specialization: {@link HashEntriesIteratorNode#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
*/ private static final PolyglotToHostNode INLINED_CACHED1_TO_HOST_ = PolyglotToHostNodeGen.inline(InlineTarget.create(PolyglotToHostNode.class, STATE_0_UPDATER.subUpdater(2, 4), ReferenceField.create(MethodHandles.lookup(), "cached1_toHost__field1_", Object.class), ReferenceField.create(MethodHandles.lookup(), "cached1_toHost__field2_", Node.class))); /** * Source Info:
             *   Specialization: {@link HashEntriesIteratorNode#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED1_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_UPDATER.subUpdater(6, 1))); /** * State Info:
             *   0: SpecializationActive {@link HashEntriesIteratorNode#doCached}
             *   1: SpecializationActive {@link HashEntriesIteratorNode#doCached}
             *   2-5: InlinedCache
             *        Specialization: {@link HashEntriesIteratorNode#doCached}
             *        Parameter: {@link PolyglotToHostNode} toHost
             *        Inline method: {@link PolyglotToHostNodeGen#inline}
             *   6: InlinedCache
             *        Specialization: {@link HashEntriesIteratorNode#doCached}
             *        Parameter: {@link InlinedBranchProfile} error
             *        Inline method: {@link InlinedBranchProfile#inline}
             * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; @UnsafeAccessedField @Child private Cached0Data cached0_cache; /** * Source Info:
             *   Specialization: {@link HashEntriesIteratorNode#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
             *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached1_toHost__field1_; /** * Source Info:
             *   Specialization: {@link HashEntriesIteratorNode#doCached}
             *   Parameter: {@link PolyglotToHostNode} toHost
             *   Inline method: {@link PolyglotToHostNodeGen#inline}
             *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cached1_toHost__field2_; private HashEntriesIteratorNodeGen(Cache cache) { super(cache); } @ExplodeLoop @Override protected Object executeImpl(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[Cache.HashEntriesIteratorNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] || SpecializationActive[Cache.HashEntriesIteratorNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[Cache.HashEntriesIteratorNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */) { Cached0Data s0_ = this.cached0_cache; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { Node node__ = (s0_); return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_HOST_, INLINED_CACHED0_ERROR_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[Cache.HashEntriesIteratorNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */) { return this.cached1Boundary(state_0, arg0Value, arg1Value, arg2Value); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } @SuppressWarnings("static-method") @TruffleBoundary private Object cached1Boundary(int state_0, PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { Node node__ = (this); InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_HOST_, INLINED_CACHED1_ERROR_); } } finally { encapsulating_.set(prev_); } } private Object executeAndSpecialize(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; { Node node__ = null; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[Cache.HashEntriesIteratorNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */) { while (true) { int count0_ = 0; Cached0Data s0_ = CACHED0_CACHE_UPDATER.getVolatile(this); Cached0Data s0_original = s0_; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { node__ = (s0_); break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { // assert (s0_.interop_.accepts(arg1Value)); if (count0_ < (PolyglotMapNode.LIMIT)) { s0_ = this.insert(new Cached0Data(s0_original)); node__ = (s0_); InteropLibrary interop__ = s0_.insert((INTEROP_LIBRARY_.create(arg1Value))); Objects.requireNonNull(interop__, "Specialization 'doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)' cache 'interop' returned a 'null' 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 'null'."); s0_.interop_ = interop__; if (!CACHED0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[Cache.HashEntriesIteratorNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */; this.state_0_ = state_0; } } if (s0_ != null) { return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_TO_HOST_, INLINED_CACHED0_ERROR_); } break; } } } { InteropLibrary interop__ = null; Node node__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { node__ = (this); interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); this.cached0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[Cache.HashEntriesIteratorNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[Cache.HashEntriesIteratorNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, PolyglotToHostNode, InlinedBranchProfile)] */; this.state_0_ = state_0; return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_TO_HOST_, INLINED_CACHED1_ERROR_); } finally { encapsulating_.set(prev_); } } } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b11) == 0) { return NodeCost.UNINITIALIZED; } else { if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) { Cached0Data s0_ = this.cached0_cache; if ((s0_ == null || s0_.next_ == null)) { return NodeCost.MONOMORPHIC; } } } return NodeCost.POLYMORPHIC; } @NeverDefault public static HashEntriesIteratorNode create(Cache cache) { return new HashEntriesIteratorNodeGen(cache); } @GeneratedBy(HashEntriesIteratorNode.class) @DenyReplace private static final class Cached0Data extends Node { @Child Cached0Data next_; /** * State Info:
                 *   0-3: InlinedCache
                 *        Specialization: {@link HashEntriesIteratorNode#doCached}
                 *        Parameter: {@link PolyglotToHostNode} toHost
                 *        Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   4: InlinedCache
                 *        Specialization: {@link HashEntriesIteratorNode#doCached}
                 *        Parameter: {@link InlinedBranchProfile} error
                 *        Inline method: {@link InlinedBranchProfile#inline}
                 * 
*/ @CompilationFinal @UnsafeAccessedField private int cached0_state_0_; /** * Source Info:
                 *   Specialization: {@link HashEntriesIteratorNode#doCached}
                 *   Parameter: {@link InteropLibrary} interop
*/ @Child InteropLibrary interop_; /** * Source Info:
                 *   Specialization: {@link HashEntriesIteratorNode#doCached}
                 *   Parameter: {@link PolyglotToHostNode} toHost
                 *   Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   Inline field: {@link Object} field1
*/ @CompilationFinal @UnsafeAccessedField @SuppressWarnings("unused") private Object cached0_toHost__field1_; /** * Source Info:
                 *   Specialization: {@link HashEntriesIteratorNode#doCached}
                 *   Parameter: {@link PolyglotToHostNode} toHost
                 *   Inline method: {@link PolyglotToHostNodeGen#inline}
                 *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node cached0_toHost__field2_; Cached0Data(Cached0Data next_) { this.next_ = next_; } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } } /** * Debug Info:
         *   Specialization {@link HashSizeNode#doCached}
         *     Activation probability: 0.65000
         *     With/without class size: 22/5 bytes
         *   Specialization {@link HashSizeNode#doCached}
         *     Activation probability: 0.35000
         *     With/without class size: 11/1 bytes
         * 
*/ @GeneratedBy(HashSizeNode.class) @SuppressWarnings("javadoc") static final class HashSizeNodeGen extends HashSizeNode { private static final StateField CACHED0_CACHED0_STATE_0_UPDATER = StateField.create(Cached0Data.lookup_(), "cached0_state_0_"); private static final StateField STATE_0_UPDATER = StateField.create(MethodHandles.lookup(), "state_0_"); static final ReferenceField CACHED0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "cached0_cache", Cached0Data.class); /** * Source Info:
             *   Specialization: {@link HashSizeNode#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED0_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, CACHED0_CACHED0_STATE_0_UPDATER.subUpdater(0, 1))); /** * Source Info:
             *   Specialization: {@link HashSizeNode#doCached}
             *   Parameter: {@link InlinedBranchProfile} error
             *   Inline method: {@link InlinedBranchProfile#inline}
*/ private static final InlinedBranchProfile INLINED_CACHED1_ERROR_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, STATE_0_UPDATER.subUpdater(2, 1))); /** * State Info:
             *   0: SpecializationActive {@link HashSizeNode#doCached}
             *   1: SpecializationActive {@link HashSizeNode#doCached}
             *   2: InlinedCache
             *        Specialization: {@link HashSizeNode#doCached}
             *        Parameter: {@link InlinedBranchProfile} error
             *        Inline method: {@link InlinedBranchProfile#inline}
             * 
*/ @CompilationFinal @UnsafeAccessedField private int state_0_; @UnsafeAccessedField @Child private Cached0Data cached0_cache; private HashSizeNodeGen(Cache cache) { super(cache); } @ExplodeLoop @Override protected Object executeImpl(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; if ((state_0 & 0b11) != 0 /* is SpecializationActive[Cache.HashSizeNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)] || SpecializationActive[Cache.HashSizeNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[Cache.HashSizeNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)] */) { Cached0Data s0_ = this.cached0_cache; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { Node node__ = (s0_); return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_ERROR_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[Cache.HashSizeNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)] */) { return this.cached1Boundary(state_0, arg0Value, arg1Value, arg2Value); } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } @SuppressWarnings("static-method") @TruffleBoundary private Object cached1Boundary(int state_0, PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { Node node__ = (this); InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_ERROR_); } } finally { encapsulating_.set(prev_); } } private Object executeAndSpecialize(PolyglotLanguageContext arg0Value, Object arg1Value, Object[] arg2Value) { int state_0 = this.state_0_; { Node node__ = null; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[Cache.HashSizeNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)] */) { while (true) { int count0_ = 0; Cached0Data s0_ = CACHED0_CACHE_UPDATER.getVolatile(this); Cached0Data s0_original = s0_; while (s0_ != null) { if ((s0_.interop_.accepts(arg1Value))) { node__ = (s0_); break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { // assert (s0_.interop_.accepts(arg1Value)); if (count0_ < (PolyglotMapNode.LIMIT)) { s0_ = this.insert(new Cached0Data(s0_original)); node__ = (s0_); InteropLibrary interop__ = s0_.insert((INTEROP_LIBRARY_.create(arg1Value))); Objects.requireNonNull(interop__, "Specialization 'doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)' cache 'interop' returned a 'null' 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 'null'."); s0_.interop_ = interop__; if (!CACHED0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[Cache.HashSizeNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)] */; this.state_0_ = state_0; } } if (s0_ != null) { return doCached(arg0Value, arg1Value, arg2Value, node__, s0_.interop_, INLINED_CACHED0_ERROR_); } break; } } } { InteropLibrary interop__ = null; Node node__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { node__ = (this); interop__ = (INTEROP_LIBRARY_.getUncached(arg1Value)); this.cached0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[Cache.HashSizeNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[Cache.HashSizeNode.doCached(PolyglotLanguageContext, Object, Object[], Node, InteropLibrary, InlinedBranchProfile)] */; this.state_0_ = state_0; return doCached(arg0Value, arg1Value, arg2Value, node__, interop__, INLINED_CACHED1_ERROR_); } finally { encapsulating_.set(prev_); } } } } @Override public NodeCost getCost() { int state_0 = this.state_0_; if ((state_0 & 0b11) == 0) { return NodeCost.UNINITIALIZED; } else { if (((state_0 & 0b11) & ((state_0 & 0b11) - 1)) == 0 /* is-single */) { Cached0Data s0_ = this.cached0_cache; if ((s0_ == null || s0_.next_ == null)) { return NodeCost.MONOMORPHIC; } } } return NodeCost.POLYMORPHIC; } @NeverDefault public static HashSizeNode create(Cache cache) { return new HashSizeNodeGen(cache); } @GeneratedBy(HashSizeNode.class) @DenyReplace private static final class Cached0Data extends Node { @Child Cached0Data next_; /** * State Info:
                 *   0: InlinedCache
                 *        Specialization: {@link HashSizeNode#doCached}
                 *        Parameter: {@link InlinedBranchProfile} error
                 *        Inline method: {@link InlinedBranchProfile#inline}
                 * 
*/ @CompilationFinal @UnsafeAccessedField private int cached0_state_0_; /** * Source Info:
                 *   Specialization: {@link HashSizeNode#doCached}
                 *   Parameter: {@link InteropLibrary} interop
*/ @Child InteropLibrary interop_; Cached0Data(Cached0Data next_) { this.next_ = next_; } @Override public NodeCost getCost() { return NodeCost.NONE; } private static Lookup lookup_() { return MethodHandles.lookup(); } } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy