com.oracle.truffle.js.nodes.access.EnumerateNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.js.nodes.access;
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.profiles.InlinedBranchProfile;
import com.oracle.truffle.api.strings.TruffleString.SwitchEncodingNode;
import com.oracle.truffle.js.nodes.JSGuards;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import com.oracle.truffle.js.nodes.cast.JSToObjectNode;
import com.oracle.truffle.js.runtime.JSConfig;
import com.oracle.truffle.js.runtime.JSContext;
import com.oracle.truffle.js.runtime.objects.JSObject;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.invoke.MethodHandles.Lookup;
import java.util.Objects;
/**
* Debug Info:
* Specialization {@link EnumerateNode#doEnumerateObject}
* Activation probability: 0.27381
* With/without class size: 7/0 bytes
* Specialization {@link EnumerateNode#doEnumerateNullOrUndefined}
* Activation probability: 0.23095
* With/without class size: 6/0 bytes
* Specialization {@link EnumerateNode#doEnumerateJSAdapter}
* Activation probability: 0.18810
* With/without class size: 7/4 bytes
* Specialization {@link EnumerateNode#doEnumerateTruffleObject}
* Activation probability: 0.14524
* With/without class size: 9/13 bytes
* Specialization {@link EnumerateNode#doEnumerateTruffleObject}
* Activation probability: 0.10238
* With/without class size: 6/9 bytes
* Specialization {@link EnumerateNode#doNonObject}
* Activation probability: 0.05952
* With/without class size: 5/8 bytes
*
*/
@GeneratedBy(EnumerateNode.class)
@SuppressWarnings({"javadoc", "unused"})
public final class EnumerateNodeGen extends EnumerateNode {
private static final StateField ENUMERATE_TRUFFLE_OBJECT0__ENUMERATE_NODE_ENUMERATE_TRUFFLE_OBJECT0_STATE_0_UPDATER = StateField.create(EnumerateTruffleObject0Data.lookup_(), "enumerateTruffleObject0_state_0_");
private static final StateField ENUMERATE_TRUFFLE_OBJECT1__ENUMERATE_NODE_ENUMERATE_TRUFFLE_OBJECT1_STATE_0_UPDATER = StateField.create(EnumerateTruffleObject1Data.lookup_(), "enumerateTruffleObject1_state_0_");
static final ReferenceField ENUMERATE_TRUFFLE_OBJECT0_CACHE_UPDATER = ReferenceField.create(MethodHandles.lookup(), "enumerateTruffleObject0_cache", EnumerateTruffleObject0Data.class);
/**
* Source Info:
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link InlinedBranchProfile} notIterable
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_ENUMERATE_TRUFFLE_OBJECT0_NOT_ITERABLE_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, ENUMERATE_TRUFFLE_OBJECT0__ENUMERATE_NODE_ENUMERATE_TRUFFLE_OBJECT0_STATE_0_UPDATER.subUpdater(0, 1)));
/**
* Source Info:
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link InlinedBranchProfile} notIterable
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_ENUMERATE_TRUFFLE_OBJECT1_NOT_ITERABLE_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, ENUMERATE_TRUFFLE_OBJECT1__ENUMERATE_NODE_ENUMERATE_TRUFFLE_OBJECT1_STATE_0_UPDATER.subUpdater(0, 1)));
private static final LibraryFactory INTEROP_LIBRARY_ = LibraryFactory.resolve(InteropLibrary.class);
/**
* State Info:
* 0: SpecializationActive {@link EnumerateNode#doEnumerateObject}
* 1: SpecializationActive {@link EnumerateNode#doEnumerateNullOrUndefined}
* 2: SpecializationActive {@link EnumerateNode#doEnumerateJSAdapter}
* 3: SpecializationActive {@link EnumerateNode#doEnumerateTruffleObject}
* 4: SpecializationActive {@link EnumerateNode#doEnumerateTruffleObject}
* 5: SpecializationActive {@link EnumerateNode#doNonObject}
*
*/
@CompilationFinal private int state_0_;
/**
* Source Info:
* Specialization: {@link EnumerateNode#doEnumerateJSAdapter}
* Parameter: {@link EnumerateNode} enumerateCallbackResultNode
*/
@Child private EnumerateNode enumerateJSAdapter_enumerateCallbackResultNode_;
@UnsafeAccessedField @Child private EnumerateTruffleObject0Data enumerateTruffleObject0_cache;
@Child private EnumerateTruffleObject1Data enumerateTruffleObject1_cache;
@Child private NonObjectData nonObject_cache;
private EnumerateNodeGen(JSContext context, boolean values, boolean requireIterable, JavaScriptNode targetNode) {
super(context, values, requireIterable, targetNode);
}
@ExplodeLoop
@Override
public JSObject execute(Object targetNodeValue) {
int state_0 = this.state_0_;
if (state_0 != 0 /* is SpecializationActive[EnumerateNode.doEnumerateObject(JSObject)] || SpecializationActive[EnumerateNode.doEnumerateNullOrUndefined(Object)] || SpecializationActive[EnumerateNode.doEnumerateJSAdapter(JSObject, EnumerateNode)] || SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] || SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] || SpecializationActive[EnumerateNode.doNonObject(Object, JSToObjectNode, EnumerateNode)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateObject(JSObject)] */ && targetNodeValue instanceof JSObject) {
JSObject targetNodeValue_ = (JSObject) targetNodeValue;
if ((!(JSGuards.isJSAdapter(targetNodeValue_)))) {
return doEnumerateObject(targetNodeValue_);
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateNullOrUndefined(Object)] */) {
if ((JSGuards.isNullOrUndefined(targetNodeValue))) {
return doEnumerateNullOrUndefined(targetNodeValue);
}
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateJSAdapter(JSObject, EnumerateNode)] */ && targetNodeValue instanceof JSObject) {
JSObject targetNodeValue_ = (JSObject) targetNodeValue;
{
EnumerateNode enumerateCallbackResultNode__ = this.enumerateJSAdapter_enumerateCallbackResultNode_;
if (enumerateCallbackResultNode__ != null) {
if ((JSGuards.isJSAdapter(targetNodeValue_))) {
return doEnumerateJSAdapter(targetNodeValue_, enumerateCallbackResultNode__);
}
}
}
}
if ((state_0 & 0b111000) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] || SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] || SpecializationActive[EnumerateNode.doNonObject(Object, JSToObjectNode, EnumerateNode)] */) {
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] */) {
EnumerateTruffleObject0Data s3_ = this.enumerateTruffleObject0_cache;
while (s3_ != null) {
if ((s3_.interop_.accepts(targetNodeValue)) && (JSGuards.isForeignObject(targetNodeValue))) {
Node node__ = (s3_);
return doEnumerateTruffleObject(targetNodeValue, node__, s3_.interop_, s3_.keysInterop_, INLINED_ENUMERATE_TRUFFLE_OBJECT0_NOT_ITERABLE_, s3_.switchEncoding_);
}
s3_ = s3_.next_;
}
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] */) {
EnumerateTruffleObject1Data s4_ = this.enumerateTruffleObject1_cache;
if (s4_ != null) {
if ((JSGuards.isForeignObject(targetNodeValue))) {
return this.enumerateTruffleObject1Boundary(state_0, s4_, targetNodeValue);
}
}
}
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[EnumerateNode.doNonObject(Object, JSToObjectNode, EnumerateNode)] */) {
NonObjectData s5_ = this.nonObject_cache;
if (s5_ != null) {
if ((!(JSGuards.isJSDynamicObject(targetNodeValue))) && (!(JSGuards.isForeignObject(targetNodeValue)))) {
return doNonObject(targetNodeValue, s5_.toObjectNode_, s5_.enumerateNode_);
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue);
}
@SuppressWarnings("static-method")
@TruffleBoundary
private JSObject enumerateTruffleObject1Boundary(int state_0, EnumerateTruffleObject1Data s4_, Object targetNodeValue) {
EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent();
Node prev_ = encapsulating_.set(this);
try {
{
Node node__ = (s4_);
InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(targetNodeValue));
return doEnumerateTruffleObject(targetNodeValue, node__, interop__, s4_.keysInterop_, INLINED_ENUMERATE_TRUFFLE_OBJECT1_NOT_ITERABLE_, s4_.switchEncoding_);
}
} finally {
encapsulating_.set(prev_);
}
}
@ExplodeLoop
@Override
public JSObject execute(VirtualFrame frameValue) {
int state_0 = this.state_0_;
Object targetNodeValue_ = super.targetNode.execute(frameValue);
if (state_0 != 0 /* is SpecializationActive[EnumerateNode.doEnumerateObject(JSObject)] || SpecializationActive[EnumerateNode.doEnumerateNullOrUndefined(Object)] || SpecializationActive[EnumerateNode.doEnumerateJSAdapter(JSObject, EnumerateNode)] || SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] || SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] || SpecializationActive[EnumerateNode.doNonObject(Object, JSToObjectNode, EnumerateNode)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateObject(JSObject)] */ && targetNodeValue_ instanceof JSObject) {
JSObject targetNodeValue__ = (JSObject) targetNodeValue_;
if ((!(JSGuards.isJSAdapter(targetNodeValue__)))) {
return doEnumerateObject(targetNodeValue__);
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateNullOrUndefined(Object)] */) {
if ((JSGuards.isNullOrUndefined(targetNodeValue_))) {
return doEnumerateNullOrUndefined(targetNodeValue_);
}
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateJSAdapter(JSObject, EnumerateNode)] */ && targetNodeValue_ instanceof JSObject) {
JSObject targetNodeValue__ = (JSObject) targetNodeValue_;
{
EnumerateNode enumerateCallbackResultNode__ = this.enumerateJSAdapter_enumerateCallbackResultNode_;
if (enumerateCallbackResultNode__ != null) {
if ((JSGuards.isJSAdapter(targetNodeValue__))) {
return doEnumerateJSAdapter(targetNodeValue__, enumerateCallbackResultNode__);
}
}
}
}
if ((state_0 & 0b111000) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] || SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] || SpecializationActive[EnumerateNode.doNonObject(Object, JSToObjectNode, EnumerateNode)] */) {
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] */) {
EnumerateTruffleObject0Data s3_ = this.enumerateTruffleObject0_cache;
while (s3_ != null) {
if ((s3_.interop_.accepts(targetNodeValue_)) && (JSGuards.isForeignObject(targetNodeValue_))) {
Node node__ = (s3_);
return doEnumerateTruffleObject(targetNodeValue_, node__, s3_.interop_, s3_.keysInterop_, INLINED_ENUMERATE_TRUFFLE_OBJECT0_NOT_ITERABLE_, s3_.switchEncoding_);
}
s3_ = s3_.next_;
}
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] */) {
EnumerateTruffleObject1Data s4_ = this.enumerateTruffleObject1_cache;
if (s4_ != null) {
if ((JSGuards.isForeignObject(targetNodeValue_))) {
return this.enumerateTruffleObject1Boundary0(state_0, s4_, targetNodeValue_);
}
}
}
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[EnumerateNode.doNonObject(Object, JSToObjectNode, EnumerateNode)] */) {
NonObjectData s5_ = this.nonObject_cache;
if (s5_ != null) {
if ((!(JSGuards.isJSDynamicObject(targetNodeValue_))) && (!(JSGuards.isForeignObject(targetNodeValue_)))) {
return doNonObject(targetNodeValue_, s5_.toObjectNode_, s5_.enumerateNode_);
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue_);
}
@SuppressWarnings("static-method")
@TruffleBoundary
private JSObject enumerateTruffleObject1Boundary0(int state_0, EnumerateTruffleObject1Data s4_, Object targetNodeValue_) {
EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent();
Node prev_ = encapsulating_.set(this);
try {
{
Node node__ = (s4_);
InteropLibrary interop__ = (INTEROP_LIBRARY_.getUncached(targetNodeValue_));
return doEnumerateTruffleObject(targetNodeValue_, node__, interop__, s4_.keysInterop_, INLINED_ENUMERATE_TRUFFLE_OBJECT1_NOT_ITERABLE_, s4_.switchEncoding_);
}
} finally {
encapsulating_.set(prev_);
}
}
@Override
public void executeVoid(VirtualFrame frameValue) {
execute(frameValue);
return;
}
private JSObject executeAndSpecialize(Object targetNodeValue) {
int state_0 = this.state_0_;
if (targetNodeValue instanceof JSObject) {
JSObject targetNodeValue_ = (JSObject) targetNodeValue;
if ((!(JSGuards.isJSAdapter(targetNodeValue_)))) {
state_0 = state_0 | 0b1 /* add SpecializationActive[EnumerateNode.doEnumerateObject(JSObject)] */;
this.state_0_ = state_0;
return doEnumerateObject(targetNodeValue_);
}
}
if ((JSGuards.isNullOrUndefined(targetNodeValue))) {
state_0 = state_0 | 0b10 /* add SpecializationActive[EnumerateNode.doEnumerateNullOrUndefined(Object)] */;
this.state_0_ = state_0;
return doEnumerateNullOrUndefined(targetNodeValue);
}
if (targetNodeValue instanceof JSObject) {
JSObject targetNodeValue_ = (JSObject) targetNodeValue;
if ((JSGuards.isJSAdapter(targetNodeValue_))) {
EnumerateNode enumerateCallbackResultNode__ = this.insert((createValues()));
Objects.requireNonNull(enumerateCallbackResultNode__, "A specialization cache returned a default value. The cache initializer must never return a default value for this cache. Use @Cached(neverDefault=false) to allow default values for this cached value or make sure the cache initializer never returns the default value.");
VarHandle.storeStoreFence();
this.enumerateJSAdapter_enumerateCallbackResultNode_ = enumerateCallbackResultNode__;
state_0 = state_0 | 0b100 /* add SpecializationActive[EnumerateNode.doEnumerateJSAdapter(JSObject, EnumerateNode)] */;
this.state_0_ = state_0;
return doEnumerateJSAdapter(targetNodeValue_, enumerateCallbackResultNode__);
}
}
{
Node node__ = null;
if (((state_0 & 0b10000)) == 0 /* is-not SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] */) {
while (true) {
int count3_ = 0;
EnumerateTruffleObject0Data s3_ = ENUMERATE_TRUFFLE_OBJECT0_CACHE_UPDATER.getVolatile(this);
EnumerateTruffleObject0Data s3_original = s3_;
while (s3_ != null) {
if ((s3_.interop_.accepts(targetNodeValue)) && (JSGuards.isForeignObject(targetNodeValue))) {
node__ = (s3_);
break;
}
count3_++;
s3_ = s3_.next_;
}
if (s3_ == null) {
if ((JSGuards.isForeignObject(targetNodeValue)) && count3_ < (JSConfig.InteropLibraryLimit)) {
// assert (s3_.interop_.accepts(targetNodeValue));
s3_ = this.insert(new EnumerateTruffleObject0Data(s3_original));
node__ = (s3_);
InteropLibrary interop__ = s3_.insert((INTEROP_LIBRARY_.create(targetNodeValue)));
Objects.requireNonNull(interop__, "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.");
s3_.interop_ = interop__;
InteropLibrary keysInterop__ = s3_.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit)));
Objects.requireNonNull(keysInterop__, "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.");
s3_.keysInterop_ = keysInterop__;
SwitchEncodingNode switchEncoding__ = s3_.insert((SwitchEncodingNode.create()));
Objects.requireNonNull(switchEncoding__, "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.");
s3_.switchEncoding_ = switchEncoding__;
if (!ENUMERATE_TRUFFLE_OBJECT0_CACHE_UPDATER.compareAndSet(this, s3_original, s3_)) {
continue;
}
state_0 = state_0 | 0b1000 /* add SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] */;
this.state_0_ = state_0;
}
}
if (s3_ != null) {
return doEnumerateTruffleObject(targetNodeValue, node__, s3_.interop_, s3_.keysInterop_, INLINED_ENUMERATE_TRUFFLE_OBJECT0_NOT_ITERABLE_, s3_.switchEncoding_);
}
break;
}
}
}
{
InteropLibrary interop__ = null;
Node node__ = null;
{
EncapsulatingNodeReference encapsulating_ = EncapsulatingNodeReference.getCurrent();
Node prev_ = encapsulating_.set(this);
try {
if ((JSGuards.isForeignObject(targetNodeValue))) {
EnumerateTruffleObject1Data s4_ = this.insert(new EnumerateTruffleObject1Data());
node__ = (s4_);
interop__ = (INTEROP_LIBRARY_.getUncached(targetNodeValue));
InteropLibrary keysInterop__ = s4_.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit)));
Objects.requireNonNull(keysInterop__, "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_.keysInterop_ = keysInterop__;
SwitchEncodingNode switchEncoding__ = s4_.insert((SwitchEncodingNode.create()));
Objects.requireNonNull(switchEncoding__, "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_.switchEncoding_ = switchEncoding__;
VarHandle.storeStoreFence();
this.enumerateTruffleObject1_cache = s4_;
this.enumerateTruffleObject0_cache = null;
state_0 = state_0 & 0xfffffff7 /* remove SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] */;
state_0 = state_0 | 0b10000 /* add SpecializationActive[EnumerateNode.doEnumerateTruffleObject(Object, Node, InteropLibrary, InteropLibrary, InlinedBranchProfile, SwitchEncodingNode)] */;
this.state_0_ = state_0;
return doEnumerateTruffleObject(targetNodeValue, node__, interop__, keysInterop__, INLINED_ENUMERATE_TRUFFLE_OBJECT1_NOT_ITERABLE_, switchEncoding__);
}
} finally {
encapsulating_.set(prev_);
}
}
}
if ((!(JSGuards.isJSDynamicObject(targetNodeValue))) && (!(JSGuards.isForeignObject(targetNodeValue)))) {
NonObjectData s5_ = this.insert(new NonObjectData());
JSToObjectNode toObjectNode__ = s5_.insert((JSToObjectNode.create()));
Objects.requireNonNull(toObjectNode__, "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.");
s5_.toObjectNode_ = toObjectNode__;
EnumerateNode enumerateNode__ = s5_.insert((copyRecursive()));
Objects.requireNonNull(enumerateNode__, "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.");
s5_.enumerateNode_ = enumerateNode__;
VarHandle.storeStoreFence();
this.nonObject_cache = s5_;
state_0 = state_0 | 0b100000 /* add SpecializationActive[EnumerateNode.doNonObject(Object, JSToObjectNode, EnumerateNode)] */;
this.state_0_ = state_0;
return doNonObject(targetNodeValue, toObjectNode__, enumerateNode__);
}
throw new UnsupportedSpecializationException(this, new Node[] {super.targetNode}, targetNodeValue);
}
@NeverDefault
public static EnumerateNode create(JSContext context, boolean values, boolean requireIterable, JavaScriptNode targetNode) {
return new EnumerateNodeGen(context, values, requireIterable, targetNode);
}
@GeneratedBy(EnumerateNode.class)
@DenyReplace
private static final class EnumerateTruffleObject0Data extends Node implements SpecializationDataNode {
@Child EnumerateTruffleObject0Data next_;
/**
* State Info:
* 0: InlinedCache
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link InlinedBranchProfile} notIterable
* Inline method: {@link InlinedBranchProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int enumerateTruffleObject0_state_0_;
/**
* Source Info:
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link InteropLibrary} interop
*/
@Child InteropLibrary interop_;
/**
* Source Info:
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link InteropLibrary} keysInterop
*/
@Child InteropLibrary keysInterop_;
/**
* Source Info:
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link SwitchEncodingNode} switchEncoding
*/
@Child SwitchEncodingNode switchEncoding_;
EnumerateTruffleObject0Data(EnumerateTruffleObject0Data next_) {
this.next_ = next_;
}
private static Lookup lookup_() {
return MethodHandles.lookup();
}
}
@GeneratedBy(EnumerateNode.class)
@DenyReplace
private static final class EnumerateTruffleObject1Data extends Node implements SpecializationDataNode {
/**
* State Info:
* 0: InlinedCache
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link InlinedBranchProfile} notIterable
* Inline method: {@link InlinedBranchProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int enumerateTruffleObject1_state_0_;
/**
* Source Info:
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link InteropLibrary} keysInterop
*/
@Child InteropLibrary keysInterop_;
/**
* Source Info:
* Specialization: {@link EnumerateNode#doEnumerateTruffleObject}
* Parameter: {@link SwitchEncodingNode} switchEncoding
*/
@Child SwitchEncodingNode switchEncoding_;
EnumerateTruffleObject1Data() {
}
private static Lookup lookup_() {
return MethodHandles.lookup();
}
}
@GeneratedBy(EnumerateNode.class)
@DenyReplace
private static final class NonObjectData extends Node implements SpecializationDataNode {
/**
* Source Info:
* Specialization: {@link EnumerateNode#doNonObject}
* Parameter: {@link JSToObjectNode} toObjectNode
*/
@Child JSToObjectNode toObjectNode_;
/**
* Source Info:
* Specialization: {@link EnumerateNode#doNonObject}
* Parameter: {@link EnumerateNode} enumerateNode
*/
@Child EnumerateNode enumerateNode_;
NonObjectData() {
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy