com.oracle.truffle.js.nodes.control.DeletePropertyNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.js.nodes.control;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.NeverDefault;
import com.oracle.truffle.api.dsl.UnsupportedSpecializationException;
import com.oracle.truffle.api.dsl.DSLSupport.SpecializationDataNode;
import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget;
import com.oracle.truffle.api.dsl.InlineSupport.StateField;
import com.oracle.truffle.api.dsl.InlineSupport.UnsafeAccessedField;
import com.oracle.truffle.api.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.Node;
import com.oracle.truffle.api.nodes.UnexpectedResultException;
import com.oracle.truffle.api.object.DynamicObjectLibrary;
import com.oracle.truffle.api.profiles.InlinedConditionProfile;
import com.oracle.truffle.api.strings.TruffleString;
import com.oracle.truffle.api.strings.TruffleString.EqualNode;
import com.oracle.truffle.js.nodes.JSGuards;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import com.oracle.truffle.js.nodes.access.IsArrayNode;
import com.oracle.truffle.js.nodes.array.JSArrayDeleteIndexNode;
import com.oracle.truffle.js.nodes.cast.JSToPropertyKeyNode;
import com.oracle.truffle.js.nodes.cast.ToArrayIndexNode;
import com.oracle.truffle.js.runtime.BigInt;
import com.oracle.truffle.js.runtime.JSConfig;
import com.oracle.truffle.js.runtime.SafeInteger;
import com.oracle.truffle.js.runtime.Symbol;
import com.oracle.truffle.js.runtime.builtins.JSGlobal;
import com.oracle.truffle.js.runtime.builtins.JSGlobalObject;
import com.oracle.truffle.js.runtime.objects.JSDynamicObject;
import com.oracle.truffle.js.runtime.util.JSClassProfile;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.invoke.MethodHandles.Lookup;
import java.util.Objects;
/**
* Debug Info:
* Specialization {@link DeletePropertyNode#doJSOrdinaryObject}
* Activation probability: 0.15909
* With/without class size: 5/0 bytes
* Specialization {@link DeletePropertyNode#doJSGlobalObject}
* Activation probability: 0.14545
* With/without class size: 5/0 bytes
* Specialization {@link DeletePropertyNode#doJSObject}
* Activation probability: 0.13182
* With/without class size: 8/13 bytes
* Specialization {@link DeletePropertyNode#doSymbol}
* Activation probability: 0.11818
* With/without class size: 5/0 bytes
* Specialization {@link DeletePropertyNode#doSafeInteger}
* Activation probability: 0.10455
* With/without class size: 5/0 bytes
* Specialization {@link DeletePropertyNode#doBigInt}
* Activation probability: 0.09091
* With/without class size: 5/0 bytes
* Specialization {@link DeletePropertyNode#doString}
* Activation probability: 0.07727
* With/without class size: 5/4 bytes
* Specialization {@link DeletePropertyNode#member}
* Activation probability: 0.06364
* With/without class size: 4/0 bytes
* Specialization {@link DeletePropertyNode#arrayElementInt}
* Activation probability: 0.05000
* With/without class size: 4/0 bytes
* Specialization {@link DeletePropertyNode#foreignObject}
* Activation probability: 0.03636
* With/without class size: 4/0 bytes
* Specialization {@link DeletePropertyNode#doOther}
* Activation probability: 0.02273
* With/without class size: 4/0 bytes
*
*/
@GeneratedBy(DeletePropertyNode.class)
@SuppressWarnings("javadoc")
public final class DeletePropertyNodeGen extends DeletePropertyNode {
private static final StateField J_S_OBJECT__DELETE_PROPERTY_NODE_J_S_OBJECT_STATE_0_UPDATER = StateField.create(JSObjectData.lookup_(), "jSObject_state_0_");
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doJSObject}
* Parameter: {@link InlinedConditionProfile} arrayProfile
* Inline method: {@link InlinedConditionProfile#inline}
*/
private static final InlinedConditionProfile INLINED_J_S_OBJECT_ARRAY_PROFILE_ = InlinedConditionProfile.inline(InlineTarget.create(InlinedConditionProfile.class, J_S_OBJECT__DELETE_PROPERTY_NODE_J_S_OBJECT_STATE_0_UPDATER.subUpdater(0, 2)));
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doJSObject}
* Parameter: {@link InlinedConditionProfile} arrayIndexProfile
* Inline method: {@link InlinedConditionProfile#inline}
*/
private static final InlinedConditionProfile INLINED_J_S_OBJECT_ARRAY_INDEX_PROFILE_ = InlinedConditionProfile.inline(InlineTarget.create(InlinedConditionProfile.class, J_S_OBJECT__DELETE_PROPERTY_NODE_J_S_OBJECT_STATE_0_UPDATER.subUpdater(2, 2)));
private static final LibraryFactory DYNAMIC_OBJECT_LIBRARY_ = LibraryFactory.resolve(DynamicObjectLibrary.class);
private static final LibraryFactory INTEROP_LIBRARY_ = LibraryFactory.resolve(InteropLibrary.class);
/**
* State Info:
* 0: SpecializationActive {@link DeletePropertyNode#doJSOrdinaryObject}
* 1: SpecializationActive {@link DeletePropertyNode#doJSGlobalObject}
* 2: SpecializationActive {@link DeletePropertyNode#doJSObject}
* 3: SpecializationActive {@link DeletePropertyNode#doSymbol}
* 4: SpecializationActive {@link DeletePropertyNode#doSafeInteger}
* 5: SpecializationActive {@link DeletePropertyNode#doBigInt}
* 6: SpecializationActive {@link DeletePropertyNode#doString}
* 7: SpecializationActive {@link DeletePropertyNode#member}
* 8: SpecializationActive {@link DeletePropertyNode#foreignObject}
* 9: SpecializationActive {@link DeletePropertyNode#arrayElementInt}
* 10: SpecializationActive {@link DeletePropertyNode#doOther}
*
*/
@CompilationFinal private int state_0_;
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doJSOrdinaryObject}
* Parameter: {@link JSToPropertyKeyNode} toPropertyKeyNode
*/
@Child private JSToPropertyKeyNode toPropertyKeyNode;
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doJSOrdinaryObject}
* Parameter: {@link DynamicObjectLibrary} dynamicObjectLib
*/
@Child private DynamicObjectLibrary dynamicObjectLib;
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doJSObject}
* Parameter: {@link ToArrayIndexNode} toArrayIndexNode
*/
@Child private ToArrayIndexNode toArrayIndexNode;
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#member}
* Parameter: {@link InteropLibrary} interop
*/
@Child private InteropLibrary interop;
@Child private JSObjectData jSObject_cache;
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doString}
* Parameter: {@link EqualNode} equalsNode
*/
@Child private EqualNode string_equalsNode_;
private DeletePropertyNodeGen(boolean strict, JavaScriptNode targetNode, JavaScriptNode propertyNode) {
super(strict, targetNode, propertyNode);
}
@Override
public boolean executeEvaluated(Object targetNodeValue, Object propertyNodeValue) {
int state_0 = this.state_0_;
if (state_0 != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] || SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] || SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] || SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b1111111) != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] */ && targetNodeValue instanceof JSDynamicObject) {
JSDynamicObject targetNodeValue_ = (JSDynamicObject) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_ = this.toPropertyKeyNode;
if (toPropertyKeyNode_ != null) {
DynamicObjectLibrary dynamicObjectLib_ = this.dynamicObjectLib;
if (dynamicObjectLib_ != null) {
if ((JSGuards.isJSOrdinaryObject(targetNodeValue_))) {
return doJSOrdinaryObject(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_, dynamicObjectLib_);
}
}
}
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] */ && targetNodeValue instanceof JSGlobalObject) {
JSGlobalObject targetNodeValue_ = (JSGlobalObject) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_1 = this.toPropertyKeyNode;
if (toPropertyKeyNode_1 != null) {
DynamicObjectLibrary dynamicObjectLib_1 = this.dynamicObjectLib;
if (dynamicObjectLib_1 != null) {
return doJSGlobalObject(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_1, dynamicObjectLib_1);
}
}
}
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] */ && targetNodeValue instanceof JSDynamicObject) {
JSDynamicObject targetNodeValue_ = (JSDynamicObject) targetNodeValue;
JSObjectData s2_ = this.jSObject_cache;
if (s2_ != null) {
{
ToArrayIndexNode toArrayIndexNode_ = this.toArrayIndexNode;
if (toArrayIndexNode_ != null) {
JSToPropertyKeyNode toPropertyKeyNode_2 = this.toPropertyKeyNode;
if (toPropertyKeyNode_2 != null) {
if ((!(JSGuards.isJSOrdinaryObject(targetNodeValue_))) && (!(JSGlobal.isJSGlobalObject(targetNodeValue_)))) {
Node node__ = (s2_);
return doJSObject(targetNodeValue_, propertyNodeValue, node__, s2_.isArrayNode_, INLINED_J_S_OBJECT_ARRAY_PROFILE_, toArrayIndexNode_, INLINED_J_S_OBJECT_ARRAY_INDEX_PROFILE_, s2_.deleteArrayIndexNode_, s2_.jsclassProfile_, toPropertyKeyNode_2);
}
}
}
}
}
}
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] */ && targetNodeValue instanceof Symbol) {
Symbol targetNodeValue_ = (Symbol) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_3 = this.toPropertyKeyNode;
if (toPropertyKeyNode_3 != null) {
return DeletePropertyNode.doSymbol(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_3);
}
}
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] */ && targetNodeValue instanceof SafeInteger) {
SafeInteger targetNodeValue_ = (SafeInteger) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_4 = this.toPropertyKeyNode;
if (toPropertyKeyNode_4 != null) {
return DeletePropertyNode.doSafeInteger(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_4);
}
}
}
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] */ && targetNodeValue instanceof BigInt) {
BigInt targetNodeValue_ = (BigInt) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_5 = this.toPropertyKeyNode;
if (toPropertyKeyNode_5 != null) {
return DeletePropertyNode.doBigInt(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_5);
}
}
}
if ((state_0 & 0b1000000) != 0 /* is SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] */ && targetNodeValue instanceof TruffleString) {
TruffleString targetNodeValue_ = (TruffleString) targetNodeValue;
{
ToArrayIndexNode toArrayIndexNode_1 = this.toArrayIndexNode;
if (toArrayIndexNode_1 != null) {
EqualNode equalsNode__ = this.string_equalsNode_;
if (equalsNode__ != null) {
return doString(targetNodeValue_, propertyNodeValue, toArrayIndexNode_1, equalsNode__);
}
}
}
}
}
if ((state_0 & 0b11110000000) != 0 /* is SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] || SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] || SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b10000000) != 0 /* is SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] */ && propertyNodeValue instanceof TruffleString) {
TruffleString propertyNodeValue_ = (TruffleString) propertyNodeValue;
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
if ((JSGuards.isForeignObject(targetNodeValue)) && (!(interop_.hasArrayElements(targetNodeValue)))) {
return member(targetNodeValue, propertyNodeValue_, interop_);
}
}
}
}
if ((state_0 & 0b1000000000) != 0 /* is SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */ && propertyNodeValue instanceof Integer) {
int propertyNodeValue_ = (int) propertyNodeValue;
{
InteropLibrary interop_1 = this.interop;
if (interop_1 != null) {
if ((JSGuards.isForeignObject(targetNodeValue)) && (interop_1.hasArrayElements(targetNodeValue))) {
return arrayElementInt(targetNodeValue, propertyNodeValue_, interop_1);
}
}
}
}
if ((state_0 & 0b10100000000) != 0 /* is SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b100000000) != 0 /* is SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] */) {
{
InteropLibrary interop_2 = this.interop;
if (interop_2 != null) {
ToArrayIndexNode toArrayIndexNode_2 = this.toArrayIndexNode;
if (toArrayIndexNode_2 != null) {
JSToPropertyKeyNode toPropertyKeyNode_6 = this.toPropertyKeyNode;
if (toPropertyKeyNode_6 != null) {
if ((JSGuards.isForeignObject(targetNodeValue))) {
return foreignObject(targetNodeValue, propertyNodeValue, interop_2, toArrayIndexNode_2, toPropertyKeyNode_6);
}
}
}
}
}
}
if ((state_0 & 0b10000000000) != 0 /* is SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
{
JSToPropertyKeyNode toPropertyKeyNode_7 = this.toPropertyKeyNode;
if (toPropertyKeyNode_7 != null) {
if ((!(JSGuards.isTruffleObject(targetNodeValue))) && (!(JSGuards.isString(targetNodeValue)))) {
return doOther(targetNodeValue, propertyNodeValue, toPropertyKeyNode_7);
}
}
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue, propertyNodeValue);
}
@Override
public Object executeWithTarget(VirtualFrame frameValue, Object targetNodeValue) {
int state_0 = this.state_0_;
if ((state_0 & 0b10111111111) == 0 /* only-active SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */ && (state_0 != 0 /* is-not SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] && SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] && SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] && SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] && SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] && SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */)) {
return executeWithTarget_int0(state_0, frameValue, targetNodeValue);
} else {
return executeWithTarget_generic1(state_0, frameValue, targetNodeValue);
}
}
private Object executeWithTarget_int0(int state_0__, VirtualFrame frameValue, Object targetNodeValue) {
int state_0 = state_0__;
int propertyNodeValue_;
try {
propertyNodeValue_ = super.propertyNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue, ex.getResult());
}
assert (state_0 & 0b1000000000) != 0 /* is SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */;
{
InteropLibrary interop_1 = this.interop;
if (interop_1 != null) {
if ((JSGuards.isForeignObject(targetNodeValue)) && (interop_1.hasArrayElements(targetNodeValue))) {
return arrayElementInt(targetNodeValue, propertyNodeValue_, interop_1);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue, propertyNodeValue_);
}
private Object executeWithTarget_generic1(int state_0__, VirtualFrame frameValue, Object targetNodeValue) {
int state_0 = state_0__;
Object propertyNodeValue_ = super.propertyNode.execute(frameValue);
if (state_0 != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] || SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] || SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] || SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b1111111) != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] */ && targetNodeValue instanceof JSDynamicObject) {
JSDynamicObject targetNodeValue_ = (JSDynamicObject) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_ = this.toPropertyKeyNode;
if (toPropertyKeyNode_ != null) {
DynamicObjectLibrary dynamicObjectLib_ = this.dynamicObjectLib;
if (dynamicObjectLib_ != null) {
if ((JSGuards.isJSOrdinaryObject(targetNodeValue_))) {
return doJSOrdinaryObject(targetNodeValue_, propertyNodeValue_, toPropertyKeyNode_, dynamicObjectLib_);
}
}
}
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] */ && targetNodeValue instanceof JSGlobalObject) {
JSGlobalObject targetNodeValue_ = (JSGlobalObject) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_1 = this.toPropertyKeyNode;
if (toPropertyKeyNode_1 != null) {
DynamicObjectLibrary dynamicObjectLib_1 = this.dynamicObjectLib;
if (dynamicObjectLib_1 != null) {
return doJSGlobalObject(targetNodeValue_, propertyNodeValue_, toPropertyKeyNode_1, dynamicObjectLib_1);
}
}
}
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] */ && targetNodeValue instanceof JSDynamicObject) {
JSDynamicObject targetNodeValue_ = (JSDynamicObject) targetNodeValue;
JSObjectData s2_ = this.jSObject_cache;
if (s2_ != null) {
{
ToArrayIndexNode toArrayIndexNode_ = this.toArrayIndexNode;
if (toArrayIndexNode_ != null) {
JSToPropertyKeyNode toPropertyKeyNode_2 = this.toPropertyKeyNode;
if (toPropertyKeyNode_2 != null) {
if ((!(JSGuards.isJSOrdinaryObject(targetNodeValue_))) && (!(JSGlobal.isJSGlobalObject(targetNodeValue_)))) {
Node node__ = (s2_);
return doJSObject(targetNodeValue_, propertyNodeValue_, node__, s2_.isArrayNode_, INLINED_J_S_OBJECT_ARRAY_PROFILE_, toArrayIndexNode_, INLINED_J_S_OBJECT_ARRAY_INDEX_PROFILE_, s2_.deleteArrayIndexNode_, s2_.jsclassProfile_, toPropertyKeyNode_2);
}
}
}
}
}
}
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] */ && targetNodeValue instanceof Symbol) {
Symbol targetNodeValue_ = (Symbol) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_3 = this.toPropertyKeyNode;
if (toPropertyKeyNode_3 != null) {
return DeletePropertyNode.doSymbol(targetNodeValue_, propertyNodeValue_, toPropertyKeyNode_3);
}
}
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] */ && targetNodeValue instanceof SafeInteger) {
SafeInteger targetNodeValue_ = (SafeInteger) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_4 = this.toPropertyKeyNode;
if (toPropertyKeyNode_4 != null) {
return DeletePropertyNode.doSafeInteger(targetNodeValue_, propertyNodeValue_, toPropertyKeyNode_4);
}
}
}
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] */ && targetNodeValue instanceof BigInt) {
BigInt targetNodeValue_ = (BigInt) targetNodeValue;
{
JSToPropertyKeyNode toPropertyKeyNode_5 = this.toPropertyKeyNode;
if (toPropertyKeyNode_5 != null) {
return DeletePropertyNode.doBigInt(targetNodeValue_, propertyNodeValue_, toPropertyKeyNode_5);
}
}
}
if ((state_0 & 0b1000000) != 0 /* is SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] */ && targetNodeValue instanceof TruffleString) {
TruffleString targetNodeValue_ = (TruffleString) targetNodeValue;
{
ToArrayIndexNode toArrayIndexNode_1 = this.toArrayIndexNode;
if (toArrayIndexNode_1 != null) {
EqualNode equalsNode__ = this.string_equalsNode_;
if (equalsNode__ != null) {
return doString(targetNodeValue_, propertyNodeValue_, toArrayIndexNode_1, equalsNode__);
}
}
}
}
}
if ((state_0 & 0b11110000000) != 0 /* is SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] || SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] || SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b10000000) != 0 /* is SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] */ && propertyNodeValue_ instanceof TruffleString) {
TruffleString propertyNodeValue__ = (TruffleString) propertyNodeValue_;
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
if ((JSGuards.isForeignObject(targetNodeValue)) && (!(interop_.hasArrayElements(targetNodeValue)))) {
return member(targetNodeValue, propertyNodeValue__, interop_);
}
}
}
}
if ((state_0 & 0b1000000000) != 0 /* is SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */ && propertyNodeValue_ instanceof Integer) {
int propertyNodeValue__ = (int) propertyNodeValue_;
{
InteropLibrary interop_1 = this.interop;
if (interop_1 != null) {
if ((JSGuards.isForeignObject(targetNodeValue)) && (interop_1.hasArrayElements(targetNodeValue))) {
return arrayElementInt(targetNodeValue, propertyNodeValue__, interop_1);
}
}
}
}
if ((state_0 & 0b10100000000) != 0 /* is SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b100000000) != 0 /* is SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] */) {
{
InteropLibrary interop_2 = this.interop;
if (interop_2 != null) {
ToArrayIndexNode toArrayIndexNode_2 = this.toArrayIndexNode;
if (toArrayIndexNode_2 != null) {
JSToPropertyKeyNode toPropertyKeyNode_6 = this.toPropertyKeyNode;
if (toPropertyKeyNode_6 != null) {
if ((JSGuards.isForeignObject(targetNodeValue))) {
return foreignObject(targetNodeValue, propertyNodeValue_, interop_2, toArrayIndexNode_2, toPropertyKeyNode_6);
}
}
}
}
}
}
if ((state_0 & 0b10000000000) != 0 /* is SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
{
JSToPropertyKeyNode toPropertyKeyNode_7 = this.toPropertyKeyNode;
if (toPropertyKeyNode_7 != null) {
if ((!(JSGuards.isTruffleObject(targetNodeValue))) && (!(JSGuards.isString(targetNodeValue)))) {
return doOther(targetNodeValue, propertyNodeValue_, toPropertyKeyNode_7);
}
}
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue, propertyNodeValue_);
}
@Override
public boolean executeBoolean(VirtualFrame frameValue) {
int state_0 = this.state_0_;
if ((state_0 & 0b10111111111) == 0 /* only-active SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */ && (state_0 != 0 /* is-not SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] && SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] && SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] && SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] && SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] && SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] && SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */)) {
return executeBoolean_int2(state_0, frameValue);
} else {
return executeBoolean_generic3(state_0, frameValue);
}
}
private boolean executeBoolean_int2(int state_0__, VirtualFrame frameValue) {
int state_0 = state_0__;
Object targetNodeValue_ = super.targetNode.execute(frameValue);
int propertyNodeValue_;
try {
propertyNodeValue_ = super.propertyNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue_, ex.getResult());
}
assert (state_0 & 0b1000000000) != 0 /* is SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */;
{
InteropLibrary interop_1 = this.interop;
if (interop_1 != null) {
if ((JSGuards.isForeignObject(targetNodeValue_)) && (interop_1.hasArrayElements(targetNodeValue_))) {
return arrayElementInt(targetNodeValue_, propertyNodeValue_, interop_1);
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue_, propertyNodeValue_);
}
private boolean executeBoolean_generic3(int state_0__, VirtualFrame frameValue) {
int state_0 = state_0__;
Object targetNodeValue_ = super.targetNode.execute(frameValue);
Object propertyNodeValue_ = super.propertyNode.execute(frameValue);
if (state_0 != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] || SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] || SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] || SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b1111111) != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] || SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] */) {
if ((state_0 & 0b1) != 0 /* is SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] */ && targetNodeValue_ instanceof JSDynamicObject) {
JSDynamicObject targetNodeValue__ = (JSDynamicObject) targetNodeValue_;
{
JSToPropertyKeyNode toPropertyKeyNode_ = this.toPropertyKeyNode;
if (toPropertyKeyNode_ != null) {
DynamicObjectLibrary dynamicObjectLib_ = this.dynamicObjectLib;
if (dynamicObjectLib_ != null) {
if ((JSGuards.isJSOrdinaryObject(targetNodeValue__))) {
return doJSOrdinaryObject(targetNodeValue__, propertyNodeValue_, toPropertyKeyNode_, dynamicObjectLib_);
}
}
}
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] */ && targetNodeValue_ instanceof JSGlobalObject) {
JSGlobalObject targetNodeValue__ = (JSGlobalObject) targetNodeValue_;
{
JSToPropertyKeyNode toPropertyKeyNode_1 = this.toPropertyKeyNode;
if (toPropertyKeyNode_1 != null) {
DynamicObjectLibrary dynamicObjectLib_1 = this.dynamicObjectLib;
if (dynamicObjectLib_1 != null) {
return doJSGlobalObject(targetNodeValue__, propertyNodeValue_, toPropertyKeyNode_1, dynamicObjectLib_1);
}
}
}
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] */ && targetNodeValue_ instanceof JSDynamicObject) {
JSDynamicObject targetNodeValue__ = (JSDynamicObject) targetNodeValue_;
JSObjectData s2_ = this.jSObject_cache;
if (s2_ != null) {
{
ToArrayIndexNode toArrayIndexNode_ = this.toArrayIndexNode;
if (toArrayIndexNode_ != null) {
JSToPropertyKeyNode toPropertyKeyNode_2 = this.toPropertyKeyNode;
if (toPropertyKeyNode_2 != null) {
if ((!(JSGuards.isJSOrdinaryObject(targetNodeValue__))) && (!(JSGlobal.isJSGlobalObject(targetNodeValue__)))) {
Node node__ = (s2_);
return doJSObject(targetNodeValue__, propertyNodeValue_, node__, s2_.isArrayNode_, INLINED_J_S_OBJECT_ARRAY_PROFILE_, toArrayIndexNode_, INLINED_J_S_OBJECT_ARRAY_INDEX_PROFILE_, s2_.deleteArrayIndexNode_, s2_.jsclassProfile_, toPropertyKeyNode_2);
}
}
}
}
}
}
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] */ && targetNodeValue_ instanceof Symbol) {
Symbol targetNodeValue__ = (Symbol) targetNodeValue_;
{
JSToPropertyKeyNode toPropertyKeyNode_3 = this.toPropertyKeyNode;
if (toPropertyKeyNode_3 != null) {
return DeletePropertyNode.doSymbol(targetNodeValue__, propertyNodeValue_, toPropertyKeyNode_3);
}
}
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] */ && targetNodeValue_ instanceof SafeInteger) {
SafeInteger targetNodeValue__ = (SafeInteger) targetNodeValue_;
{
JSToPropertyKeyNode toPropertyKeyNode_4 = this.toPropertyKeyNode;
if (toPropertyKeyNode_4 != null) {
return DeletePropertyNode.doSafeInteger(targetNodeValue__, propertyNodeValue_, toPropertyKeyNode_4);
}
}
}
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] */ && targetNodeValue_ instanceof BigInt) {
BigInt targetNodeValue__ = (BigInt) targetNodeValue_;
{
JSToPropertyKeyNode toPropertyKeyNode_5 = this.toPropertyKeyNode;
if (toPropertyKeyNode_5 != null) {
return DeletePropertyNode.doBigInt(targetNodeValue__, propertyNodeValue_, toPropertyKeyNode_5);
}
}
}
if ((state_0 & 0b1000000) != 0 /* is SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] */ && targetNodeValue_ instanceof TruffleString) {
TruffleString targetNodeValue__ = (TruffleString) targetNodeValue_;
{
ToArrayIndexNode toArrayIndexNode_1 = this.toArrayIndexNode;
if (toArrayIndexNode_1 != null) {
EqualNode equalsNode__ = this.string_equalsNode_;
if (equalsNode__ != null) {
return doString(targetNodeValue__, propertyNodeValue_, toArrayIndexNode_1, equalsNode__);
}
}
}
}
}
if ((state_0 & 0b11110000000) != 0 /* is SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] || SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] || SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b10000000) != 0 /* is SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] */ && propertyNodeValue_ instanceof TruffleString) {
TruffleString propertyNodeValue__ = (TruffleString) propertyNodeValue_;
{
InteropLibrary interop_ = this.interop;
if (interop_ != null) {
if ((JSGuards.isForeignObject(targetNodeValue_)) && (!(interop_.hasArrayElements(targetNodeValue_)))) {
return member(targetNodeValue_, propertyNodeValue__, interop_);
}
}
}
}
if ((state_0 & 0b1000000000) != 0 /* is SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */ && propertyNodeValue_ instanceof Integer) {
int propertyNodeValue__ = (int) propertyNodeValue_;
{
InteropLibrary interop_1 = this.interop;
if (interop_1 != null) {
if ((JSGuards.isForeignObject(targetNodeValue_)) && (interop_1.hasArrayElements(targetNodeValue_))) {
return arrayElementInt(targetNodeValue_, propertyNodeValue__, interop_1);
}
}
}
}
if ((state_0 & 0b10100000000) != 0 /* is SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] || SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
if ((state_0 & 0b100000000) != 0 /* is SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] */) {
{
InteropLibrary interop_2 = this.interop;
if (interop_2 != null) {
ToArrayIndexNode toArrayIndexNode_2 = this.toArrayIndexNode;
if (toArrayIndexNode_2 != null) {
JSToPropertyKeyNode toPropertyKeyNode_6 = this.toPropertyKeyNode;
if (toPropertyKeyNode_6 != null) {
if ((JSGuards.isForeignObject(targetNodeValue_))) {
return foreignObject(targetNodeValue_, propertyNodeValue_, interop_2, toArrayIndexNode_2, toPropertyKeyNode_6);
}
}
}
}
}
}
if ((state_0 & 0b10000000000) != 0 /* is SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */) {
{
JSToPropertyKeyNode toPropertyKeyNode_7 = this.toPropertyKeyNode;
if (toPropertyKeyNode_7 != null) {
if ((!(JSGuards.isTruffleObject(targetNodeValue_))) && (!(JSGuards.isString(targetNodeValue_)))) {
return doOther(targetNodeValue_, propertyNodeValue_, toPropertyKeyNode_7);
}
}
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(targetNodeValue_, propertyNodeValue_);
}
@Override
public void executeVoid(VirtualFrame frameValue) {
executeBoolean(frameValue);
return;
}
private boolean executeAndSpecialize(Object targetNodeValue, Object propertyNodeValue) {
int state_0 = this.state_0_;
if (targetNodeValue instanceof JSDynamicObject) {
JSDynamicObject targetNodeValue_ = (JSDynamicObject) targetNodeValue;
if ((JSGuards.isJSOrdinaryObject(targetNodeValue_))) {
JSToPropertyKeyNode toPropertyKeyNode_;
JSToPropertyKeyNode toPropertyKeyNode__shared = this.toPropertyKeyNode;
if (toPropertyKeyNode__shared != null) {
toPropertyKeyNode_ = toPropertyKeyNode__shared;
} else {
toPropertyKeyNode_ = this.insert((JSToPropertyKeyNode.create()));
if (toPropertyKeyNode_ == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toPropertyKeyNode == null) {
VarHandle.storeStoreFence();
this.toPropertyKeyNode = toPropertyKeyNode_;
}
DynamicObjectLibrary dynamicObjectLib_;
DynamicObjectLibrary dynamicObjectLib__shared = this.dynamicObjectLib;
if (dynamicObjectLib__shared != null) {
dynamicObjectLib_ = dynamicObjectLib__shared;
} else {
dynamicObjectLib_ = this.insert((DYNAMIC_OBJECT_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit)));
if (dynamicObjectLib_ == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.dynamicObjectLib == null) {
VarHandle.storeStoreFence();
this.dynamicObjectLib = dynamicObjectLib_;
}
state_0 = state_0 | 0b1 /* add SpecializationActive[DeletePropertyNode.doJSOrdinaryObject(JSDynamicObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] */;
this.state_0_ = state_0;
return doJSOrdinaryObject(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_, dynamicObjectLib_);
}
}
if (targetNodeValue instanceof JSGlobalObject) {
JSGlobalObject targetNodeValue_ = (JSGlobalObject) targetNodeValue;
JSToPropertyKeyNode toPropertyKeyNode_1;
JSToPropertyKeyNode toPropertyKeyNode_1_shared = this.toPropertyKeyNode;
if (toPropertyKeyNode_1_shared != null) {
toPropertyKeyNode_1 = toPropertyKeyNode_1_shared;
} else {
toPropertyKeyNode_1 = this.insert((JSToPropertyKeyNode.create()));
if (toPropertyKeyNode_1 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toPropertyKeyNode == null) {
VarHandle.storeStoreFence();
this.toPropertyKeyNode = toPropertyKeyNode_1;
}
DynamicObjectLibrary dynamicObjectLib_1;
DynamicObjectLibrary dynamicObjectLib_1_shared = this.dynamicObjectLib;
if (dynamicObjectLib_1_shared != null) {
dynamicObjectLib_1 = dynamicObjectLib_1_shared;
} else {
dynamicObjectLib_1 = this.insert((DYNAMIC_OBJECT_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit)));
if (dynamicObjectLib_1 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.dynamicObjectLib == null) {
VarHandle.storeStoreFence();
this.dynamicObjectLib = dynamicObjectLib_1;
}
state_0 = state_0 | 0b10 /* add SpecializationActive[DeletePropertyNode.doJSGlobalObject(JSGlobalObject, Object, JSToPropertyKeyNode, DynamicObjectLibrary)] */;
this.state_0_ = state_0;
return doJSGlobalObject(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_1, dynamicObjectLib_1);
}
{
Node node__ = null;
if (targetNodeValue instanceof JSDynamicObject) {
JSDynamicObject targetNodeValue_ = (JSDynamicObject) targetNodeValue;
if ((!(JSGuards.isJSOrdinaryObject(targetNodeValue_))) && (!(JSGlobal.isJSGlobalObject(targetNodeValue_)))) {
JSObjectData s2_ = this.insert(new JSObjectData());
node__ = (s2_);
IsArrayNode isArrayNode__ = s2_.insert((IsArrayNode.createIsFastArray()));
Objects.requireNonNull(isArrayNode__, "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_.isArrayNode_ = isArrayNode__;
ToArrayIndexNode toArrayIndexNode_;
ToArrayIndexNode toArrayIndexNode__shared = this.toArrayIndexNode;
if (toArrayIndexNode__shared != null) {
toArrayIndexNode_ = toArrayIndexNode__shared;
} else {
toArrayIndexNode_ = s2_.insert((ToArrayIndexNode.create()));
if (toArrayIndexNode_ == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toArrayIndexNode == null) {
this.toArrayIndexNode = toArrayIndexNode_;
}
s2_.deleteArrayIndexNode_ = s2_.insert((JSArrayDeleteIndexNode.create(strict)));
JSClassProfile jsclassProfile__ = (JSClassProfile.create());
Objects.requireNonNull(jsclassProfile__, "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_.jsclassProfile_ = jsclassProfile__;
JSToPropertyKeyNode toPropertyKeyNode_2;
JSToPropertyKeyNode toPropertyKeyNode_2_shared = this.toPropertyKeyNode;
if (toPropertyKeyNode_2_shared != null) {
toPropertyKeyNode_2 = toPropertyKeyNode_2_shared;
} else {
toPropertyKeyNode_2 = s2_.insert((JSToPropertyKeyNode.create()));
if (toPropertyKeyNode_2 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toPropertyKeyNode == null) {
this.toPropertyKeyNode = toPropertyKeyNode_2;
}
VarHandle.storeStoreFence();
this.jSObject_cache = s2_;
state_0 = state_0 | 0b100 /* add SpecializationActive[DeletePropertyNode.doJSObject(JSDynamicObject, Object, Node, IsArrayNode, InlinedConditionProfile, ToArrayIndexNode, InlinedConditionProfile, JSArrayDeleteIndexNode, JSClassProfile, JSToPropertyKeyNode)] */;
this.state_0_ = state_0;
return doJSObject(targetNodeValue_, propertyNodeValue, node__, isArrayNode__, INLINED_J_S_OBJECT_ARRAY_PROFILE_, toArrayIndexNode_, INLINED_J_S_OBJECT_ARRAY_INDEX_PROFILE_, s2_.deleteArrayIndexNode_, jsclassProfile__, toPropertyKeyNode_2);
}
}
}
if (targetNodeValue instanceof Symbol) {
Symbol targetNodeValue_ = (Symbol) targetNodeValue;
JSToPropertyKeyNode toPropertyKeyNode_3;
JSToPropertyKeyNode toPropertyKeyNode_3_shared = this.toPropertyKeyNode;
if (toPropertyKeyNode_3_shared != null) {
toPropertyKeyNode_3 = toPropertyKeyNode_3_shared;
} else {
toPropertyKeyNode_3 = this.insert((JSToPropertyKeyNode.create()));
if (toPropertyKeyNode_3 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toPropertyKeyNode == null) {
VarHandle.storeStoreFence();
this.toPropertyKeyNode = toPropertyKeyNode_3;
}
state_0 = state_0 | 0b1000 /* add SpecializationActive[DeletePropertyNode.doSymbol(Symbol, Object, JSToPropertyKeyNode)] */;
this.state_0_ = state_0;
return DeletePropertyNode.doSymbol(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_3);
}
if (targetNodeValue instanceof SafeInteger) {
SafeInteger targetNodeValue_ = (SafeInteger) targetNodeValue;
JSToPropertyKeyNode toPropertyKeyNode_4;
JSToPropertyKeyNode toPropertyKeyNode_4_shared = this.toPropertyKeyNode;
if (toPropertyKeyNode_4_shared != null) {
toPropertyKeyNode_4 = toPropertyKeyNode_4_shared;
} else {
toPropertyKeyNode_4 = this.insert((JSToPropertyKeyNode.create()));
if (toPropertyKeyNode_4 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toPropertyKeyNode == null) {
VarHandle.storeStoreFence();
this.toPropertyKeyNode = toPropertyKeyNode_4;
}
state_0 = state_0 | 0b10000 /* add SpecializationActive[DeletePropertyNode.doSafeInteger(SafeInteger, Object, JSToPropertyKeyNode)] */;
this.state_0_ = state_0;
return DeletePropertyNode.doSafeInteger(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_4);
}
if (targetNodeValue instanceof BigInt) {
BigInt targetNodeValue_ = (BigInt) targetNodeValue;
JSToPropertyKeyNode toPropertyKeyNode_5;
JSToPropertyKeyNode toPropertyKeyNode_5_shared = this.toPropertyKeyNode;
if (toPropertyKeyNode_5_shared != null) {
toPropertyKeyNode_5 = toPropertyKeyNode_5_shared;
} else {
toPropertyKeyNode_5 = this.insert((JSToPropertyKeyNode.create()));
if (toPropertyKeyNode_5 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toPropertyKeyNode == null) {
VarHandle.storeStoreFence();
this.toPropertyKeyNode = toPropertyKeyNode_5;
}
state_0 = state_0 | 0b100000 /* add SpecializationActive[DeletePropertyNode.doBigInt(BigInt, Object, JSToPropertyKeyNode)] */;
this.state_0_ = state_0;
return DeletePropertyNode.doBigInt(targetNodeValue_, propertyNodeValue, toPropertyKeyNode_5);
}
if (targetNodeValue instanceof TruffleString) {
TruffleString targetNodeValue_ = (TruffleString) targetNodeValue;
ToArrayIndexNode toArrayIndexNode_1;
ToArrayIndexNode toArrayIndexNode_1_shared = this.toArrayIndexNode;
if (toArrayIndexNode_1_shared != null) {
toArrayIndexNode_1 = toArrayIndexNode_1_shared;
} else {
toArrayIndexNode_1 = this.insert((ToArrayIndexNode.create()));
if (toArrayIndexNode_1 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toArrayIndexNode == null) {
VarHandle.storeStoreFence();
this.toArrayIndexNode = toArrayIndexNode_1;
}
EqualNode equalsNode__ = this.insert((EqualNode.create()));
Objects.requireNonNull(equalsNode__, "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.string_equalsNode_ = equalsNode__;
state_0 = state_0 | 0b1000000 /* add SpecializationActive[DeletePropertyNode.doString(TruffleString, Object, ToArrayIndexNode, EqualNode)] */;
this.state_0_ = state_0;
return doString(targetNodeValue_, propertyNodeValue, toArrayIndexNode_1, equalsNode__);
}
if (((state_0 & 0b100000000)) == 0 /* is-not SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] */ && propertyNodeValue instanceof TruffleString) {
TruffleString propertyNodeValue_ = (TruffleString) propertyNodeValue;
if ((JSGuards.isForeignObject(targetNodeValue))) {
InteropLibrary interop_;
InteropLibrary interop__shared = this.interop;
if (interop__shared != null) {
interop_ = interop__shared;
} else {
interop_ = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit)));
if (interop_ == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if ((!(interop_.hasArrayElements(targetNodeValue)))) {
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_;
}
state_0 = state_0 | 0b10000000 /* add SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)] */;
this.state_0_ = state_0;
return member(targetNodeValue, propertyNodeValue_, interop_);
}
}
}
if (((state_0 & 0b100000000)) == 0 /* is-not SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] */ && propertyNodeValue instanceof Integer) {
int propertyNodeValue_ = (int) propertyNodeValue;
if ((JSGuards.isForeignObject(targetNodeValue))) {
InteropLibrary interop_1;
InteropLibrary interop_1_shared = this.interop;
if (interop_1_shared != null) {
interop_1 = interop_1_shared;
} else {
interop_1 = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit)));
if (interop_1 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if ((interop_1.hasArrayElements(targetNodeValue))) {
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_1;
}
state_0 = state_0 | 0b1000000000 /* add SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */;
this.state_0_ = state_0;
return arrayElementInt(targetNodeValue, propertyNodeValue_, interop_1);
}
}
}
if ((JSGuards.isForeignObject(targetNodeValue))) {
InteropLibrary interop_2;
InteropLibrary interop_2_shared = this.interop;
if (interop_2_shared != null) {
interop_2 = interop_2_shared;
} else {
interop_2 = this.insert((INTEROP_LIBRARY_.createDispatched(JSConfig.InteropLibraryLimit)));
if (interop_2 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.interop == null) {
VarHandle.storeStoreFence();
this.interop = interop_2;
}
ToArrayIndexNode toArrayIndexNode_2;
ToArrayIndexNode toArrayIndexNode_2_shared = this.toArrayIndexNode;
if (toArrayIndexNode_2_shared != null) {
toArrayIndexNode_2 = toArrayIndexNode_2_shared;
} else {
toArrayIndexNode_2 = this.insert((ToArrayIndexNode.create()));
if (toArrayIndexNode_2 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toArrayIndexNode == null) {
VarHandle.storeStoreFence();
this.toArrayIndexNode = toArrayIndexNode_2;
}
JSToPropertyKeyNode toPropertyKeyNode_6;
JSToPropertyKeyNode toPropertyKeyNode_6_shared = this.toPropertyKeyNode;
if (toPropertyKeyNode_6_shared != null) {
toPropertyKeyNode_6 = toPropertyKeyNode_6_shared;
} else {
toPropertyKeyNode_6 = this.insert((JSToPropertyKeyNode.create()));
if (toPropertyKeyNode_6 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toPropertyKeyNode == null) {
VarHandle.storeStoreFence();
this.toPropertyKeyNode = toPropertyKeyNode_6;
}
state_0 = state_0 & 0xfffffd7f /* remove SpecializationActive[DeletePropertyNode.member(Object, TruffleString, InteropLibrary)], SpecializationActive[DeletePropertyNode.arrayElementInt(Object, int, InteropLibrary)] */;
state_0 = state_0 | 0b100000000 /* add SpecializationActive[DeletePropertyNode.foreignObject(Object, Object, InteropLibrary, ToArrayIndexNode, JSToPropertyKeyNode)] */;
this.state_0_ = state_0;
return foreignObject(targetNodeValue, propertyNodeValue, interop_2, toArrayIndexNode_2, toPropertyKeyNode_6);
}
if ((!(JSGuards.isTruffleObject(targetNodeValue))) && (!(JSGuards.isString(targetNodeValue)))) {
JSToPropertyKeyNode toPropertyKeyNode_7;
JSToPropertyKeyNode toPropertyKeyNode_7_shared = this.toPropertyKeyNode;
if (toPropertyKeyNode_7_shared != null) {
toPropertyKeyNode_7 = toPropertyKeyNode_7_shared;
} else {
toPropertyKeyNode_7 = this.insert((JSToPropertyKeyNode.create()));
if (toPropertyKeyNode_7 == null) {
throw new IllegalStateException("A specialization returned a default value for a cached initializer. Default values are not supported for shared cached initializers because the default value is reserved for the uninitialized state.");
}
}
if (this.toPropertyKeyNode == null) {
VarHandle.storeStoreFence();
this.toPropertyKeyNode = toPropertyKeyNode_7;
}
state_0 = state_0 | 0b10000000000 /* add SpecializationActive[DeletePropertyNode.doOther(Object, Object, JSToPropertyKeyNode)] */;
this.state_0_ = state_0;
return doOther(targetNodeValue, propertyNodeValue, toPropertyKeyNode_7);
}
throw new UnsupportedSpecializationException(this, new Node[] {super.targetNode, super.propertyNode}, targetNodeValue, propertyNodeValue);
}
@NeverDefault
public static DeletePropertyNode create(boolean strict, JavaScriptNode targetNode, JavaScriptNode propertyNode) {
return new DeletePropertyNodeGen(strict, targetNode, propertyNode);
}
@GeneratedBy(DeletePropertyNode.class)
@DenyReplace
private static final class JSObjectData extends Node implements SpecializationDataNode {
/**
* State Info:
* 0-1: InlinedCache
* Specialization: {@link DeletePropertyNode#doJSObject}
* Parameter: {@link InlinedConditionProfile} arrayProfile
* Inline method: {@link InlinedConditionProfile#inline}
* 2-3: InlinedCache
* Specialization: {@link DeletePropertyNode#doJSObject}
* Parameter: {@link InlinedConditionProfile} arrayIndexProfile
* Inline method: {@link InlinedConditionProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int jSObject_state_0_;
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doJSObject}
* Parameter: {@link IsArrayNode} isArrayNode
*/
@Child IsArrayNode isArrayNode_;
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doJSObject}
* Parameter: {@link JSArrayDeleteIndexNode} deleteArrayIndexNode
*/
@Child JSArrayDeleteIndexNode deleteArrayIndexNode_;
/**
* Source Info:
* Specialization: {@link DeletePropertyNode#doJSObject}
* Parameter: {@link JSClassProfile} jsclassProfile
*/
@CompilationFinal JSClassProfile jsclassProfile_;
JSObjectData() {
}
private static Lookup lookup_() {
return MethodHandles.lookup();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy