#include <Folder.h>
Inheritance diagram for DCUnit:
Public Member Functions | |
DCUnit (const uint32 _id) | |
const bool | fold (Node *n) |
void | setDebugOffset (const uint32 newDebugOffset) |
void | setClassName (const std::string &newName) |
void | registerExternIntrinsic (DCCallNode *i) |
void | registerExternFunc (DCCallNode *f) |
void | setJump (IfNode *in) |
const std::deque< IfNode * > & | IfStack () const |
Private Attributes | |
std::deque< Node * > | nodes |
std::deque< IfNode * > | ifstack |
std::deque< IfNode * > | elsestack |
uint32 | debugOffset |
Friends | |
bool | print_assert (const Node *n, const DCUnit *u) |
Definition at line 51 of file Folder.h.
const bool DCUnit::fold | ( | Node * | n | ) |
Definition at line 104 of file Folder.cpp.
References con, elsestack, DCFuncNode::fold(), Unit::functions, IfNode::I_ELSE, IfNode::I_ELSE_IF, IfNode::I_ELSE_IF_ELSE, IfNode::I_IF, IfNode::I_IF_ELSE, IfNode::I_IF_ELSE_IF, ifstack, n, nodes, Console::Print(), Unit::print_asm(), print_assert, Unit::print_extern_unk(), Unit::print_unk(), Console::Printf(), and setJump().
Referenced by Folder::fold().
const std::deque<IfNode *>& DCUnit::IfStack | ( | ) | const [inline] |
void DCUnit::registerExternFunc | ( | DCCallNode * | f | ) | [inline] |
Definition at line 61 of file Folder.h.
References Unit::externFuncs.
Referenced by DCCallNode::fold().
void DCUnit::registerExternIntrinsic | ( | DCCallNode * | i | ) | [inline] |
Definition at line 60 of file Folder.h.
References Unit::externIntrinsics.
Referenced by DCCallNode::fold().
void DCUnit::setClassName | ( | const std::string & | newName | ) | [inline] |
Definition at line 59 of file Folder.h.
References Unit::name.
Referenced by FuncMutatorNode::fold().
void DCUnit::setDebugOffset | ( | const uint32 | newDebugOffset | ) | [inline] |
Definition at line 58 of file Folder.h.
References debugOffset.
Referenced by FuncMutatorNode::fold().
void DCUnit::setJump | ( | IfNode * | in | ) | [inline] |
uint32 DCUnit::debugOffset [private] |
std::deque<IfNode *> DCUnit::elsestack [private] |
std::deque<IfNode *> DCUnit::ifstack [private] |
std::deque<Node *> DCUnit::nodes [private] |