CodeBlock Class Reference#include <compiler.h>
|
Public Member Functions |
| | CodeBlock () |
| | ~CodeBlock () |
| void | addToCodeList () |
| void | removeFromCodeList () |
| void | calcBreakList () |
| void | clearAllBreaks () |
| void | setAllBreaks () |
| void | clearBreakpoint (U32 lineNumber) |
| void | setBreakpoint (U32 lineNumber) |
| void | findBreakLine (U32 ip, U32 &line, U32 &instruction) |
| void | getFunctionArgs (char buffer[1024], U32 offset) |
| const char * | getFileLine (U32 ip) |
| bool | read (StringTableEntry fileName, Stream &st) |
| bool | compile (const char *dsoName, StringTableEntry fileName, const char *script) |
| void | incRefCount () |
| void | decRefCount () |
| const char * | compileExec (StringTableEntry fileName, const char *script, bool noCalls) |
| const char * | exec (U32 offset, const char *fnName, Namespace *ns, U32 argc, const char **argv, bool noCalls, StringTableEntry packageName) |
Static Public Member Functions |
| static const StringTableEntry | getCurrentCodeBlockName () |
| static CodeBlock * | find (StringTableEntry) |
Data Fields |
| StringTableEntry | name |
| char * | globalStrings |
| char * | functionStrings |
| F64 * | globalFloats |
| F64 * | functionFloats |
| U32 | codeSize |
| U32 * | code |
| U32 | refCount |
| U32 | lineBreakPairCount |
| U32 * | lineBreakPairs |
| U32 | breakListSize |
| U32 * | breakList |
| CodeBlock * | nextFile |
| StringTableEntry | mRoot |
Static Private Attributes |
| static CodeBlock * | sCurrentCodeBlock |
Constructor & Destructor Documentation
| CodeBlock::~CodeBlock |
( |
|
) |
|
|
Member Function Documentation
| void CodeBlock::addToCodeList |
( |
|
) |
|
|
| void CodeBlock::removeFromCodeList |
( |
|
) |
|
|
| void CodeBlock::calcBreakList |
( |
|
) |
|
|
| void CodeBlock::clearAllBreaks |
( |
|
) |
|
|
| void CodeBlock::setAllBreaks |
( |
|
) |
|
|
| void CodeBlock::clearBreakpoint |
( |
U32 |
lineNumber |
) |
|
|
| void CodeBlock::setBreakpoint |
( |
U32 |
lineNumber |
) |
|
|
| void CodeBlock::findBreakLine |
( |
U32 |
ip, |
|
|
U32 & |
line, |
|
|
U32 & |
instruction |
|
) |
|
|
| void CodeBlock::getFunctionArgs |
( |
char |
buffer[1024], |
|
|
U32 |
offset |
|
) |
|
|
| const char* CodeBlock::getFileLine |
( |
U32 |
ip |
) |
|
|
| bool CodeBlock::compile |
( |
const char * |
dsoName, |
|
|
StringTableEntry |
fileName, |
|
|
const char * |
script |
|
) |
|
|
| void CodeBlock::incRefCount |
( |
|
) |
|
|
| void CodeBlock::decRefCount |
( |
|
) |
|
|
| const char* CodeBlock::compileExec |
( |
StringTableEntry |
fileName, |
|
|
const char * |
script, |
|
|
bool |
noCalls |
|
) |
|
|
Field Documentation
|