Class JSOverloadedBinaryNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.binary.JSOverloadedBinaryNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class JSOverloadedBinaryNode extends JavaScriptBaseNode
This node implements the semantics of a binary operator in the case when one of the two operands features overloaded operators. Its job is to call ToOperand on its arguments (converting objects which don't overload operators to primitives). The bulk of the work is then delegated to the JSOverloadedBinaryNode.DispatchBinaryOperatorNode.

Check JSAddNode for an example of using this node.