public abstract class SLEqualNode extends SLBinaryNode
== operator of SL is defined on all types. Therefore, we need a
implementation that can handle all possible types including
interop types.
Note that we do not need the analogous != operator, because we can just
negate the == operator.
| Constructor and Description |
|---|
SLEqualNode() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doBigNumber(SLBigNumber left,
SLBigNumber right) |
protected boolean |
doBoolean(boolean left,
boolean right) |
protected boolean |
doFunction(SLFunction left,
Object right) |
boolean |
doGeneric(Object left,
Object right,
com.oracle.truffle.api.interop.InteropLibrary leftInterop,
com.oracle.truffle.api.interop.InteropLibrary rightInterop) |
protected boolean |
doLong(long left,
long right) |
protected boolean |
doNull(SLNull left,
SLNull right) |
protected boolean |
doString(String left,
String right) |
protected boolean |
doTruffleString(com.oracle.truffle.api.strings.TruffleString left,
com.oracle.truffle.api.strings.TruffleString right,
com.oracle.truffle.api.strings.TruffleString.EqualNode equalNode) |
addExpressionTag, createWrapper, executeBoolean, executeGeneric, executeLong, executeVoid, hasTagaddRootTag, addStatementTag, formatSourceSection, getSourceCharIndex, getSourceEndIndex, getSourceLength, getSourceSection, hasSource, isInstrumentable, setSourceSection, setUnavailableSourceSection, toStringfindBlock, getVisibleVariablesIndexOnEnter, hasScope, setVisibleVariablesIndexOnEnter, setVisibleVariablesIndexOnExitaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializeprotected boolean doLong(long left,
long right)
protected boolean doBigNumber(SLBigNumber left, SLBigNumber right)
protected boolean doBoolean(boolean left,
boolean right)
protected boolean doTruffleString(com.oracle.truffle.api.strings.TruffleString left,
com.oracle.truffle.api.strings.TruffleString right,
com.oracle.truffle.api.strings.TruffleString.EqualNode equalNode)
protected boolean doFunction(SLFunction left, Object right)