Class JSIdenticalNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.JavaScriptNode
com.oracle.truffle.js.nodes.binary.JSBinaryNode
com.oracle.truffle.js.nodes.binary.JSCompareNode
com.oracle.truffle.js.nodes.binary.JSIdenticalNode
- All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
- Direct Known Subclasses:
JSSameValueNode, JSStrictEqualNode
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.ChildrenNested classes/interfaces inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
com.oracle.truffle.api.instrumentation.InstrumentableNode.WrapperNode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intFields inherited from class JSBinaryNode
leftNode, rightNodeFields inherited from class JavaScriptNode
INTERMEDIATE_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJSIdenticalNode(JavaScriptNode left, JavaScriptNode right) -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaScriptNodecreate(JavaScriptNode left, JavaScriptNode right) static JSIdenticalNodestatic JSIdenticalNodestatic JSIdenticalNodestatic JavaScriptNodecreateUnoptimized(JavaScriptNode left, JavaScriptNode right) static booleanstatic booleandoBigIntDouble(BigInt a, double b) static booleandoBoolean(boolean a, boolean b) static booleandoBooleanNotBoolean(Object a, Object b) static booleandoDouble(double a, double b, int type) static booleandoDoubleBigInt(double a, BigInt b) static booleandoFallback(Object a, Object b) static booleandoForeignObject(Object a, Object b, boolean isAForeign, boolean isBForeign, int type, com.oracle.truffle.api.interop.InteropLibrary aInterop, com.oracle.truffle.api.interop.InteropLibrary bInterop) static booleandoInt(int a, int b) static booleandoJSObjectA(JSObject a, Object b) static booleandoJSObjectB(Object a, JSObject b) static booleandoLong(long a, long b) static booleanstatic booleanstatic booleandoNullNull(Object a, Object b) static booleandoStringNotString(Object a, Object b) static booleanstatic booleandoSymbolNotSymbol(Object a, Object b) static booleandoTruffleString(com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString b, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode) static booleandoTruffleStringIdentity(com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString b) static booleandoUndefinedA(Object a, Object b) static booleandoUndefinedB(Object a, Object b) abstract booleanexecuteBoolean(Object left, Object right) Methods inherited from class JSCompareNode
execute, executeBoolean, isResultAlwaysOfTypeMethods inherited from class JSBinaryNode
ensureBothSameNumericType, expressionToString, getLeft, getNodeObject, getRight, hasTag, largerThan2e32Methods inherited from class JavaScriptNode
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, convertIncomingValue, copy, copyUninitialized, createWrapper, executeDouble, executeInt, executeVoid, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, onReplace, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsMethods inherited from class JavaScriptBaseNode
getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplaceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
createProbe, findNearestNodeAt, findNearestNodeAt, findProbe, materializeInstrumentableNodes
-
Field Details
-
STRICT_EQUALITY_COMPARISON
protected static final int STRICT_EQUALITY_COMPARISON- See Also:
-
SAME_VALUE
protected static final int SAME_VALUE- See Also:
-
SAME_VALUE_ZERO
protected static final int SAME_VALUE_ZERO- See Also:
-
-
Constructor Details
-
JSIdenticalNode
-
-
Method Details
-
createStrictEqualityComparison
-
createSameValue
-
createSameValueZero
-
createUnoptimized
-
create
-
executeBoolean
-
doInt
public static boolean doInt(int a, int b) -
doDouble
public static boolean doDouble(double a, double b, int type) -
doBoolean
public static boolean doBoolean(boolean a, boolean b) -
doBigInt
-
doBigIntDouble
-
doDoubleBigInt
-
doUndefinedA
-
doUndefinedB
-
doJSObjectA
-
doJSObjectB
-
doNullNull
-
doNullA
-
doNullB
-
doTruffleStringIdentity
public static boolean doTruffleStringIdentity(com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString b) -
doTruffleString
public static boolean doTruffleString(com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString b, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode) -
doSymbol
-
doBooleanNotBoolean
-
doSymbolNotSymbol
-
doStringNotString
-
doLong
public static boolean doLong(long a, long b) -
doForeignObject
-
doFallback
-