LLScriptLSOParse Class Reference

#include <lscript_readlso.h>

List of all members.

Public Member Functions

 LLScriptLSOParse (FILE *fp)
 LLScriptLSOParse (U8 *buffer)
 ~LLScriptLSOParse ()
void initOpCodePrinting ()
void printData (FILE *fp)
void printNameDesc (FILE *fp)
void printRegisters (FILE *fp)
void printGlobals (FILE *fp)
void printGlobalFunctions (FILE *fp)
void printStates (FILE *fp)
void printHeap (FILE *fp)
void printOpCodes (FILE *fp, S32 &offset, S32 tabs)
void printOpCodeRange (FILE *fp, S32 start, S32 end, S32 tabs)

Public Attributes

U8mRawData
void(* mPrintOpCodes [0x100])(FILE *fp, U8 *buffer, S32 &offset, S32 tabs)


Detailed Description

Definition at line 144 of file lscript_readlso.h.


Constructor & Destructor Documentation

LLScriptLSOParse::LLScriptLSOParse ( FILE *  fp  ) 

Definition at line 38 of file lscript_readlso.cpp.

References bytestream2integer(), initOpCodePrinting(), llendl, llwarns, mRawData, and S32.

LLScriptLSOParse::LLScriptLSOParse ( U8 buffer  ) 

Definition at line 60 of file lscript_readlso.cpp.

References initOpCodePrinting(), and mRawData.

LLScriptLSOParse::~LLScriptLSOParse (  ) 

Definition at line 66 of file lscript_readlso.cpp.

References mRawData.


Member Function Documentation

void LLScriptLSOParse::initOpCodePrinting (  ) 

Definition at line 678 of file lscript_readlso.cpp.

References i, LOPC_ADD, LOPC_BITAND, LOPC_BITNOT, LOPC_BITOR, LOPC_BITXOR, LOPC_BOOLAND, LOPC_BOOLNOT, LOPC_BOOLOR, LOPC_CALL, LOPC_CALLLIB, LOPC_CALLLIB_TWO_BYTE, LOPC_CAST, LOPC_DIV, LOPC_DUP, LOPC_DUPL, LOPC_DUPQ, LOPC_DUPS, LOPC_DUPV, LOPC_EQ, LOPC_GEQ, LOPC_GREATER, LOPC_JUMP, LOPC_JUMPIF, LOPC_JUMPNIF, LOPC_LEQ, LOPC_LESS, LOPC_LOADGLP, LOPC_LOADGP, LOPC_LOADGQP, LOPC_LOADGSP, LOPC_LOADGVP, LOPC_LOADLP, LOPC_LOADP, LOPC_LOADQP, LOPC_LOADSP, LOPC_LOADVP, LOPC_MOD, LOPC_MUL, LOPC_NEG, LOPC_NEQ, LOPC_NOOP, LOPC_POP, LOPC_POPARG, LOPC_POPBP, LOPC_POPIP, LOPC_POPL, LOPC_POPQ, LOPC_POPS, LOPC_POPSLR, LOPC_POPSP, LOPC_POPV, LOPC_PRINT, LOPC_PUSH, LOPC_PUSHARGB, LOPC_PUSHARGE, LOPC_PUSHARGF, LOPC_PUSHARGI, LOPC_PUSHARGQ, LOPC_PUSHARGS, LOPC_PUSHARGV, LOPC_PUSHBP, LOPC_PUSHE, LOPC_PUSHEQ, LOPC_PUSHEV, LOPC_PUSHG, LOPC_PUSHGL, LOPC_PUSHGQ, LOPC_PUSHGS, LOPC_PUSHGV, LOPC_PUSHIP, LOPC_PUSHL, LOPC_PUSHQ, LOPC_PUSHS, LOPC_PUSHSP, LOPC_PUSHV, LOPC_RETURN, LOPC_SHL, LOPC_SHR, LOPC_STACKTOL, LOPC_STACKTOS, LOPC_STATE, LOPC_STORE, LOPC_STOREG, LOPC_STOREGL, LOPC_STOREGQ, LOPC_STOREGS, LOPC_STOREGV, LOPC_STOREL, LOPC_STOREQ, LOPC_STORES, LOPC_STOREV, LOPC_SUB, LSCRIPTOpCodes, mPrintOpCodes, print_add(), print_bitand(), print_bitnot(), print_bitor(), print_bitxor(), print_booland(), print_boolnot(), print_boolor(), print_call(), print_calllib(), print_calllib_two_byte(), print_cast(), print_div(), print_dup(), print_dupl(), print_dupq(), print_dups(), print_dupv(), print_eq(), print_geq(), print_greater(), print_jump(), print_jumpif(), print_jumpnif(), print_leq(), print_less(), print_loadglp(), print_loadgp(), print_loadgqp(), print_loadgsp(), print_loadgvp(), print_loadlp(), print_loadp(), print_loadqp(), print_loadsp(), print_loadvp(), print_mod(), print_mul(), print_neg(), print_neq(), print_noop(), print_pop(), print_poparg(), print_popbp(), print_popip(), print_popl(), print_popq(), print_pops(), print_popslr(), print_popsp(), print_popv(), print_print(), print_push(), print_pushargb(), print_pusharge(), print_pushargf(), print_pushargi(), print_pushargq(), print_pushargs(), print_pushargv(), print_pushbp(), print_pushe(), print_pusheq(), print_pushev(), print_pushg(), print_pushgl(), print_pushgq(), print_pushgs(), print_pushgv(), print_puship(), print_pushl(), print_pushq(), print_pushs(), print_pushsp(), print_pushv(), print_return(), print_shl(), print_shr(), print_stacktol(), print_stacktos(), print_state(), print_store(), print_storeg(), print_storegl(), print_storegq(), print_storegs(), print_storegv(), print_storel(), print_storeq(), print_stores(), print_storev(), print_sub(), and S32.

Referenced by LLScriptLSOParse().

void LLScriptLSOParse::printData ( FILE *  fp  ) 

Definition at line 71 of file lscript_readlso.cpp.

References printGlobalFunctions(), printGlobals(), printHeap(), printNameDesc(), printRegisters(), and printStates().

Referenced by lscript_run().

void LLScriptLSOParse::printGlobalFunctions ( FILE *  fp  ) 

Definition at line 198 of file lscript_readlso.cpp.

References bytestream2char(), bytestream2integer(), get_register(), i, LREG_GFR, LREG_SR, LSCRIPTTypeNames, mRawData, params, printOpCodeRange(), S32, and type.

Referenced by printData().

void LLScriptLSOParse::printGlobals ( FILE *  fp  ) 

Definition at line 128 of file lscript_readlso.cpp.

References bytestream2char(), bytestream2float(), bytestream2integer(), bytestream2quaternion(), bytestream2vector(), get_register(), LREG_GFR, LREG_GVR, LREG_HR, LST_FLOATINGPOINT, LST_INTEGER, LST_KEY, LST_LIST, LST_QUATERNION, LST_STRING, LST_VECTOR, LLQuaternion::mQ, mRawData, LLVector3::mV, S32, type, VS, VX, VY, and VZ.

Referenced by printData().

void LLScriptLSOParse::printHeap ( FILE *  fp  ) 

Definition at line 640 of file lscript_readlso.cpp.

References get_register(), LREG_HP, LREG_HR, lsa_fprint_heap(), mRawData, and S32.

Referenced by printData().

void LLScriptLSOParse::printNameDesc ( FILE *  fp  ) 

Definition at line 89 of file lscript_readlso.cpp.

Referenced by printData().

void LLScriptLSOParse::printOpCodeRange ( FILE *  fp,
S32  start,
S32  end,
S32  tabs 
)

Definition at line 670 of file lscript_readlso.cpp.

References printOpCodes().

Referenced by printGlobalFunctions(), and printStates().

void LLScriptLSOParse::printOpCodes ( FILE *  fp,
S32 offset,
S32  tabs 
)

Definition at line 664 of file lscript_readlso.cpp.

References mPrintOpCodes, mRawData, and opcode.

Referenced by printOpCodeRange().

void LLScriptLSOParse::printRegisters ( FILE *  fp  ) 

Definition at line 96 of file lscript_readlso.cpp.

References get_register(), get_register_u64(), gLSCRIPTRegisterNames, gMajorVersion, i, LREG_EOF, LREG_IP, LREG_NCE, LREG_VN, LSL2_MAJOR_VERSION_ONE, LSL2_MAJOR_VERSION_TWO, LSL2_VERSION1_END_NUMBER, LSL2_VERSION_NUMBER, mRawData, and S32.

Referenced by printData().

void LLScriptLSOParse::printStates ( FILE *  fp  ) 

Definition at line 287 of file lscript_readlso.cpp.

References bytestream2char(), bytestream2integer(), bytestream2u64(), get_register(), gMajorVersion, i, j, LREG_HR, LREG_SR, LSCRIPTDataSize, LSCRIPTStateBitField, LSL2_MAJOR_VERSION_TWO, LST_INTEGER, LSTT_AT_ROT_TARGET, LSTT_AT_TARGET, LSTT_ATTACH, LSTT_CHAT, LSTT_COLLISION, LSTT_COLLISION_END, LSTT_COLLISION_START, LSTT_CONTROL, LSTT_DATASERVER, LSTT_EMAIL, LSTT_HTTP_RESPONSE, LSTT_INVENTORY, LSTT_LAND_COLLISION, LSTT_LAND_COLLISION_END, LSTT_LAND_COLLISION_START, LSTT_LINK_MESSAGE, LSTT_MONEY, LSTT_MOVING_END, LSTT_MOVING_START, LSTT_NO_SENSOR, LSTT_NOT_AT_ROT_TARGET, LSTT_NOT_AT_TARGET, LSTT_OBJECT_REZ, LSTT_REMOTE_DATA, LSTT_REZ, LSTT_RTPERMISSIONS, LSTT_SENSOR, LSTT_STATE_BEGIN, LSTT_STATE_END, LSTT_STATE_ENTRY, LSTT_STATE_EXIT, LSTT_TIMER, LSTT_TOUCH, LSTT_TOUCH_END, LSTT_TOUCH_START, mRawData, printOpCodeRange(), and S32.

Referenced by printData().


Member Data Documentation

void(* LLScriptLSOParse::mPrintOpCodes[0x100])(FILE *fp, U8 *buffer, S32 &offset, S32 tabs)

Referenced by initOpCodePrinting(), and printOpCodes().

U8* LLScriptLSOParse::mRawData

Definition at line 163 of file lscript_readlso.h.

Referenced by LLScriptLSOParse(), printGlobalFunctions(), printGlobals(), printHeap(), printOpCodes(), printRegisters(), printStates(), and ~LLScriptLSOParse().


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