com.oracle.truffle.js.nodes.binary.JSBitwiseAndNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.js.nodes.binary;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.NeverDefault;
import com.oracle.truffle.api.dsl.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.nodes.DenyReplace;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.UnexpectedResultException;
import com.oracle.truffle.api.profiles.InlinedBranchProfile;
import com.oracle.truffle.js.nodes.JSTypes;
import com.oracle.truffle.js.nodes.JSTypesGen;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import com.oracle.truffle.js.nodes.cast.JSToInt32Node;
import com.oracle.truffle.js.nodes.cast.JSToNumericNode;
import com.oracle.truffle.js.runtime.BigInt;
import com.oracle.truffle.js.runtime.SafeInteger;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.invoke.MethodHandles.Lookup;
import java.util.Objects;
/**
* Debug Info:
* Specialization {@link JSBitwiseAndNode#doInteger}
* Activation probability: 0.21250
* With/without class size: 6/0 bytes
* Specialization {@link JSBitwiseAndNode#doSafeIntegerInt}
* Activation probability: 0.18750
* With/without class size: 6/0 bytes
* Specialization {@link JSBitwiseAndNode#doIntSafeInteger}
* Activation probability: 0.16250
* With/without class size: 5/0 bytes
* Specialization {@link JSBitwiseAndNode#doSafeInteger}
* Activation probability: 0.13750
* With/without class size: 5/0 bytes
* Specialization {@link JSBitwiseAndNode#doDouble}
* Activation probability: 0.11250
* With/without class size: 6/8 bytes
* Specialization {@link JSBitwiseAndNode#doBigInt}
* Activation probability: 0.08750
* With/without class size: 5/0 bytes
* Specialization {@link JSBitwiseAndNode#doOverloaded}
* Activation probability: 0.06250
* With/without class size: 5/4 bytes
* Specialization {@link JSBitwiseAndNode#doGeneric}
* Activation probability: 0.03750
* With/without class size: 5/13 bytes
*
*/
@GeneratedBy(JSBitwiseAndNode.class)
@SuppressWarnings("javadoc")
public final class JSBitwiseAndNodeGen extends JSBitwiseAndNode {
private static final StateField GENERIC__J_S_BITWISE_AND_NODE_GENERIC_STATE_0_UPDATER = StateField.create(GenericData.lookup_(), "generic_state_0_");
/**
* Source Info:
* Specialization: {@link JSBitwiseAndNode#doGeneric}
* Parameter: {@link InlinedBranchProfile} mixedNumericTypes
* Inline method: {@link InlinedBranchProfile#inline}
*/
private static final InlinedBranchProfile INLINED_GENERIC_MIXED_NUMERIC_TYPES_ = InlinedBranchProfile.inline(InlineTarget.create(InlinedBranchProfile.class, GENERIC__J_S_BITWISE_AND_NODE_GENERIC_STATE_0_UPDATER.subUpdater(0, 1)));
/**
* State Info:
* 0: SpecializationActive {@link JSBitwiseAndNode#doInteger}
* 1: SpecializationActive {@link JSBitwiseAndNode#doGeneric}
* 2: SpecializationActive {@link JSBitwiseAndNode#doSafeIntegerInt}
* 3: SpecializationActive {@link JSBitwiseAndNode#doIntSafeInteger}
* 4: SpecializationActive {@link JSBitwiseAndNode#doSafeInteger}
* 5: SpecializationActive {@link JSBitwiseAndNode#doDouble}
* 6: SpecializationActive {@link JSBitwiseAndNode#doBigInt}
* 7: SpecializationActive {@link JSBitwiseAndNode#doOverloaded}
* 8-10: ImplicitCast[type=double, index=0]
* 11-13: ImplicitCast[type=double, index=1]
*
*/
@CompilationFinal private int state_0_;
@Child private DoubleData double_cache;
/**
* Source Info:
* Specialization: {@link JSBitwiseAndNode#doOverloaded}
* Parameter: {@link JSOverloadedBinaryNode} overloadedOperatorNode
*/
@Child private JSOverloadedBinaryNode overloaded_overloadedOperatorNode_;
@Child private GenericData generic_cache;
private JSBitwiseAndNodeGen(JavaScriptNode left, JavaScriptNode right) {
super(left, right);
}
@Override
public Object executeObject(Object leftNodeValue, Object rightNodeValue) {
int state_0 = this.state_0_;
if ((state_0 & 0b11111111) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] || SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] || SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] || SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] || SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] || SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) {
if ((state_0 & 0b101) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] || SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */ && rightNodeValue instanceof Integer) {
int rightNodeValue_ = (int) rightNodeValue;
if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] */ && leftNodeValue instanceof Integer) {
int leftNodeValue_ = (int) leftNodeValue;
return doInteger(leftNodeValue_, rightNodeValue_);
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */ && leftNodeValue instanceof SafeInteger) {
SafeInteger leftNodeValue_ = (SafeInteger) leftNodeValue;
return doSafeIntegerInt(leftNodeValue_, rightNodeValue_);
}
}
if ((state_0 & 0b11000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] */ && rightNodeValue instanceof SafeInteger) {
SafeInteger rightNodeValue_ = (SafeInteger) rightNodeValue;
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] */ && leftNodeValue instanceof Integer) {
int leftNodeValue_ = (int) leftNodeValue;
return doIntSafeInteger(leftNodeValue_, rightNodeValue_);
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] */ && leftNodeValue instanceof SafeInteger) {
SafeInteger leftNodeValue_ = (SafeInteger) leftNodeValue;
return doSafeInteger(leftNodeValue_, rightNodeValue_);
}
}
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */ && JSTypesGen.isImplicitDouble((state_0 & 0b11100000000) >>> 8 /* get-int ImplicitCast[type=double, index=0] */, leftNodeValue)) {
double leftNodeValue_ = JSTypesGen.asImplicitDouble((state_0 & 0b11100000000) >>> 8 /* get-int ImplicitCast[type=double, index=0] */, leftNodeValue);
if (JSTypesGen.isImplicitDouble((state_0 & 0b11100000000000) >>> 11 /* get-int ImplicitCast[type=double, index=1] */, rightNodeValue)) {
double rightNodeValue_ = JSTypesGen.asImplicitDouble((state_0 & 0b11100000000000) >>> 11 /* get-int ImplicitCast[type=double, index=1] */, rightNodeValue);
DoubleData s4_ = this.double_cache;
if (s4_ != null) {
return doDouble(leftNodeValue_, rightNodeValue_, s4_.leftInt32_, s4_.rightInt32_);
}
}
}
if ((state_0 & 0b1000000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] */ && leftNodeValue instanceof BigInt) {
BigInt leftNodeValue_ = (BigInt) leftNodeValue;
if (rightNodeValue instanceof BigInt) {
BigInt rightNodeValue_ = (BigInt) rightNodeValue;
return doBigInt(leftNodeValue_, rightNodeValue_);
}
}
if ((state_0 & 0b10000010) != 0 /* is SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] || SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) {
if ((state_0 & 0b10000000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] */) {
{
JSOverloadedBinaryNode overloadedOperatorNode__ = this.overloaded_overloadedOperatorNode_;
if (overloadedOperatorNode__ != null) {
if ((hasOverloadedOperators(leftNodeValue) || hasOverloadedOperators(rightNodeValue))) {
return doOverloaded(leftNodeValue, rightNodeValue, overloadedOperatorNode__);
}
}
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) {
GenericData s7_ = this.generic_cache;
if (s7_ != null) {
if ((!(hasOverloadedOperators(leftNodeValue))) && (!(hasOverloadedOperators(rightNodeValue)))) {
Node node__ = (s7_);
return JSBitwiseAndNode.doGeneric(leftNodeValue, rightNodeValue, node__, s7_.leftNumeric_, s7_.rightNumeric_, s7_.and_, INLINED_GENERIC_MIXED_NUMERIC_TYPES_);
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(leftNodeValue, rightNodeValue);
}
@Override
public Object execute(VirtualFrame frameValue) {
int state_0 = this.state_0_;
if ((state_0 & 0b11111110) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
return execute_int_int0(state_0, frameValue);
} else if ((state_0 & 0b11011111) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
return execute_double_double1(state_0, frameValue);
} else if ((state_0 & 0b11111011) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
return execute_int2(state_0, frameValue);
} else if ((state_0 & 0b11110111) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
return execute_int3(state_0, frameValue);
} else {
return execute_generic4(state_0, frameValue);
}
}
private Object execute_int_int0(int state_0__, VirtualFrame frameValue) {
int state_0 = state_0__;
int leftNodeValue_;
try {
leftNodeValue_ = super.leftNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
Object rightNodeValue = super.rightNode.execute(frameValue);
return executeAndSpecialize(ex.getResult(), rightNodeValue);
}
int rightNodeValue_;
try {
rightNodeValue_ = super.rightNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(leftNodeValue_, ex.getResult());
}
assert (state_0 & 0b1) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] */;
return doInteger(leftNodeValue_, rightNodeValue_);
}
private Object execute_double_double1(int state_0__, VirtualFrame frameValue) {
int state_0 = state_0__;
int leftNodeValue_int = 0;
double leftNodeValue_;
try {
if ((state_0 & 0b11000000000) == 0 /* only-active ImplicitCast[type=double, index=0] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
leftNodeValue_ = super.leftNode.executeDouble(frameValue);
} else if ((state_0 & 0b10100000000) == 0 /* only-active ImplicitCast[type=double, index=0] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
leftNodeValue_int = super.leftNode.executeInt(frameValue);
leftNodeValue_ = JSTypes.intToDouble(leftNodeValue_int);
} else {
Object leftNodeValue__ = super.leftNode.execute(frameValue);
leftNodeValue_ = JSTypesGen.expectImplicitDouble((state_0 & 0b11100000000) >>> 8 /* get-int ImplicitCast[type=double, index=0] */, leftNodeValue__);
}
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
Object rightNodeValue = super.rightNode.execute(frameValue);
return executeAndSpecialize(ex.getResult(), rightNodeValue);
}
int rightNodeValue_int = 0;
double rightNodeValue_;
try {
if ((state_0 & 0b11000000000000) == 0 /* only-active ImplicitCast[type=double, index=1] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
rightNodeValue_ = super.rightNode.executeDouble(frameValue);
} else if ((state_0 & 0b10100000000000) == 0 /* only-active ImplicitCast[type=double, index=1] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
rightNodeValue_int = super.rightNode.executeInt(frameValue);
rightNodeValue_ = JSTypes.intToDouble(rightNodeValue_int);
} else {
Object rightNodeValue__ = super.rightNode.execute(frameValue);
rightNodeValue_ = JSTypesGen.expectImplicitDouble((state_0 & 0b11100000000000) >>> 11 /* get-int ImplicitCast[type=double, index=1] */, rightNodeValue__);
}
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(((state_0 & 0b10100000000) == 0 /* only-active ImplicitCast[type=double, index=0] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) ? (Object) leftNodeValue_int : (Object) leftNodeValue_), ex.getResult());
}
assert (state_0 & 0b100000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */;
DoubleData s4_ = this.double_cache;
if (s4_ != null) {
return doDouble(leftNodeValue_, rightNodeValue_, s4_.leftInt32_, s4_.rightInt32_);
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(((state_0 & 0b10100000000) == 0 /* only-active ImplicitCast[type=double, index=0] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) ? (Object) leftNodeValue_int : (Object) leftNodeValue_), ((state_0 & 0b10100000000000) == 0 /* only-active ImplicitCast[type=double, index=1] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) ? (Object) rightNodeValue_int : (Object) rightNodeValue_));
}
private Object execute_int2(int state_0__, VirtualFrame frameValue) {
int state_0 = state_0__;
Object leftNodeValue_ = super.leftNode.execute(frameValue);
int rightNodeValue_;
try {
rightNodeValue_ = super.rightNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(leftNodeValue_, ex.getResult());
}
assert (state_0 & 0b100) != 0 /* is SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */;
if (leftNodeValue_ instanceof SafeInteger) {
SafeInteger leftNodeValue__ = (SafeInteger) leftNodeValue_;
return doSafeIntegerInt(leftNodeValue__, rightNodeValue_);
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(leftNodeValue_, rightNodeValue_);
}
private Object execute_int3(int state_0__, VirtualFrame frameValue) {
int state_0 = state_0__;
int leftNodeValue_;
try {
leftNodeValue_ = super.leftNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
Object rightNodeValue = super.rightNode.execute(frameValue);
return executeAndSpecialize(ex.getResult(), rightNodeValue);
}
Object rightNodeValue_ = super.rightNode.execute(frameValue);
assert (state_0 & 0b1000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] */;
if (rightNodeValue_ instanceof SafeInteger) {
SafeInteger rightNodeValue__ = (SafeInteger) rightNodeValue_;
return doIntSafeInteger(leftNodeValue_, rightNodeValue__);
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(leftNodeValue_, rightNodeValue_);
}
private Object execute_generic4(int state_0__, VirtualFrame frameValue) {
int state_0 = state_0__;
Object leftNodeValue_ = super.leftNode.execute(frameValue);
Object rightNodeValue_ = super.rightNode.execute(frameValue);
if ((state_0 & 0b11111111) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] || SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] || SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] || SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] || SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] || SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) {
if ((state_0 & 0b101) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] || SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */ && rightNodeValue_ instanceof Integer) {
int rightNodeValue__ = (int) rightNodeValue_;
if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] */ && leftNodeValue_ instanceof Integer) {
int leftNodeValue__ = (int) leftNodeValue_;
return doInteger(leftNodeValue__, rightNodeValue__);
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */ && leftNodeValue_ instanceof SafeInteger) {
SafeInteger leftNodeValue__ = (SafeInteger) leftNodeValue_;
return doSafeIntegerInt(leftNodeValue__, rightNodeValue__);
}
}
if ((state_0 & 0b11000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] */ && rightNodeValue_ instanceof SafeInteger) {
SafeInteger rightNodeValue__ = (SafeInteger) rightNodeValue_;
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] */ && leftNodeValue_ instanceof Integer) {
int leftNodeValue__ = (int) leftNodeValue_;
return doIntSafeInteger(leftNodeValue__, rightNodeValue__);
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] */ && leftNodeValue_ instanceof SafeInteger) {
SafeInteger leftNodeValue__ = (SafeInteger) leftNodeValue_;
return doSafeInteger(leftNodeValue__, rightNodeValue__);
}
}
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */ && JSTypesGen.isImplicitDouble((state_0 & 0b11100000000) >>> 8 /* get-int ImplicitCast[type=double, index=0] */, leftNodeValue_)) {
double leftNodeValue__ = JSTypesGen.asImplicitDouble((state_0 & 0b11100000000) >>> 8 /* get-int ImplicitCast[type=double, index=0] */, leftNodeValue_);
if (JSTypesGen.isImplicitDouble((state_0 & 0b11100000000000) >>> 11 /* get-int ImplicitCast[type=double, index=1] */, rightNodeValue_)) {
double rightNodeValue__ = JSTypesGen.asImplicitDouble((state_0 & 0b11100000000000) >>> 11 /* get-int ImplicitCast[type=double, index=1] */, rightNodeValue_);
DoubleData s4_ = this.double_cache;
if (s4_ != null) {
return doDouble(leftNodeValue__, rightNodeValue__, s4_.leftInt32_, s4_.rightInt32_);
}
}
}
if ((state_0 & 0b1000000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] */ && leftNodeValue_ instanceof BigInt) {
BigInt leftNodeValue__ = (BigInt) leftNodeValue_;
if (rightNodeValue_ instanceof BigInt) {
BigInt rightNodeValue__ = (BigInt) rightNodeValue_;
return doBigInt(leftNodeValue__, rightNodeValue__);
}
}
if ((state_0 & 0b10000010) != 0 /* is SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] || SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) {
if ((state_0 & 0b10000000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] */) {
{
JSOverloadedBinaryNode overloadedOperatorNode__ = this.overloaded_overloadedOperatorNode_;
if (overloadedOperatorNode__ != null) {
if ((hasOverloadedOperators(leftNodeValue_) || hasOverloadedOperators(rightNodeValue_))) {
return doOverloaded(leftNodeValue_, rightNodeValue_, overloadedOperatorNode__);
}
}
}
}
if ((state_0 & 0b10) != 0 /* is SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) {
GenericData s7_ = this.generic_cache;
if (s7_ != null) {
if ((!(hasOverloadedOperators(leftNodeValue_))) && (!(hasOverloadedOperators(rightNodeValue_)))) {
Node node__ = (s7_);
return JSBitwiseAndNode.doGeneric(leftNodeValue_, rightNodeValue_, node__, s7_.leftNumeric_, s7_.rightNumeric_, s7_.and_, INLINED_GENERIC_MIXED_NUMERIC_TYPES_);
}
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return executeAndSpecialize(leftNodeValue_, rightNodeValue_);
}
@Override
public int executeInt(VirtualFrame frameValue) throws UnexpectedResultException {
int state_0 = this.state_0_;
if ((state_0 & 0b10000010) != 0 /* is SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] || SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) {
return JSTypesGen.expectInteger(execute(frameValue));
}
if ((state_0 & 0b111100) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] */ && ((state_0 & 0b111101) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */)) {
return executeInt_int_int5(state_0, frameValue);
} else if ((state_0 & 0b11101) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */ && ((state_0 & 0b111101) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */)) {
return executeInt_double_double6(state_0, frameValue);
} else if ((state_0 & 0b111001) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */ && ((state_0 & 0b111101) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */)) {
return executeInt_int7(state_0, frameValue);
} else if ((state_0 & 0b110101) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] */ && ((state_0 & 0b111101) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */)) {
return executeInt_int8(state_0, frameValue);
} else {
return executeInt_generic9(state_0, frameValue);
}
}
private int executeInt_int_int5(int state_0__, VirtualFrame frameValue) throws UnexpectedResultException {
int state_0 = state_0__;
int leftNodeValue_;
try {
leftNodeValue_ = super.leftNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
Object rightNodeValue = super.rightNode.execute(frameValue);
return JSTypesGen.expectInteger(executeAndSpecialize(ex.getResult(), rightNodeValue));
}
int rightNodeValue_;
try {
rightNodeValue_ = super.rightNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return JSTypesGen.expectInteger(executeAndSpecialize(leftNodeValue_, ex.getResult()));
}
assert (state_0 & 0b1) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] */;
return doInteger(leftNodeValue_, rightNodeValue_);
}
private int executeInt_double_double6(int state_0__, VirtualFrame frameValue) throws UnexpectedResultException {
int state_0 = state_0__;
int leftNodeValue_int = 0;
double leftNodeValue_;
try {
if ((state_0 & 0b11000000000) == 0 /* only-active ImplicitCast[type=double, index=0] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
leftNodeValue_ = super.leftNode.executeDouble(frameValue);
} else if ((state_0 & 0b10100000000) == 0 /* only-active ImplicitCast[type=double, index=0] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
leftNodeValue_int = super.leftNode.executeInt(frameValue);
leftNodeValue_ = JSTypes.intToDouble(leftNodeValue_int);
} else {
Object leftNodeValue__ = super.leftNode.execute(frameValue);
leftNodeValue_ = JSTypesGen.expectImplicitDouble((state_0 & 0b11100000000) >>> 8 /* get-int ImplicitCast[type=double, index=0] */, leftNodeValue__);
}
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
Object rightNodeValue = super.rightNode.execute(frameValue);
return JSTypesGen.expectInteger(executeAndSpecialize(ex.getResult(), rightNodeValue));
}
int rightNodeValue_int = 0;
double rightNodeValue_;
try {
if ((state_0 & 0b11000000000000) == 0 /* only-active ImplicitCast[type=double, index=1] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
rightNodeValue_ = super.rightNode.executeDouble(frameValue);
} else if ((state_0 & 0b10100000000000) == 0 /* only-active ImplicitCast[type=double, index=1] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
rightNodeValue_int = super.rightNode.executeInt(frameValue);
rightNodeValue_ = JSTypes.intToDouble(rightNodeValue_int);
} else {
Object rightNodeValue__ = super.rightNode.execute(frameValue);
rightNodeValue_ = JSTypesGen.expectImplicitDouble((state_0 & 0b11100000000000) >>> 11 /* get-int ImplicitCast[type=double, index=1] */, rightNodeValue__);
}
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return JSTypesGen.expectInteger(executeAndSpecialize(((state_0 & 0b10100000000) == 0 /* only-active ImplicitCast[type=double, index=0] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) ? (Object) leftNodeValue_int : (Object) leftNodeValue_), ex.getResult()));
}
assert (state_0 & 0b100000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */;
DoubleData s4_ = this.double_cache;
if (s4_ != null) {
return doDouble(leftNodeValue_, rightNodeValue_, s4_.leftInt32_, s4_.rightInt32_);
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return JSTypesGen.expectInteger(executeAndSpecialize(((state_0 & 0b10100000000) == 0 /* only-active ImplicitCast[type=double, index=0] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) ? (Object) leftNodeValue_int : (Object) leftNodeValue_), ((state_0 & 0b10100000000000) == 0 /* only-active ImplicitCast[type=double, index=1] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) ? (Object) rightNodeValue_int : (Object) rightNodeValue_)));
}
private int executeInt_int7(int state_0__, VirtualFrame frameValue) throws UnexpectedResultException {
int state_0 = state_0__;
Object leftNodeValue_ = super.leftNode.execute(frameValue);
int rightNodeValue_;
try {
rightNodeValue_ = super.rightNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return JSTypesGen.expectInteger(executeAndSpecialize(leftNodeValue_, ex.getResult()));
}
assert (state_0 & 0b100) != 0 /* is SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */;
if (leftNodeValue_ instanceof SafeInteger) {
SafeInteger leftNodeValue__ = (SafeInteger) leftNodeValue_;
return doSafeIntegerInt(leftNodeValue__, rightNodeValue_);
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return JSTypesGen.expectInteger(executeAndSpecialize(leftNodeValue_, rightNodeValue_));
}
private int executeInt_int8(int state_0__, VirtualFrame frameValue) throws UnexpectedResultException {
int state_0 = state_0__;
int leftNodeValue_;
try {
leftNodeValue_ = super.leftNode.executeInt(frameValue);
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
Object rightNodeValue = super.rightNode.execute(frameValue);
return JSTypesGen.expectInteger(executeAndSpecialize(ex.getResult(), rightNodeValue));
}
Object rightNodeValue_ = super.rightNode.execute(frameValue);
assert (state_0 & 0b1000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] */;
if (rightNodeValue_ instanceof SafeInteger) {
SafeInteger rightNodeValue__ = (SafeInteger) rightNodeValue_;
return doIntSafeInteger(leftNodeValue_, rightNodeValue__);
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return JSTypesGen.expectInteger(executeAndSpecialize(leftNodeValue_, rightNodeValue_));
}
private int executeInt_generic9(int state_0__, VirtualFrame frameValue) throws UnexpectedResultException {
int state_0 = state_0__;
Object leftNodeValue_ = super.leftNode.execute(frameValue);
Object rightNodeValue_ = super.rightNode.execute(frameValue);
if ((state_0 & 0b111101) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] || SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] || SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */) {
if ((state_0 & 0b101) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] || SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */ && rightNodeValue_ instanceof Integer) {
int rightNodeValue__ = (int) rightNodeValue_;
if ((state_0 & 0b1) != 0 /* is SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] */ && leftNodeValue_ instanceof Integer) {
int leftNodeValue__ = (int) leftNodeValue_;
return doInteger(leftNodeValue__, rightNodeValue__);
}
if ((state_0 & 0b100) != 0 /* is SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */ && leftNodeValue_ instanceof SafeInteger) {
SafeInteger leftNodeValue__ = (SafeInteger) leftNodeValue_;
return doSafeIntegerInt(leftNodeValue__, rightNodeValue__);
}
}
if ((state_0 & 0b11000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] || SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] */ && rightNodeValue_ instanceof SafeInteger) {
SafeInteger rightNodeValue__ = (SafeInteger) rightNodeValue_;
if ((state_0 & 0b1000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] */ && leftNodeValue_ instanceof Integer) {
int leftNodeValue__ = (int) leftNodeValue_;
return doIntSafeInteger(leftNodeValue__, rightNodeValue__);
}
if ((state_0 & 0b10000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] */ && leftNodeValue_ instanceof SafeInteger) {
SafeInteger leftNodeValue__ = (SafeInteger) leftNodeValue_;
return doSafeInteger(leftNodeValue__, rightNodeValue__);
}
}
if ((state_0 & 0b100000) != 0 /* is SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */ && JSTypesGen.isImplicitDouble((state_0 & 0b11100000000) >>> 8 /* get-int ImplicitCast[type=double, index=0] */, leftNodeValue_)) {
double leftNodeValue__ = JSTypesGen.asImplicitDouble((state_0 & 0b11100000000) >>> 8 /* get-int ImplicitCast[type=double, index=0] */, leftNodeValue_);
if (JSTypesGen.isImplicitDouble((state_0 & 0b11100000000000) >>> 11 /* get-int ImplicitCast[type=double, index=1] */, rightNodeValue_)) {
double rightNodeValue__ = JSTypesGen.asImplicitDouble((state_0 & 0b11100000000000) >>> 11 /* get-int ImplicitCast[type=double, index=1] */, rightNodeValue_);
DoubleData s4_ = this.double_cache;
if (s4_ != null) {
return doDouble(leftNodeValue__, rightNodeValue__, s4_.leftInt32_, s4_.rightInt32_);
}
}
}
}
CompilerDirectives.transferToInterpreterAndInvalidate();
return JSTypesGen.expectInteger(executeAndSpecialize(leftNodeValue_, rightNodeValue_));
}
@Override
public void executeVoid(VirtualFrame frameValue) {
int state_0 = this.state_0_;
try {
if ((state_0 & 0b11000010) == 0 /* only-active SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */ && ((state_0 & 0b11111111) != 0 /* is-not SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] && SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] && SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] && SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] && SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] && SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] && SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */)) {
executeInt(frameValue);
return;
}
execute(frameValue);
return;
} catch (UnexpectedResultException ex) {
CompilerDirectives.transferToInterpreterAndInvalidate();
return;
}
}
private Object executeAndSpecialize(Object leftNodeValue, Object rightNodeValue) {
int state_0 = this.state_0_;
if (rightNodeValue instanceof Integer) {
int rightNodeValue_ = (int) rightNodeValue;
if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */ && leftNodeValue instanceof Integer) {
int leftNodeValue_ = (int) leftNodeValue;
state_0 = state_0 | 0b1 /* add SpecializationActive[JSBitwiseAndNode.doInteger(int, int)] */;
this.state_0_ = state_0;
return doInteger(leftNodeValue_, rightNodeValue_);
}
if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */ && leftNodeValue instanceof SafeInteger) {
SafeInteger leftNodeValue_ = (SafeInteger) leftNodeValue;
state_0 = state_0 | 0b100 /* add SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)] */;
this.state_0_ = state_0;
return doSafeIntegerInt(leftNodeValue_, rightNodeValue_);
}
}
if (rightNodeValue instanceof SafeInteger) {
SafeInteger rightNodeValue_ = (SafeInteger) rightNodeValue;
if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */ && leftNodeValue instanceof Integer) {
int leftNodeValue_ = (int) leftNodeValue;
state_0 = state_0 | 0b1000 /* add SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)] */;
this.state_0_ = state_0;
return doIntSafeInteger(leftNodeValue_, rightNodeValue_);
}
if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */ && leftNodeValue instanceof SafeInteger) {
SafeInteger leftNodeValue_ = (SafeInteger) leftNodeValue;
state_0 = state_0 | 0b10000 /* add SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)] */;
this.state_0_ = state_0;
return doSafeInteger(leftNodeValue_, rightNodeValue_);
}
}
if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */) {
int doubleCast0;
if ((doubleCast0 = JSTypesGen.specializeImplicitDouble(leftNodeValue)) != 0) {
double leftNodeValue_ = JSTypesGen.asImplicitDouble(doubleCast0, leftNodeValue);
int doubleCast1;
if ((doubleCast1 = JSTypesGen.specializeImplicitDouble(rightNodeValue)) != 0) {
double rightNodeValue_ = JSTypesGen.asImplicitDouble(doubleCast1, rightNodeValue);
DoubleData s4_ = this.insert(new DoubleData());
JSToInt32Node leftInt32__ = s4_.insert((JSToInt32Node.create()));
Objects.requireNonNull(leftInt32__, "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_.leftInt32_ = leftInt32__;
JSToInt32Node rightInt32__ = s4_.insert((JSToInt32Node.create()));
Objects.requireNonNull(rightInt32__, "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_.rightInt32_ = rightInt32__;
VarHandle.storeStoreFence();
this.double_cache = s4_;
state_0 = (state_0 | (doubleCast0 << 8) /* set-int ImplicitCast[type=double, index=0] */);
state_0 = (state_0 | (doubleCast1 << 11) /* set-int ImplicitCast[type=double, index=1] */);
state_0 = state_0 | 0b100000 /* add SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)] */;
this.state_0_ = state_0;
return doDouble(leftNodeValue_, rightNodeValue_, leftInt32__, rightInt32__);
}
}
}
if (((state_0 & 0b10)) == 0 /* is-not SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */ && leftNodeValue instanceof BigInt) {
BigInt leftNodeValue_ = (BigInt) leftNodeValue;
if (rightNodeValue instanceof BigInt) {
BigInt rightNodeValue_ = (BigInt) rightNodeValue;
state_0 = state_0 | 0b1000000 /* add SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] */;
this.state_0_ = state_0;
return doBigInt(leftNodeValue_, rightNodeValue_);
}
}
if ((hasOverloadedOperators(leftNodeValue) || hasOverloadedOperators(rightNodeValue))) {
JSOverloadedBinaryNode overloadedOperatorNode__ = this.insert((JSOverloadedBinaryNode.createNumeric(getOverloadedOperatorName())));
Objects.requireNonNull(overloadedOperatorNode__, "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.overloaded_overloadedOperatorNode_ = overloadedOperatorNode__;
state_0 = state_0 | 0b10000000 /* add SpecializationActive[JSBitwiseAndNode.doOverloaded(Object, Object, JSOverloadedBinaryNode)] */;
this.state_0_ = state_0;
return doOverloaded(leftNodeValue, rightNodeValue, overloadedOperatorNode__);
}
{
Node node__ = null;
if ((!(hasOverloadedOperators(leftNodeValue))) && (!(hasOverloadedOperators(rightNodeValue)))) {
GenericData s7_ = this.insert(new GenericData());
node__ = (s7_);
JSToNumericNode leftNumeric__ = s7_.insert((JSToNumericNode.create()));
Objects.requireNonNull(leftNumeric__, "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.");
s7_.leftNumeric_ = leftNumeric__;
JSToNumericNode rightNumeric__ = s7_.insert((JSToNumericNode.create()));
Objects.requireNonNull(rightNumeric__, "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.");
s7_.rightNumeric_ = rightNumeric__;
s7_.and_ = s7_.insert((JSBitwiseAndNode.createInner()));
VarHandle.storeStoreFence();
this.generic_cache = s7_;
this.double_cache = null;
state_0 = state_0 & 0xffffff82 /* remove SpecializationActive[JSBitwiseAndNode.doInteger(int, int)], SpecializationActive[JSBitwiseAndNode.doSafeIntegerInt(SafeInteger, int)], SpecializationActive[JSBitwiseAndNode.doIntSafeInteger(int, SafeInteger)], SpecializationActive[JSBitwiseAndNode.doSafeInteger(SafeInteger, SafeInteger)], SpecializationActive[JSBitwiseAndNode.doDouble(double, double, JSToInt32Node, JSToInt32Node)], SpecializationActive[JSBitwiseAndNode.doBigInt(BigInt, BigInt)] */;
state_0 = state_0 | 0b10 /* add SpecializationActive[JSBitwiseAndNode.doGeneric(Object, Object, Node, JSToNumericNode, JSToNumericNode, JSBitwiseAndNode, InlinedBranchProfile)] */;
this.state_0_ = state_0;
return JSBitwiseAndNode.doGeneric(leftNodeValue, rightNodeValue, node__, leftNumeric__, rightNumeric__, s7_.and_, INLINED_GENERIC_MIXED_NUMERIC_TYPES_);
}
}
throw new UnsupportedSpecializationException(this, new Node[] {super.leftNode, super.rightNode}, leftNodeValue, rightNodeValue);
}
@NeverDefault
public static JSBitwiseAndNode create(JavaScriptNode left, JavaScriptNode right) {
return new JSBitwiseAndNodeGen(left, right);
}
@GeneratedBy(JSBitwiseAndNode.class)
@DenyReplace
private static final class DoubleData extends Node implements SpecializationDataNode {
/**
* Source Info:
* Specialization: {@link JSBitwiseAndNode#doDouble}
* Parameter: {@link JSToInt32Node} leftInt32
*/
@Child JSToInt32Node leftInt32_;
/**
* Source Info:
* Specialization: {@link JSBitwiseAndNode#doDouble}
* Parameter: {@link JSToInt32Node} rightInt32
*/
@Child JSToInt32Node rightInt32_;
DoubleData() {
}
}
@GeneratedBy(JSBitwiseAndNode.class)
@DenyReplace
private static final class GenericData extends Node implements SpecializationDataNode {
/**
* State Info:
* 0: InlinedCache
* Specialization: {@link JSBitwiseAndNode#doGeneric}
* Parameter: {@link InlinedBranchProfile} mixedNumericTypes
* Inline method: {@link InlinedBranchProfile#inline}
*
*/
@CompilationFinal @UnsafeAccessedField private int generic_state_0_;
/**
* Source Info:
* Specialization: {@link JSBitwiseAndNode#doGeneric}
* Parameter: {@link JSToNumericNode} leftNumeric
*/
@Child JSToNumericNode leftNumeric_;
/**
* Source Info:
* Specialization: {@link JSBitwiseAndNode#doGeneric}
* Parameter: {@link JSToNumericNode} rightNumeric
*/
@Child JSToNumericNode rightNumeric_;
/**
* Source Info:
* Specialization: {@link JSBitwiseAndNode#doGeneric}
* Parameter: {@link JSBitwiseAndNode} and
*/
@Child JSBitwiseAndNode and_;
GenericData() {
}
private static Lookup lookup_() {
return MethodHandles.lookup();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy