|
Pol
Rev 533
|
#include <eprog.h>
Inheritance diagram for EScriptProgram:
Collaboration diagram for EScriptProgram:Public Member Functions | |
| EScriptProgram () | |
| int | _readToken (Token &token, unsigned position) const |
| int | add_dbg_filename (const std::string &filename) |
| void | add_ins_dbg_info () |
| void | addfunction (std::string name, unsigned firstPC, unsigned lastPC) |
| void | addlocalvar (const std::string &localvarname) |
| void | addToken (const Token &token) |
| void | append (const StoredToken &stoken) |
| void | append (const StoredToken &stoken, unsigned *posn) |
| void | append (const StoredToken &stoken, const CompilerContext &ctx) |
| void | append (const StoredToken &stoken, const CompilerContext &ctx, unsigned *posn) |
| void | clear_modules () |
| int | create_instructions () |
| std::string | dbg_get_instruction (size_t atPC) const |
| void | dump (std::ostream &os) |
| void | dump_casejmp (std::ostream &os, const Token &token) |
| void | enterblock () |
| void | enterfunction () |
| void | erase () |
| void | leaveblock () |
| void | leavefunction () |
| unsigned | parentvariables (unsigned parent) |
| int | read (const char *fname) |
| int | read_dbg_file () |
| int | read_exported_functions (FILE *fp, BSCRIPT_SECTION_HDR *hdr) |
| int | read_globalvarnames (FILE *fp) |
| int | read_module (FILE *fp) |
| int | read_progdef_hdr (FILE *fp) |
| void | setcontext (const CompilerContext &ctx) |
| void | setstatementbegin () |
| void | update_dbg_pos (const Token &tkn) |
| unsigned | varcount (unsigned block) |
| int | write (const char *fname) |
| int | write_dbg (const char *fname, bool gen_txt) |
Public Attributes | |
| vector< EPDbgBlock > | blocks |
| unsigned | curblock |
| unsigned | curfile |
| unsigned | curline |
| vector< std::string > | dbg_filenames |
| vector< unsigned > | dbg_filenum |
| vector< EPDbgFunction > | dbg_functions |
| vector< unsigned > | dbg_ins_blocks |
| vector< bool > | dbg_ins_statementbegin |
| vector< unsigned > | dbg_linenum |
| bool | debug_loaded |
| unsigned | expectedArgs |
| vector< EPExportedFunction > | exported_functions |
| vector< std::string > | fileline |
| vector< std::string > | function_decls |
| vector< std::string > | globalvarnames |
| bool | haveProgram |
| vector< Instruction > | instr |
| u64 | instr_cycles |
| unsigned int | invocations |
| vector< FunctionalityModule * > | modules |
| std::string | name |
| unsigned | nglobals |
| class Package const * | pkg |
| std::string | program_decl |
| unsigned | program_PC |
| unsigned | savecurblock |
| vector< std::string > | sourcelines |
| bool | statementbegin |
| SymbolContainer | symbols |
| StoredTokenContainer | tokens |
| unsigned short | version |
Private Member Functions | |
| ~EScriptProgram () | |
Friends | |
| class | EScriptProgramCheckpoint |
| class | ref_ptr< EScriptProgram > |
Definition at line 25 of file eprog.cpp.
References blocks, escript_program_count, EPDbgBlock::parentblockidx, and EPDbgBlock::parentvariables.
| EScriptProgram::~EScriptProgram | ( | ) | [private] |
Definition at line 69 of file eprog.cpp.
References delete_all(), escript_program_count, modules, and name.
Here is the call graph for this function:| int EScriptProgram::_readToken | ( | Token & | token, |
| unsigned | position | ||
| ) | const |
Definition at line 190 of file eprog_read.cpp.
References SymbolContainer::array(), StoredTokenContainer::atGet1(), CTRL_JSR_USERFUNC, CTRL_LEAVE_BLOCK, CTRL_STATEMENTBEGIN, Token::dataptr, decint(), Token::dval, FunctionalityModule::functions, StoredToken::id, Token::id, INS_ASSIGN_GLOBALVAR, INS_ASSIGN_LOCALVAR, INS_CALL_METHOD, INS_CALL_METHOD_ID, INS_CASEJMP, INS_GET_MEMBER_ID, INS_INITFOR, INS_INITFOREACH, INS_NEXTFOR, INS_SET_MEMBER_ID, INS_SET_MEMBER_ID_CONSUME, INS_SET_MEMBER_ID_CONSUME_DIVIDEEQUAL, INS_SET_MEMBER_ID_CONSUME_MINUSEQUAL, INS_SET_MEMBER_ID_CONSUME_MODULUSEQUAL, INS_SET_MEMBER_ID_CONSUME_PLUSEQUAL, INS_SET_MEMBER_ID_CONSUME_TIMESEQUAL, INS_STEPFOREACH, SymbolContainer::length(), Token::lval, StoredToken::module, Token::module, modules, ModuleFunction::name, Token::nulStr(), DebugToken::offset, StoredToken::offset, RSV_GLOBAL, RSV_GOTO, RSV_JMPIFFALSE, RSV_JMPIFTRUE, RSV_LOCAL, Token::setStr(), DebugToken::sourceFile, Token::sourceFile, DebugToken::strOffset, symbols, TOK_ARRAY_SUBSCRIPT, TOK_DOUBLE, TOK_FUNC, TOK_GLOBALVAR, TOK_LOCALVAR, TOK_LONG, TOK_USERFUNC, tokens, TYP_FUNC, TYP_USERFUNC, StoredToken::type, and Token::type.
Referenced by create_instructions(), and dump().
Here is the call graph for this function:
Here is the caller graph for this function:| int EScriptProgram::add_dbg_filename | ( | const std::string & | filename | ) |
Definition at line 506 of file eprog2.cpp.
References dbg_filenames.
Referenced by Compiler::compileFile(), Compiler::includeModule(), Compiler::read_function_declarations_in_included_file(), and Compiler::useModule().
Here is the caller graph for this function:| void EScriptProgram::add_ins_dbg_info | ( | ) |
Definition at line 49 of file eprog2.cpp.
References StoredTokenContainer::count(), curblock, curfile, curline, dbg_filenum, dbg_ins_blocks, dbg_ins_statementbegin, dbg_linenum, passert, statementbegin, and tokens.
Referenced by addToken(), and append().
Here is the call graph for this function:
Here is the caller graph for this function:| void EScriptProgram::addfunction | ( | std::string | name, |
| unsigned | firstPC, | ||
| unsigned | lastPC | ||
| ) |
Definition at line 580 of file eprog2.cpp.
References dbg_functions, EPDbgFunction::firstPC, EPDbgFunction::lastPC, EPDbgFunction::name, and name.
Referenced by Compiler::handleBracketedFunction3().
Here is the caller graph for this function:| void EScriptProgram::addlocalvar | ( | const std::string & | localvarname | ) |
Definition at line 576 of file eprog2.cpp.
References blocks, and curblock.
Referenced by Compiler::handleBracketedFor_basic(), Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleForEach(), Compiler::handleFunction(), Compiler::handleProgram2(), and Compiler::handleVarDeclare().
Here is the caller graph for this function:| void EScriptProgram::addToken | ( | const Token & | token | ) |
Definition at line 97 of file eprog2.cpp.
References add_ins_dbg_info(), SymbolContainer::append(), StoredTokenContainer::append_tok(), CTRL_JSR_USERFUNC, CTRL_MAKELOCAL, Token::dval, UserFunction::forward_callers, Token::id, include_debug, INS_ADDMEMBER2, INS_ADDMEMBER_ASSIGN, INS_CALL_METHOD_ID, INS_GET_MEMBER, INS_POP_PARAM, INS_POP_PARAM_BYREF, INS_SET_MEMBER, INS_SET_MEMBER_CONSUME, Token::lval, Token::module, passert, symbols, TOK_ARRAY_SUBSCRIPT, TOK_DOUBLE, TOK_GLOBALVAR, TOK_IDENT, TOK_LOCALVAR, TOK_LONG, TOK_STRING, tokens, Token::tokval(), TYP_CONTROL, TYP_FUNC, TYP_METHOD, TYP_OPERAND, TYP_OPERATOR, TYP_RESERVED, TYP_UNARY_OPERATOR, TYP_USERFUNC, Token::type, update_dbg_pos(), and Token::userfunc.
Referenced by Compiler::addToken().
Here is the call graph for this function:
Here is the caller graph for this function:| void EScriptProgram::append | ( | const StoredToken & | stoken | ) |
Definition at line 65 of file eprog2.cpp.
References add_ins_dbg_info(), StoredTokenContainer::append_tok(), and tokens.
Referenced by Compiler::_getStatement(), Compiler::compile(), Compiler::emit_leaveblock(), Compiler::handleBracketedFor_basic(), Compiler::handleBracketedFor_c(), Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleBracketedIf(), Compiler::handleBracketedWhile(), Compiler::handleContinue(), Compiler::handleDoClause(), Compiler::handleExit(), Compiler::handleFor_c(), Compiler::handleForEach(), Compiler::handleFunction(), Compiler::handleIf(), Compiler::handleProgram2(), Compiler::handleRepeatUntil(), Compiler::handleReturn(), Compiler::handleSwitch(), Compiler::handleVarDeclare(), and Compiler::insertBreak().
Here is the call graph for this function:
Here is the caller graph for this function:| void EScriptProgram::append | ( | const StoredToken & | stoken, |
| unsigned * | posn | ||
| ) |
Definition at line 72 of file eprog2.cpp.
References add_ins_dbg_info(), StoredTokenContainer::append_tok(), and tokens.
Here is the call graph for this function:| void EScriptProgram::append | ( | const StoredToken & | stoken, |
| const CompilerContext & | ctx | ||
| ) |
Definition at line 79 of file eprog2.cpp.
References add_ins_dbg_info(), StoredTokenContainer::append_tok(), setcontext(), and tokens.
Here is the call graph for this function:| void EScriptProgram::append | ( | const StoredToken & | stoken, |
| const CompilerContext & | ctx, | ||
| unsigned * | posn | ||
| ) |
Definition at line 88 of file eprog2.cpp.
References add_ins_dbg_info(), StoredTokenContainer::append_tok(), setcontext(), and tokens.
Here is the call graph for this function:| void EScriptProgram::clear_modules | ( | ) |
Definition at line 79 of file eprog.cpp.
References delete_all(), and modules.
Referenced by Compiler::read_function_declarations().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 141 of file eprog_read.cpp.
References _readToken(), Instruction::func, Executor::GetInstrFunc(), instr, SymbolContainer::length(), Instruction::token, and tokens.
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| string EScriptProgram::dbg_get_instruction | ( | size_t | atPC | ) | const |
Definition at line 522 of file eprog2.cpp.
References instr, OSTRINGSTREAM, and OSTRINGSTREAM_STR.
Referenced by DebugContext::cmd_scriptins().
Here is the caller graph for this function:| void EScriptProgram::dump | ( | std::ostream & | os | ) |
Definition at line 14 of file eprog3.cpp.
References _readToken(), dump_casejmp(), exported_functions, fileline, function_decls, Token::id, INS_CASEJMP, SymbolContainer::length(), program_decl, program_PC, sourcelines, and tokens.
Referenced by Compiler::dump(), and DumpScript().
Here is the call graph for this function:
Here is the caller graph for this function:| void EScriptProgram::dump_casejmp | ( | std::ostream & | os, |
| const Token & | token | ||
| ) |
Definition at line 56 of file eprog3.cpp.
References CASE_TYPE_DEFAULT, CASE_TYPE_LONG, and Token::dataptr.
Referenced by dump().
Here is the caller graph for this function:| void EScriptProgram::enterblock | ( | ) |
Definition at line 543 of file eprog2.cpp.
References blocks, curblock, EPDbgBlock::parentblockidx, EPDbgBlock::parentvariables, and varcount().
Referenced by Compiler::enterblock().
Here is the call graph for this function:
Here is the caller graph for this function:| void EScriptProgram::enterfunction | ( | ) |
Definition at line 534 of file eprog2.cpp.
References curblock, and savecurblock.
Referenced by Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleFunction(), and Compiler::handleProgram2().
Here is the caller graph for this function:| void EScriptProgram::erase | ( | ) |
Definition at line 25 of file eprog2.cpp.
References blocks, dbg_filenum, dbg_functions, dbg_ins_blocks, dbg_ins_statementbegin, dbg_linenum, SymbolContainer::erase(), globalvarnames, nglobals, symbols, and tokens.
Here is the call graph for this function:| void EScriptProgram::leaveblock | ( | ) |
Definition at line 560 of file eprog2.cpp.
References blocks, curblock, dbg_ins_blocks, and passert.
Referenced by Compiler::handleBracketedFor_basic(), Compiler::handleBracketedFunction3(), Compiler::handleBracketedWhile(), Compiler::handleDoClause(), Compiler::handleForEach(), Compiler::handleRepeatUntil(), Compiler::handleSwitch(), and Compiler::leaveblock().
Here is the caller graph for this function:| void EScriptProgram::leavefunction | ( | ) |
Definition at line 539 of file eprog2.cpp.
References curblock, and savecurblock.
Referenced by Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleFunction(), and Compiler::handleProgram2().
Here is the caller graph for this function:| unsigned EScriptProgram::parentvariables | ( | unsigned | parent | ) |
Definition at line 373 of file eprog2.cpp.
References blocks.
| int EScriptProgram::read | ( | const char * | fname | ) |
Definition at line 27 of file eprog_read.cpp.
References BSCRIPT_FILE_MAGIC0, BSCRIPT_FILE_MAGIC1, BSCRIPT_SECTION_CODE, BSCRIPT_SECTION_EXPORTED_FUNCTIONS, BSCRIPT_SECTION_GLOBALVARNAMES, BSCRIPT_SECTION_MODULE, BSCRIPT_SECTION_PROGDEF, BSCRIPT_SECTION_SYMBOLS, create_instructions(), ESCRIPT_FILE_VER_CURRENT, BSCRIPT_FILE_HDR::globals, BSCRIPT_FILE_HDR::magic2, name, nglobals, SymbolContainer::read(), StoredTokenContainer::read(), read_exported_functions(), read_globalvarnames(), read_module(), read_progdef_hdr(), symbols, tokens, BSCRIPT_SECTION_HDR::type, BSCRIPT_FILE_HDR::version, and version.
Referenced by DumpScript(), exec_script(), and find_script().
Here is the call graph for this function:
Here is the caller graph for this function:| int EScriptProgram::read_dbg_file | ( | ) |
Definition at line 371 of file eprog_read.cpp.
References BSCRIPT_DBG_INSTRUCTION::blocknum, blocks, buffer, ref_counted::count(), StoredTokenContainer::count(), dbg_filenames, dbg_filenum, dbg_functions, dbg_ins_blocks, dbg_ins_statementbegin, dbg_linenum, debug_loaded, BSCRIPT_DBG_INSTRUCTION::filenum, EPDbgFunction::firstPC, globalvarnames, EPDbgFunction::lastPC, BSCRIPT_DBG_INSTRUCTION::linenum, EPDbgBlock::localvarnames, EPDbgFunction::name, name, EPDbgBlock::parentblockidx, EPDbgBlock::parentvariables, BSCRIPT_DBG_INSTRUCTION::statementbegin, tokens, and version.
Referenced by DebugContext::cmd_attach(), DebugContext::cmd_scriptins(), DebugContext::cmd_scriptsrc(), and DebugContext::cmd_setscript().
Here is the call graph for this function:
Here is the caller graph for this function:| int EScriptProgram::read_exported_functions | ( | FILE * | fp, |
| BSCRIPT_SECTION_HDR * | hdr | ||
| ) |
Definition at line 350 of file eprog_read.cpp.
References exported_functions, BSCRIPT_EXPORTED_FUNCTION::funcname, getKnownObjMethod(), BSCRIPT_SECTION_HDR::length, EPExportedFunction::name, EPExportedFunction::nargs, BSCRIPT_EXPORTED_FUNCTION::nargs, ObjMethod::overridden, EPExportedFunction::PC, and BSCRIPT_EXPORTED_FUNCTION::PC.
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| int EScriptProgram::read_globalvarnames | ( | FILE * | fp | ) |
Definition at line 316 of file eprog_read.cpp.
References buffer, globalvarnames, BSCRIPT_GLOBALVARNAME_HDR::namelen, and BSCRIPT_GLOBALVARNAMES_HDR::nGlobalVars.
Referenced by read().
Here is the caller graph for this function:| int EScriptProgram::read_module | ( | FILE * | fp | ) |
Definition at line 169 of file eprog_read.cpp.
References FunctionalityModule::addFunction(), BSCRIPT_MODULE_FUNCTION::funcname, BSCRIPT_MODULE_HDR::modulename, modules, BSCRIPT_MODULE_FUNCTION::nargs, and BSCRIPT_MODULE_HDR::nfuncs.
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| int EScriptProgram::read_progdef_hdr | ( | FILE * | fp | ) |
Definition at line 158 of file eprog_read.cpp.
References BSCRIPT_PROGDEF_HDR::expectedArgs, expectedArgs, and haveProgram.
Referenced by read().
Here is the caller graph for this function:| void EScriptProgram::setcontext | ( | const CompilerContext & | ctx | ) |
Definition at line 59 of file eprog2.cpp.
References curfile, curline, CompilerContext::dbg_filenum, and CompilerContext::line.
Referenced by append(), and Compiler::getStatement().
Here is the caller graph for this function:| void EScriptProgram::setstatementbegin | ( | ) |
Definition at line 530 of file eprog2.cpp.
References statementbegin.
Referenced by Compiler::getStatement(), Compiler::handleBracketedIf(), Compiler::handleDoClause(), and Compiler::handleRepeatUntil().
Here is the caller graph for this function:| void EScriptProgram::update_dbg_pos | ( | const Token & | tkn | ) |
Definition at line 40 of file eprog2.cpp.
References curfile, curline, Token::dbg_filenum, and Token::dbg_linenum.
Referenced by addToken(), Compiler::handleBracketedFor_basic(), Compiler::handleBracketedFor_c(), Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleBracketedIf(), Compiler::handleBracketedWhile(), Compiler::handleDoClause(), Compiler::handleForEach(), Compiler::handleProgram2(), and Compiler::handleRepeatUntil().
Here is the caller graph for this function:| unsigned EScriptProgram::varcount | ( | unsigned | block | ) |
Definition at line 364 of file eprog2.cpp.
References blocks.
Referenced by enterblock().
Here is the caller graph for this function:| int EScriptProgram::write | ( | const char * | fname | ) |
Definition at line 268 of file eprog2.cpp.
References BSCRIPT_FILE_MAGIC0, BSCRIPT_FILE_MAGIC1, BSCRIPT_SECTION_CODE, BSCRIPT_SECTION_EXPORTED_FUNCTIONS, BSCRIPT_SECTION_MODULE, BSCRIPT_SECTION_PROGDEF, BSCRIPT_SECTION_SYMBOLS, ESCRIPT_FILE_VER_CURRENT, BSCRIPT_PROGDEF_HDR::expectedArgs, expectedArgs, exported_functions, BSCRIPT_MODULE_FUNCTION::funcname, BSCRIPT_EXPORTED_FUNCTION::funcname, SymbolContainer::get_write_length(), BSCRIPT_FILE_HDR::globals, globalvarnames, haveProgram, BSCRIPT_SECTION_HDR::length, BSCRIPT_FILE_HDR::magic2, FunctionalityModule::modulename, BSCRIPT_MODULE_HDR::modulename, modules, BSCRIPT_MODULE_FUNCTION::nargs, BSCRIPT_EXPORTED_FUNCTION::nargs, BSCRIPT_MODULE_HDR::nfuncs, passert, BSCRIPT_EXPORTED_FUNCTION::PC, strzcpy, symbols, tokens, BSCRIPT_SECTION_HDR::type, FunctionalityModule::used_functions, BSCRIPT_FILE_HDR::version, and SymbolContainer::write().
Referenced by Compiler::write().
Here is the call graph for this function:
Here is the caller graph for this function:| int EScriptProgram::write_dbg | ( | const char * | fname, |
| bool | gen_txt | ||
| ) |
Definition at line 382 of file eprog2.cpp.
References BSCRIPT_DBG_INSTRUCTION::blocknum, blocks, ref_counted::count(), StoredTokenContainer::count(), dbg_filenames, dbg_filenum, dbg_functions, dbg_ins_blocks, dbg_ins_statementbegin, dbg_linenum, BSCRIPT_DBG_INSTRUCTION::filenum, EPDbgFunction::firstPC, globalvarnames, EPDbgFunction::lastPC, BSCRIPT_DBG_INSTRUCTION::linenum, EPDbgBlock::localvarnames, EPDbgFunction::name, name, EPDbgBlock::parentblockidx, EPDbgBlock::parentvariables, BSCRIPT_DBG_INSTRUCTION::rfu1, BSCRIPT_DBG_INSTRUCTION::rfu2, BSCRIPT_DBG_INSTRUCTION::statementbegin, and tokens.
Referenced by Compiler::write_dbg().
Here is the call graph for this function:
Here is the caller graph for this function:friend class EScriptProgramCheckpoint [friend] |
friend class ref_ptr< EScriptProgram > [friend] |
| vector< EPDbgBlock > EScriptProgram::blocks |
Definition at line 134 of file eprog.h.
Referenced by addlocalvar(), DebugContext::cmd_localvars(), enterblock(), erase(), EScriptProgram(), leaveblock(), parentvariables(), read_dbg_file(), varcount(), and write_dbg().
| unsigned EScriptProgram::curblock |
Definition at line 137 of file eprog.h.
Referenced by add_ins_dbg_info(), addlocalvar(), enterblock(), enterfunction(), leaveblock(), and leavefunction().
| unsigned EScriptProgram::curfile |
Definition at line 138 of file eprog.h.
Referenced by add_ins_dbg_info(), setcontext(), and update_dbg_pos().
| unsigned EScriptProgram::curline |
Definition at line 139 of file eprog.h.
Referenced by add_ins_dbg_info(), setcontext(), and update_dbg_pos().
| vector< std::string > EScriptProgram::dbg_filenames |
Definition at line 141 of file eprog.h.
Referenced by add_dbg_filename(), DebugContext::cmd_filecont(), DebugContext::cmd_files(), DebugContext::cmd_inslist(), get_fileline(), read_dbg_file(), and write_dbg().
| vector< unsigned > EScriptProgram::dbg_filenum |
Definition at line 144 of file eprog.h.
Referenced by add_ins_dbg_info(), DebugContext::cmd_fileline(), DebugContext::cmd_inslist(), DebugContext::cmd_scriptsrc(), DebugContext::cmd_srcprof(), erase(), read_dbg_file(), Compiler::rollback(), and write_dbg().
| vector< EPDbgFunction > EScriptProgram::dbg_functions |
Definition at line 135 of file eprog.h.
Referenced by addfunction(), DebugContext::cmd_funclist(), erase(), read_dbg_file(), and write_dbg().
| vector< unsigned > EScriptProgram::dbg_ins_blocks |
Definition at line 146 of file eprog.h.
Referenced by add_ins_dbg_info(), DebugContext::cmd_localvars(), erase(), leaveblock(), read_dbg_file(), Compiler::rollback(), and write_dbg().
| vector< bool > EScriptProgram::dbg_ins_statementbegin |
Definition at line 147 of file eprog.h.
Referenced by add_ins_dbg_info(), erase(), Executor::execInstr(), read_dbg_file(), Compiler::rollback(), and write_dbg().
| vector< unsigned > EScriptProgram::dbg_linenum |
Definition at line 145 of file eprog.h.
Referenced by add_ins_dbg_info(), DebugContext::cmd_fileline(), DebugContext::cmd_inslist(), DebugContext::cmd_scriptsrc(), DebugContext::cmd_srcprof(), erase(), read_dbg_file(), Compiler::rollback(), and write_dbg().
Definition at line 132 of file eprog.h.
Referenced by DebugContext::cmd_filecont(), DebugContext::cmd_fileline(), DebugContext::cmd_files(), DebugContext::cmd_globalvars(), DebugContext::cmd_inslist(), DebugContext::cmd_localvars(), and read_dbg_file().
| unsigned EScriptProgram::expectedArgs |
Definition at line 98 of file eprog.h.
Referenced by Compiler::handleProgram2(), read_progdef_hdr(), and write().
Definition at line 121 of file eprog.h.
Referenced by dump(), ExportScript::FindExportedFunction(), Compiler::handleBracketedFunction3(), read_exported_functions(), and write().
| vector<std::string> EScriptProgram::fileline |
Definition at line 116 of file eprog.h.
Referenced by EScriptProgramCheckpoint::commit(), dump(), Compiler::emitFileLine(), Compiler::emitFileLineIfFileChanged(), and Compiler::rollback().
| vector<std::string> EScriptProgram::function_decls |
Definition at line 119 of file eprog.h.
Referenced by dump(), and Compiler::handleBracketedFunction3().
| vector< std::string > EScriptProgram::globalvarnames |
Definition at line 133 of file eprog.h.
Referenced by DebugContext::cmd_globalvars(), erase(), GetGlobals(), Compiler::handleVarDeclare(), read_dbg_file(), read_globalvarnames(), write(), and write_dbg().
Definition at line 97 of file eprog.h.
Referenced by Compiler::handleProgram2(), read_progdef_hdr(), run_script_to_completion(), start_script(), Character::start_script(), start_textcmd_script(), Item::walk_on(), UHouse::walk_on(), and write().
| vector<Instruction> EScriptProgram::instr |
Definition at line 125 of file eprog.h.
Referenced by DebugContext::cmd_funclist(), DebugContext::cmd_scriptins(), DebugContext::cmd_scriptprofile(), DebugContext::cmd_scriptsrc(), DebugContext::cmd_srcprof(), create_instructions(), dbg_get_instruction(), Executor::dbg_get_instruction(), Executor::execInstr(), Executor::getToken(), and Executor::setProgram().
Definition at line 127 of file eprog.h.
Referenced by clear_script_profile_counters(), Executor::execInstr(), GetScriptProfiles(), and log_all_script_cycle_counts().
| unsigned int EScriptProgram::invocations |
Definition at line 126 of file eprog.h.
Referenced by clear_script_profile_counters(), GetScriptProfiles(), log_all_script_cycle_counts(), and Executor::setProgram().
| vector< FunctionalityModule* > EScriptProgram::modules |
Definition at line 94 of file eprog.h.
Referenced by _readToken(), Compiler::addModule(), Executor::AttachFunctionalityModules(), clear_modules(), EScriptProgramCheckpoint::commit(), Executor::execFunc(), Executor::innerExec(), Executor::ins_func(), Compiler::isFunc(), read_module(), Compiler::rollback(), Compiler::useModule(), write(), and ~EScriptProgram().
| std::string EScriptProgram::name |
Definition at line 91 of file eprog.h.
Referenced by addfunction(), DebugContext::cmd_scriptlist(), Executor::empty_scriptname(), Executor::execFunc(), Executor::execInstr(), Executor::getObjRef(), Executor::getParams(), GetScriptProfiles(), log_all_script_cycle_counts(), read(), read_dbg_file(), ExecutorModule::scriptname(), Executor::scriptname(), Character::start_script(), write_dbg(), and ~EScriptProgram().
| unsigned EScriptProgram::nglobals |
Definition at line 92 of file eprog.h.
Referenced by erase(), read(), and Executor::setProgram().
| class Package const* EScriptProgram::pkg |
Definition at line 129 of file eprog.h.
Referenced by BXMLfile::call_method_id(), find_script2(), ConfigFileExecutorModule::get_cfgfilename(), DataFileExecutorModule::GetDataStoreFile(), FileAccessExecutorModule::mf_AppendToFile(), DataFileExecutorModule::mf_CreateDataFile(), FileAccessExecutorModule::mf_CreateDirectory(), FileAccessExecutorModule::mf_FileExists(), FileAccessExecutorModule::mf_ListDirectory(), FileAccessExecutorModule::mf_LogToFile(), FileAccessExecutorModule::mf_OpenBinaryFile(), OSExecutorModule::mf_OpenConnection(), DataFileExecutorModule::mf_OpenDataFile(), FileAccessExecutorModule::mf_OpenXMLFile(), FileAccessExecutorModule::mf_ReadFile(), FileAccessExecutorModule::mf_WriteFile(), OSExecutorModule::run_script(), OSExecutorModule::run_script_to_completion(), OSExecutorModule::start_script(), and OSExecutorModule::start_skill_script().
| std::string EScriptProgram::program_decl |
Definition at line 118 of file eprog.h.
Referenced by dump(), and Compiler::handleProgram().
| unsigned EScriptProgram::program_PC |
Definition at line 117 of file eprog.h.
Referenced by dump(), and Compiler::handleProgram2().
| unsigned EScriptProgram::savecurblock |
Definition at line 136 of file eprog.h.
Referenced by enterfunction(), and leavefunction().
| vector<std::string> EScriptProgram::sourcelines |
Definition at line 115 of file eprog.h.
Referenced by EScriptProgramCheckpoint::commit(), dump(), Compiler::rollback(), and Compiler::savesourceline().
Definition at line 140 of file eprog.h.
Referenced by add_ins_dbg_info(), Compiler::rollback(), and setstatementbegin().
Definition at line 96 of file eprog.h.
Referenced by Compiler::_getStatement(), _readToken(), addToken(), EScriptProgramCheckpoint::commit(), Compiler::compile(), erase(), Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleFunction(), Compiler::handleProgram2(), Compiler::handleReturn(), Compiler::handleSwitch(), read(), Compiler::rollback(), and write().
Definition at line 95 of file eprog.h.
Referenced by Compiler::_getStatement(), _readToken(), add_ins_dbg_info(), addToken(), append(), EScriptProgramCheckpoint::commit(), create_instructions(), dump(), Compiler::emitFileLine(), Compiler::emitFileLineIfFileChanged(), erase(), Compiler::handleBracketedFor_basic(), Compiler::handleBracketedFor_c(), Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleBracketedIf(), Compiler::handleBracketedWhile(), Compiler::handleDoClause(), Compiler::handleFor_c(), Compiler::handleForEach(), Compiler::handleFunction(), Compiler::handleIf(), Compiler::handleProgram2(), Compiler::handleRepeatUntil(), Compiler::handleSwitch(), Compiler::patchoffset(), read(), read_dbg_file(), Compiler::rollback(), Compiler::savesourceline(), write(), and write_dbg().
| unsigned short EScriptProgram::version |
Definition at line 124 of file eprog.h.
Referenced by read(), and read_dbg_file().