public abstract class JSLogicalNode extends JSBinaryNode implements ResumableNode
| Modifier and Type | Field and Description |
|---|---|
protected com.oracle.truffle.api.profiles.ConditionProfile |
canShortCircuit |
leftNode, rightNodeINTERMEDIATE_VALUE| Constructor and Description |
|---|
JSLogicalNode(JavaScriptNode left,
JavaScriptNode right,
boolean negate) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(com.oracle.truffle.api.frame.VirtualFrame frame)
Executes this node using the specified context and frame and returns the result value.
|
Object |
resume(com.oracle.truffle.api.frame.VirtualFrame frame) |
protected boolean |
toBoolean(Object operand) |
protected boolean |
useLeftValue(Object leftValue) |
ensureBothSameNumericType, expressionToString, getLeft, getNodeObject, getRight, hasTag, largerThan2e32addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, copyUninitialized, createWrapper, executeBoolean, executeDouble, executeInt, executeLong, executeSafeInteger, executeString, executeVoid, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetState, getStateAndReset, getStateAsInt, getStateAsIntAndReset, parent, resetState, setStateprotected final com.oracle.truffle.api.profiles.ConditionProfile canShortCircuit
public JSLogicalNode(JavaScriptNode left, JavaScriptNode right, boolean negate)
protected boolean toBoolean(Object operand)
protected boolean useLeftValue(Object leftValue)
public final Object execute(com.oracle.truffle.api.frame.VirtualFrame frame)
JavaScriptNodeexecute in class JavaScriptNodeframe - the frame of the currently executing guest language methodpublic Object resume(com.oracle.truffle.api.frame.VirtualFrame frame)
resume in interface ResumableNode