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

com.oracle.truffle.sl.nodes.expression.SLReadPropertyNodeGen Maven / Gradle / Ivy

The newest version!
// CheckStyle: start generated
package com.oracle.truffle.sl.nodes.expression;

import com.oracle.truffle.api.CompilerDirectives;
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.NeverDefault;
import com.oracle.truffle.api.dsl.UnsupportedSpecializationException;
import com.oracle.truffle.api.dsl.DSLSupport.SpecializationDataNode;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.ReferenceField;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.library.LibraryFactory;
import com.oracle.truffle.api.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.EncapsulatingNodeReference;
import com.oracle.truffle.api.nodes.ExplodeLoop;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.object.DynamicObjectLibrary;
import com.oracle.truffle.sl.nodes.SLExpressionNode;
import com.oracle.truffle.sl.nodes.util.SLToMemberNode;
import com.oracle.truffle.sl.nodes.util.SLToMemberNodeGen;
import com.oracle.truffle.sl.nodes.util.SLToTruffleStringNode;
import com.oracle.truffle.sl.nodes.util.SLToTruffleStringNodeGen;
import com.oracle.truffle.sl.runtime.SLObject;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.invoke.MethodHandles.Lookup;
import java.util.Objects;

/**
 * Debug Info: 
 *   Specialization {@link SLReadPropertyNode#readArray}
 *     Activation probability: 0.27381
 *     With/without class size: 11/8 bytes
 *   Specialization {@link SLReadPropertyNode#readArray}
 *     Activation probability: 0.23095
 *     With/without class size: 6/0 bytes
 *   Specialization {@link SLReadPropertyNode#readSLObject}
 *     Activation probability: 0.18810
 *     With/without class size: 11/18 bytes
 *   Specialization {@link SLReadPropertyNode#readSLObject}
 *     Activation probability: 0.14524
 *     With/without class size: 8/14 bytes
 *   Specialization {@link SLReadPropertyNode#readObject}
 *     Activation probability: 0.10238
 *     With/without class size: 7/14 bytes
 *   Specialization {@link SLReadPropertyNode#readObject}
 *     Activation probability: 0.05952
 *     With/without class size: 5/10 bytes
 * 
*/ @GeneratedBy(SLReadPropertyNode.class) @SuppressWarnings({"javadoc", "unused"}) public final class SLReadPropertyNodeGen extends SLReadPropertyNode { private static final StateField READ_S_L_OBJECT0__S_L_READ_PROPERTY_NODE_READ_S_L_OBJECT0_STATE_0_UPDATER = StateField.create(ReadSLObject0Data.lookup_(), "readSLObject0_state_0_"); private static final StateField READ_S_L_OBJECT1__S_L_READ_PROPERTY_NODE_READ_S_L_OBJECT1_STATE_0_UPDATER = StateField.create(ReadSLObject1Data.lookup_(), "readSLObject1_state_0_"); private static final StateField READ_OBJECT0__S_L_READ_PROPERTY_NODE_READ_OBJECT0_STATE_0_UPDATER = StateField.create(ReadObject0Data.lookup_(), "readObject0_state_0_"); private static final StateField READ_OBJECT1__S_L_READ_PROPERTY_NODE_READ_OBJECT1_STATE_0_UPDATER = StateField.create(ReadObject1Data.lookup_(), "readObject1_state_0_"); static final ReferenceField READ_ARRAY0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "readArray0_cache", ReadArray0Data.class); static final ReferenceField READ_S_L_OBJECT0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "readSLObject0_cache", ReadSLObject0Data.class); static final ReferenceField READ_OBJECT0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "readObject0_cache", ReadObject0Data.class); /** * Source Info:
     *   Specialization: {@link SLReadPropertyNode#readSLObject}
     *   Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
     *   Inline method: {@link SLToTruffleStringNodeGen#inline}
*/ private static final SLToTruffleStringNode INLINED_READ_S_L_OBJECT0_TO_TRUFFLE_STRING_NODE_ = SLToTruffleStringNodeGen.inline(InlineTarget.create(SLToTruffleStringNode.class, READ_S_L_OBJECT0__S_L_READ_PROPERTY_NODE_READ_S_L_OBJECT0_STATE_0_UPDATER.subUpdater(0, 11), ReferenceField.create(ReadSLObject0Data.lookup_(), "readSLObject0_toTruffleStringNode__field1_", Node.class), ReferenceField.create(ReadSLObject0Data.lookup_(), "readSLObject0_toTruffleStringNode__field2_", Node.class), ReferenceField.create(ReadSLObject0Data.lookup_(), "readSLObject0_toTruffleStringNode__field3_", Node.class))); /** * Source Info:
     *   Specialization: {@link SLReadPropertyNode#readSLObject}
     *   Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
     *   Inline method: {@link SLToTruffleStringNodeGen#inline}
*/ private static final SLToTruffleStringNode INLINED_READ_S_L_OBJECT1_TO_TRUFFLE_STRING_NODE_ = SLToTruffleStringNodeGen.inline(InlineTarget.create(SLToTruffleStringNode.class, READ_S_L_OBJECT1__S_L_READ_PROPERTY_NODE_READ_S_L_OBJECT1_STATE_0_UPDATER.subUpdater(0, 11), ReferenceField.create(ReadSLObject1Data.lookup_(), "readSLObject1_toTruffleStringNode__field1_", Node.class), ReferenceField.create(ReadSLObject1Data.lookup_(), "readSLObject1_toTruffleStringNode__field2_", Node.class), ReferenceField.create(ReadSLObject1Data.lookup_(), "readSLObject1_toTruffleStringNode__field3_", Node.class))); /** * Source Info:
     *   Specialization: {@link SLReadPropertyNode#readObject}
     *   Parameter: {@link SLToMemberNode} asMember
     *   Inline method: {@link SLToMemberNodeGen#inline}
*/ private static final SLToMemberNode INLINED_READ_OBJECT0_AS_MEMBER_ = SLToMemberNodeGen.inline(InlineTarget.create(SLToMemberNode.class, READ_OBJECT0__S_L_READ_PROPERTY_NODE_READ_OBJECT0_STATE_0_UPDATER.subUpdater(0, 9), ReferenceField.create(ReadObject0Data.lookup_(), "readObject0_asMember__field1_", Node.class), ReferenceField.create(ReadObject0Data.lookup_(), "readObject0_asMember__field2_", Node.class))); /** * Source Info:
     *   Specialization: {@link SLReadPropertyNode#readObject}
     *   Parameter: {@link SLToMemberNode} asMember
     *   Inline method: {@link SLToMemberNodeGen#inline}
*/ private static final SLToMemberNode INLINED_READ_OBJECT1_AS_MEMBER_ = SLToMemberNodeGen.inline(InlineTarget.create(SLToMemberNode.class, READ_OBJECT1__S_L_READ_PROPERTY_NODE_READ_OBJECT1_STATE_0_UPDATER.subUpdater(0, 9), ReferenceField.create(ReadObject1Data.lookup_(), "readObject1_asMember__field1_", Node.class), ReferenceField.create(ReadObject1Data.lookup_(), "readObject1_asMember__field2_", Node.class))); private static final LibraryFactory INTEROP_LIBRARY_ = LibraryFactory.resolve(InteropLibrary.class); private static final LibraryFactory DYNAMIC_OBJECT_LIBRARY_ = LibraryFactory.resolve(DynamicObjectLibrary.class); @Child private SLExpressionNode receiverNode_; @Child private SLExpressionNode nameNode_; /** * State Info:
     *   0: SpecializationActive {@link SLReadPropertyNode#readArray}
     *   1: SpecializationActive {@link SLReadPropertyNode#readArray}
     *   2: SpecializationActive {@link SLReadPropertyNode#readSLObject}
     *   3: SpecializationActive {@link SLReadPropertyNode#readSLObject}
     *   4: SpecializationActive {@link SLReadPropertyNode#readObject}
     *   5: SpecializationActive {@link SLReadPropertyNode#readObject}
     * 
*/ @CompilationFinal private int state_0_; @UnsafeAccessedField @Child private ReadArray0Data readArray0_cache; @UnsafeAccessedField @Child private ReadSLObject0Data readSLObject0_cache; @Child private ReadSLObject1Data readSLObject1_cache; @UnsafeAccessedField @Child private ReadObject0Data readObject0_cache; @Child private ReadObject1Data readObject1_cache; private SLReadPropertyNodeGen(SLExpressionNode receiverNode, SLExpressionNode nameNode) { this.receiverNode_ = receiverNode; this.nameNode_ = nameNode; } @ExplodeLoop @Override public Object executeGeneric(VirtualFrame frameValue) { int state_0 = this.state_0_; Object receiverNodeValue_ = this.receiverNode_.executeGeneric(frameValue); Object nameNodeValue_ = this.nameNode_.executeGeneric(frameValue); if (state_0 != 0 /* is SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] || SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] || SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] || SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] || SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] || SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] */) { if ((state_0 & 0b11) != 0 /* is SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] || SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] */) { ReadArray0Data s0_ = this.readArray0_cache; while (s0_ != null) { if ((s0_.arrays_.accepts(receiverNodeValue_)) && (s0_.numbers_.accepts(nameNodeValue_)) && (s0_.arrays_.hasArrayElements(receiverNodeValue_))) { return readArray(receiverNodeValue_, nameNodeValue_, s0_.arrays_, s0_.numbers_); } s0_ = s0_.next_; } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] */) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { InteropLibrary arrays__ = (INTEROP_LIBRARY_.getUncached()); if ((arrays__.hasArrayElements(receiverNodeValue_))) { return this.readArray1Boundary(state_0, receiverNodeValue_, nameNodeValue_); } } } finally { encapsulating_.set(prev_); } } } if ((state_0 & 0b1100) != 0 /* is SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] || SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] */ && receiverNodeValue_ instanceof SLObject) { SLObject receiverNodeValue__ = (SLObject) receiverNodeValue_; if ((state_0 & 0b100) != 0 /* is SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] */) { ReadSLObject0Data s2_ = this.readSLObject0_cache; while (s2_ != null) { if ((s2_.objectLibrary_.accepts(receiverNodeValue__))) { Node node__ = (s2_); return SLReadPropertyNode.readSLObject(receiverNodeValue__, nameNodeValue_, node__, s2_.objectLibrary_, INLINED_READ_S_L_OBJECT0_TO_TRUFFLE_STRING_NODE_); } s2_ = s2_.next_; } } if ((state_0 & 0b1000) != 0 /* is SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] */) { ReadSLObject1Data s3_ = this.readSLObject1_cache; if (s3_ != null) { return this.readSLObject1Boundary(state_0, s3_, receiverNodeValue__, nameNodeValue_); } } } if ((state_0 & 0b110000) != 0 /* is SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] || SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] */) { if ((state_0 & 0b10000) != 0 /* is SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] */) { ReadObject0Data s4_ = this.readObject0_cache; while (s4_ != null) { if ((s4_.objects_.accepts(receiverNodeValue_)) && (!(SLReadPropertyNode.isSLObject(receiverNodeValue_))) && (s4_.objects_.hasMembers(receiverNodeValue_))) { Node node__1 = (s4_); return SLReadPropertyNode.readObject(receiverNodeValue_, nameNodeValue_, node__1, s4_.objects_, INLINED_READ_OBJECT0_AS_MEMBER_); } s4_ = s4_.next_; } } if ((state_0 & 0b100000) != 0 /* is SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] */) { ReadObject1Data s5_ = this.readObject1_cache; if (s5_ != null) { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { if ((!(SLReadPropertyNode.isSLObject(receiverNodeValue_)))) { InteropLibrary objects__ = (INTEROP_LIBRARY_.getUncached()); if ((objects__.hasMembers(receiverNodeValue_))) { return this.readObject1Boundary(state_0, s5_, receiverNodeValue_, nameNodeValue_); } } } finally { encapsulating_.set(prev_); } } } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(receiverNodeValue_, nameNodeValue_); } @SuppressWarnings("static-method") @TruffleBoundary private Object readArray1Boundary(int state_0, Object receiverNodeValue_, Object nameNodeValue_) { { InteropLibrary arrays__ = (INTEROP_LIBRARY_.getUncached()); InteropLibrary numbers__ = (INTEROP_LIBRARY_.getUncached()); return readArray(receiverNodeValue_, nameNodeValue_, arrays__, numbers__); } } @SuppressWarnings("static-method") @TruffleBoundary private Object readSLObject1Boundary(int state_0, ReadSLObject1Data s3_, SLObject receiverNodeValue__, Object nameNodeValue_) { { Node node__ = (s3_); DynamicObjectLibrary objectLibrary__ = (DYNAMIC_OBJECT_LIBRARY_.getUncached(receiverNodeValue__)); return SLReadPropertyNode.readSLObject(receiverNodeValue__, nameNodeValue_, node__, objectLibrary__, INLINED_READ_S_L_OBJECT1_TO_TRUFFLE_STRING_NODE_); } } @SuppressWarnings("static-method") @TruffleBoundary private Object readObject1Boundary(int state_0, ReadObject1Data s5_, Object receiverNodeValue_, Object nameNodeValue_) { { Node node__1 = (s5_); InteropLibrary objects__ = (INTEROP_LIBRARY_.getUncached()); return SLReadPropertyNode.readObject(receiverNodeValue_, nameNodeValue_, node__1, objects__, INLINED_READ_OBJECT1_AS_MEMBER_); } } @Override public void executeVoid(VirtualFrame frameValue) { executeGeneric(frameValue); return; } @SuppressWarnings("unused") private Object executeAndSpecialize(Object receiverNodeValue, Object nameNodeValue) { int state_0 = this.state_0_; if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] */) { while (true) { int count0_ = 0; ReadArray0Data s0_ = READ_ARRAY0_CACHE_UPDATER.getVolatile(this); ReadArray0Data s0_original = s0_; while (s0_ != null) { if ((s0_.arrays_.accepts(receiverNodeValue)) && (s0_.numbers_.accepts(nameNodeValue)) && (s0_.arrays_.hasArrayElements(receiverNodeValue))) { break; } count0_++; s0_ = s0_.next_; } if (s0_ == null) { { InteropLibrary arrays__ = this.insert((INTEROP_LIBRARY_.create(receiverNodeValue))); // assert (s0_.arrays_.accepts(receiverNodeValue)); // assert (s0_.numbers_.accepts(nameNodeValue)); if ((arrays__.hasArrayElements(receiverNodeValue)) && count0_ < (SLReadPropertyNode.LIBRARY_LIMIT)) { s0_ = this.insert(new ReadArray0Data(s0_original)); Objects.requireNonNull(s0_.insert(arrays__), "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."); s0_.arrays_ = arrays__; InteropLibrary numbers__ = s0_.insert((INTEROP_LIBRARY_.create(nameNodeValue))); Objects.requireNonNull(numbers__, "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."); s0_.numbers_ = numbers__; if (!READ_ARRAY0_CACHE_UPDATER.compareAndSet(this, s0_original, s0_)) { continue; } state_0 = state_0 | 0b1 /* add SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] */; this.state_0_ = state_0; } } } if (s0_ != null) { return readArray(receiverNodeValue, nameNodeValue, s0_.arrays_, s0_.numbers_); } break; } } { InteropLibrary numbers__ = null; InteropLibrary arrays__ = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { { arrays__ = (INTEROP_LIBRARY_.getUncached()); if ((arrays__.hasArrayElements(receiverNodeValue))) { numbers__ = (INTEROP_LIBRARY_.getUncached()); this.readArray0_cache = null; state_0 = state_0 & 0xfffffffe /* remove SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] */; state_0 = state_0 | 0b10 /* add SpecializationActive[SLReadPropertyNode.readArray(Object, Object, InteropLibrary, InteropLibrary)] */; this.state_0_ = state_0; return readArray(receiverNodeValue, nameNodeValue, arrays__, numbers__); } } } finally { encapsulating_.set(prev_); } } } if (receiverNodeValue instanceof SLObject) { SLObject receiverNodeValue_ = (SLObject) receiverNodeValue; { Node node__ = null; if (((state_0 & 0b1000)) == 0 /* is-not SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] */) { while (true) { int count2_ = 0; ReadSLObject0Data s2_ = READ_S_L_OBJECT0_CACHE_UPDATER.getVolatile(this); ReadSLObject0Data s2_original = s2_; while (s2_ != null) { if ((s2_.objectLibrary_.accepts(receiverNodeValue_))) { node__ = (s2_); break; } count2_++; s2_ = s2_.next_; } if (s2_ == null) { // assert (s2_.objectLibrary_.accepts(receiverNodeValue_)); if (count2_ < (SLReadPropertyNode.LIBRARY_LIMIT)) { s2_ = this.insert(new ReadSLObject0Data(s2_original)); node__ = (s2_); DynamicObjectLibrary objectLibrary__ = s2_.insert((DYNAMIC_OBJECT_LIBRARY_.create(receiverNodeValue_))); Objects.requireNonNull(objectLibrary__, "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."); s2_.objectLibrary_ = objectLibrary__; if (!READ_S_L_OBJECT0_CACHE_UPDATER.compareAndSet(this, s2_original, s2_)) { continue; } state_0 = state_0 | 0b100 /* add SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] */; this.state_0_ = state_0; } } if (s2_ != null) { return SLReadPropertyNode.readSLObject(receiverNodeValue_, nameNodeValue, node__, s2_.objectLibrary_, INLINED_READ_S_L_OBJECT0_TO_TRUFFLE_STRING_NODE_); } break; } } } { DynamicObjectLibrary objectLibrary__ = null; Node node__ = null; ReadSLObject1Data s3_ = this.insert(new ReadSLObject1Data()); node__ = (s3_); objectLibrary__ = (DYNAMIC_OBJECT_LIBRARY_.getUncached(receiverNodeValue_)); VarHandle.storeStoreFence(); this.readSLObject1_cache = s3_; this.readSLObject0_cache = null; state_0 = state_0 & 0xfffffffb /* remove SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] */; state_0 = state_0 | 0b1000 /* add SpecializationActive[SLReadPropertyNode.readSLObject(SLObject, Object, Node, DynamicObjectLibrary, SLToTruffleStringNode)] */; this.state_0_ = state_0; return SLReadPropertyNode.readSLObject(receiverNodeValue_, nameNodeValue, node__, objectLibrary__, INLINED_READ_S_L_OBJECT1_TO_TRUFFLE_STRING_NODE_); } } { Node node__1 = null; if (((state_0 & 0b100000)) == 0 /* is-not SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] */) { while (true) { int count4_ = 0; ReadObject0Data s4_ = READ_OBJECT0_CACHE_UPDATER.getVolatile(this); ReadObject0Data s4_original = s4_; while (s4_ != null) { if ((s4_.objects_.accepts(receiverNodeValue)) && (!(SLReadPropertyNode.isSLObject(receiverNodeValue))) && (s4_.objects_.hasMembers(receiverNodeValue))) { node__1 = (s4_); break; } count4_++; s4_ = s4_.next_; } if (s4_ == null) { if ((!(SLReadPropertyNode.isSLObject(receiverNodeValue)))) { // assert (s4_.objects_.accepts(receiverNodeValue)); InteropLibrary objects__ = this.insert((INTEROP_LIBRARY_.create(receiverNodeValue))); if ((objects__.hasMembers(receiverNodeValue)) && count4_ < (SLReadPropertyNode.LIBRARY_LIMIT)) { s4_ = this.insert(new ReadObject0Data(s4_original)); node__1 = (s4_); Objects.requireNonNull(s4_.insert(objects__), "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."); s4_.objects_ = objects__; if (!READ_OBJECT0_CACHE_UPDATER.compareAndSet(this, s4_original, s4_)) { continue; } state_0 = state_0 | 0b10000 /* add SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] */; this.state_0_ = state_0; } } } if (s4_ != null) { return SLReadPropertyNode.readObject(receiverNodeValue, nameNodeValue, node__1, s4_.objects_, INLINED_READ_OBJECT0_AS_MEMBER_); } break; } } } { InteropLibrary objects__ = null; Node node__1 = null; { EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent(); Node prev_ = encapsulating_.set(this); try { if ((!(SLReadPropertyNode.isSLObject(receiverNodeValue)))) { objects__ = (INTEROP_LIBRARY_.getUncached()); if ((objects__.hasMembers(receiverNodeValue))) { ReadObject1Data s5_ = this.insert(new ReadObject1Data()); node__1 = (s5_); VarHandle.storeStoreFence(); this.readObject1_cache = s5_; this.readObject0_cache = null; state_0 = state_0 & 0xffffffef /* remove SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] */; state_0 = state_0 | 0b100000 /* add SpecializationActive[SLReadPropertyNode.readObject(Object, Object, Node, InteropLibrary, SLToMemberNode)] */; this.state_0_ = state_0; return SLReadPropertyNode.readObject(receiverNodeValue, nameNodeValue, node__1, objects__, INLINED_READ_OBJECT1_AS_MEMBER_); } } } finally { encapsulating_.set(prev_); } } } throw new UnsupportedSpecializationException(this, new Node[] {this.receiverNode_, this.nameNode_}, receiverNodeValue, nameNodeValue); } @NeverDefault public static SLReadPropertyNode create(SLExpressionNode receiverNode, SLExpressionNode nameNode) { return new SLReadPropertyNodeGen(receiverNode, nameNode); } @GeneratedBy(SLReadPropertyNode.class) @DenyReplace private static final class ReadArray0Data extends Node implements SpecializationDataNode { @Child ReadArray0Data next_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readArray}
         *   Parameter: {@link InteropLibrary} arrays
*/ @Child InteropLibrary arrays_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readArray}
         *   Parameter: {@link InteropLibrary} numbers
*/ @Child InteropLibrary numbers_; ReadArray0Data(ReadArray0Data next_) { this.next_ = next_; } } @GeneratedBy(SLReadPropertyNode.class) @DenyReplace private static final class ReadSLObject0Data extends Node implements SpecializationDataNode { @Child ReadSLObject0Data next_; /** * State Info:
         *   0-10: InlinedCache
         *        Specialization: {@link SLReadPropertyNode#readSLObject}
         *        Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
         *        Inline method: {@link SLToTruffleStringNodeGen#inline}
         * 
*/ @CompilationFinal @UnsafeAccessedField private int readSLObject0_state_0_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readSLObject}
         *   Parameter: {@link DynamicObjectLibrary} objectLibrary
*/ @Child DynamicObjectLibrary objectLibrary_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readSLObject}
         *   Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
         *   Inline method: {@link SLToTruffleStringNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readSLObject0_toTruffleStringNode__field1_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readSLObject}
         *   Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
         *   Inline method: {@link SLToTruffleStringNodeGen#inline}
         *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readSLObject0_toTruffleStringNode__field2_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readSLObject}
         *   Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
         *   Inline method: {@link SLToTruffleStringNodeGen#inline}
         *   Inline field: {@link Node} field3
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readSLObject0_toTruffleStringNode__field3_; ReadSLObject0Data(ReadSLObject0Data next_) { this.next_ = next_; } private static Lookup lookup_() { return MethodHandles.lookup(); } } @GeneratedBy(SLReadPropertyNode.class) @DenyReplace private static final class ReadSLObject1Data extends Node implements SpecializationDataNode { /** * State Info:
         *   0-10: InlinedCache
         *        Specialization: {@link SLReadPropertyNode#readSLObject}
         *        Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
         *        Inline method: {@link SLToTruffleStringNodeGen#inline}
         * 
*/ @CompilationFinal @UnsafeAccessedField private int readSLObject1_state_0_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readSLObject}
         *   Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
         *   Inline method: {@link SLToTruffleStringNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readSLObject1_toTruffleStringNode__field1_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readSLObject}
         *   Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
         *   Inline method: {@link SLToTruffleStringNodeGen#inline}
         *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readSLObject1_toTruffleStringNode__field2_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readSLObject}
         *   Parameter: {@link SLToTruffleStringNode} toTruffleStringNode
         *   Inline method: {@link SLToTruffleStringNodeGen#inline}
         *   Inline field: {@link Node} field3
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readSLObject1_toTruffleStringNode__field3_; ReadSLObject1Data() { } private static Lookup lookup_() { return MethodHandles.lookup(); } } @GeneratedBy(SLReadPropertyNode.class) @DenyReplace private static final class ReadObject0Data extends Node implements SpecializationDataNode { @Child ReadObject0Data next_; /** * State Info:
         *   0-8: InlinedCache
         *        Specialization: {@link SLReadPropertyNode#readObject}
         *        Parameter: {@link SLToMemberNode} asMember
         *        Inline method: {@link SLToMemberNodeGen#inline}
         * 
*/ @CompilationFinal @UnsafeAccessedField private int readObject0_state_0_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readObject}
         *   Parameter: {@link InteropLibrary} objects
*/ @Child InteropLibrary objects_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readObject}
         *   Parameter: {@link SLToMemberNode} asMember
         *   Inline method: {@link SLToMemberNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readObject0_asMember__field1_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readObject}
         *   Parameter: {@link SLToMemberNode} asMember
         *   Inline method: {@link SLToMemberNodeGen#inline}
         *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readObject0_asMember__field2_; ReadObject0Data(ReadObject0Data next_) { this.next_ = next_; } private static Lookup lookup_() { return MethodHandles.lookup(); } } @GeneratedBy(SLReadPropertyNode.class) @DenyReplace private static final class ReadObject1Data extends Node implements SpecializationDataNode { /** * State Info:
         *   0-8: InlinedCache
         *        Specialization: {@link SLReadPropertyNode#readObject}
         *        Parameter: {@link SLToMemberNode} asMember
         *        Inline method: {@link SLToMemberNodeGen#inline}
         * 
*/ @CompilationFinal @UnsafeAccessedField private int readObject1_state_0_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readObject}
         *   Parameter: {@link SLToMemberNode} asMember
         *   Inline method: {@link SLToMemberNodeGen#inline}
         *   Inline field: {@link Node} field1
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readObject1_asMember__field1_; /** * Source Info:
         *   Specialization: {@link SLReadPropertyNode#readObject}
         *   Parameter: {@link SLToMemberNode} asMember
         *   Inline method: {@link SLToMemberNodeGen#inline}
         *   Inline field: {@link Node} field2
*/ @Child @UnsafeAccessedField @SuppressWarnings("unused") private Node readObject1_asMember__field2_; ReadObject1Data() { } private static Lookup lookup_() { return MethodHandles.lookup(); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy