LLScriptScript Class Reference

#include <lscript_tree.h>

Inheritance diagram for LLScriptScript:

Inheritance graph
[legend]
Collaboration diagram for LLScriptScript:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLScriptScript (LLScritpGlobalStorage *globals, LLScriptState *states)
 ~LLScriptScript ()
void recurse (FILE *fp, S32 tabs, S32 tabsize, LSCRIPTCompilePass pass, LSCRIPTPruneType ptype, BOOL &prunearg, LLScriptScope *scope, LSCRIPTType &type, LSCRIPTType basetype, U64 &count, LLScriptByteCodeChunk *chunk, LLScriptByteCodeChunk *heap, S32 stacksize, LLScriptScopeEntry *entry, S32 entrycount, LLScriptLibData **ldata)
S32 getSize ()
void setBytecodeDest (const char *dst_filename)

Public Attributes

LLScriptStatemStates
LLScriptScopemGlobalScope
LLScriptGlobalVariablemGlobals
LLScriptGlobalFunctionsmGlobalFunctions
BOOL mGodLike

Private Attributes

char mBytecodeDest [MAX_STRING]

Detailed Description

Definition at line 2249 of file lscript_tree.h.


Constructor & Destructor Documentation

LLScriptScript::LLScriptScript ( LLScritpGlobalStorage globals,
LLScriptState states 
)

Definition at line 9701 of file lscript_tree.cpp.

References MAX_STRING, LLScritpGlobalStorage::mbGlobalFunction, mBytecodeDest, LLScritpGlobalStorage::mGlobal, mGlobalFunctions, mGlobals, LLScritpGlobalStorage::mNextp, LLScriptGlobalVariable::mNextp, and LLScriptGlobalFunctions::mNextp.

LLScriptScript::~LLScriptScript (  )  [inline]

Definition at line 2255 of file lscript_tree.h.

References mGlobalScope.


Member Function Documentation

S32 LLScriptScript::getSize (  )  [virtual]

Implements LLScriptFilePosition.

Definition at line 9696 of file lscript_tree.cpp.

void LLScriptScript::recurse ( FILE *  fp,
S32  tabs,
S32  tabsize,
LSCRIPTCompilePass  pass,
LSCRIPTPruneType  ptype,
BOOL prunearg,
LLScriptScope scope,
LSCRIPTType type,
LSCRIPTType  basetype,
U64 count,
LLScriptByteCodeChunk chunk,
LLScriptByteCodeChunk heap,
S32  stacksize,
LLScriptScopeEntry entry,
S32  entrycount,
LLScriptLibData **  ldata 
) [virtual]

Implements LLScriptFilePosition.

Definition at line 9771 of file lscript_tree.cpp.

References LLScriptByteCodeChunk::addBytes(), LLScriptScope::addEntry(), LLScriptArgString::addType(), LLScriptScriptCodeChunk::build(), char2type(), LLScriptFilePosition::fdotabs(), LLFile::fopen(), gErrorToText, LLScriptGenerateErrorText::getErrors(), gScopeStringTable, gScriptLibrary, i, integer2bytestream(), LIT_LIBRARY_FUNCTION, LREG_EOF, LREG_IP, LREG_NCE, lsa_create_data_block(), LSCP_EMIT_ASSEMBLY, LSCP_EMIT_BYTE_CODE, LSCP_EMIT_CIL_ASSEMBLY, LSCP_PRETTY_PRINT, LSCP_PRUNE, LSCP_RESOURCE, LSCP_SCOPE_PASS1, LSCP_SCOPE_PASS2, LSCP_TYPE, LSCRIPTDataSize, LSL2_CURRENT_MAJOR_VERSION, LSL2_MAJOR_VERSION_TWO, LST_INTEGER, LST_NULL, LLScriptLibraryFunction::mArgs, mBytecodeDest, LLScriptByteCodeChunk::mCodeChunk, LLScriptScopeEntry::mFunctionArgs, LLScriptScope::mFunctionCount, LLScriptLibrary::mFunctions, LLScriptScriptCodeChunk::mGlobalFunctions, mGlobalFunctions, mGlobals, mGlobalScope, LLScriptScriptCodeChunk::mGlobalVariables, mGodLike, LLScriptLibraryFunction::mGodOnly, LLScriptScriptCodeChunk::mHeap, LLScriptScopeEntry::mLibraryNumber, LLScriptLibraryFunction::mName, LLScriptLibrary::mNextNumber, LLScriptScopeEntry::mOffset, LLScriptScriptCodeChunk::mRegisters, LLScriptLibraryFunction::mReturnType, LLScriptScopeEntry::mSize, LLScriptScope::mStateCount, LLScriptScriptCodeChunk::mStates, mStates, NULL, print_cil_globals(), LLScriptGlobalVariable::recurse(), LLScriptState::recurse(), LLScriptGlobalFunctions::recurse(), S32, size, and TOP_OF_MEMORY.

void LLScriptScript::setBytecodeDest ( const char *  dst_filename  ) 

Definition at line 9752 of file lscript_tree.cpp.

References MAX_STRING, and mBytecodeDest.


Member Data Documentation

char LLScriptScript::mBytecodeDest[MAX_STRING] [private]

Definition at line 2272 of file lscript_tree.h.

Referenced by LLScriptScript(), recurse(), and setBytecodeDest().

LLScriptGlobalFunctions* LLScriptScript::mGlobalFunctions

Definition at line 2268 of file lscript_tree.h.

Referenced by LLScriptScript(), and recurse().

LLScriptGlobalVariable* LLScriptScript::mGlobals

Definition at line 2267 of file lscript_tree.h.

Referenced by LLScriptScript(), and recurse().

LLScriptScope* LLScriptScript::mGlobalScope

Definition at line 2266 of file lscript_tree.h.

Referenced by recurse(), and ~LLScriptScript().

BOOL LLScriptScript::mGodLike

Definition at line 2269 of file lscript_tree.h.

Referenced by recurse().

LLScriptState* LLScriptScript::mStates

Definition at line 2265 of file lscript_tree.h.

Referenced by recurse().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:44 2010 for Second Life Viewer by  doxygen 1.4.7