#include <tree.h>
Public Member Functions | |
CallNode (const SourcePos &sourcePos, unsigned funcId) | |
Constructor. | |
virtual void | emit (PreLinkBytecode &bytecodes) const |
Generate bytecode. | |
virtual unsigned | getStackDepth () const |
Return the stack depth requirement for this node and its children. | |
virtual Node * | optimize (std::ostream *dump) |
Optimize this node, return the optimized node. | |
virtual std::string | toNodeName () const |
Return a string representation of the name of this node. | |
virtual std::string | toString () const |
Return a string representation of this node. | |
virtual ReturnType | typeCheck () const |
Typecheck this node, throw an exception if there is any type violation. | |
Public Attributes | |
std::vector< unsigned > | argumentsAddr |
address of all arguments | |
unsigned | funcId |
identifier of the function to be called |
Node for calling a native function may have children for pushing constants somewhere
Definition at line 386 of file tree.h.
virtual std::string Aseba::CallNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.
virtual ReturnType Aseba::CallNode::typeCheck | ( | ) | const [inline, virtual] |
Typecheck this node, throw an exception if there is any type violation.
Reimplemented from Aseba::Node.
std::vector<unsigned> Aseba::CallNode::argumentsAddr |
unsigned Aseba::CallNode::funcId |