#include "stdtypes.h"
Include dependency graph for lscript_byteformat.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Copyright (c) 2002-2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file lscript_byteformat.h.
typedef enum e_lscript_op_codes LSCRIPTOpCodesEnum |
typedef enum e_lscript_registers LSCRIPTRegisters |
typedef enum e_lscript_runtime_faults LSCRIPTRunTimeFaults |
typedef enum e_lscript_runtime_permissions LSCRIPTRunTimePermissions |
typedef enum e_lscript_state_event_type LSCRIPTStateEventType |
typedef enum e_lscript_types LSCRIPTType |
enum e_lscript_op_codes |
Definition at line 131 of file lscript_byteformat.h.
enum e_lscript_registers |
Definition at line 49 of file lscript_byteformat.h.
Definition at line 502 of file lscript_byteformat.h.
Definition at line 535 of file lscript_byteformat.h.
Definition at line 326 of file lscript_byteformat.h.
enum e_lscript_types |
LST_NULL | |
LST_INTEGER | |
LST_FLOATINGPOINT | |
LST_STRING | |
LST_KEY | |
LST_VECTOR | |
LST_QUATERNION | |
LST_LIST | |
LST_UNDEFINED | |
LST_EOF |
Definition at line 436 of file lscript_byteformat.h.
S32 get_event_handler_jump_position | ( | U64 | bit_field, | |
LSCRIPTStateEventType | type | |||
) | [inline] |
Definition at line 406 of file lscript_byteformat.h.
References count, LSTT_STATE_ENTRY, and S32.
Referenced by get_event_stack_size(), get_state_event_opcoode_start(), and LLScriptEventHandler::recurse().
Definition at line 421 of file lscript_byteformat.h.
References count, LSTT_EOF, and S32.
Referenced by LLScriptState::recurse().
const S32 gLSCRIPTRegisterAddresses[LREG_EOF] |
Initial value:
{ 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 72, 0, 64, 68, 76, 84, 92, }
Definition at line 77 of file lscript_byteformat.h.
Referenced by add_register_fp(), get_event_register(), get_register(), get_register_fp(), get_register_u64(), set_event_register(), set_register(), set_register_fp(), and set_register_u64().
const char* const gLSCRIPTRegisterNames[LREG_EOF] |
Initial value:
{ "INVALID", "IP", "VN", "BP", "SP", "HR", "HP", "CS", "NS", "CE", "IE", "ER", "FR", "SLR", "GVR", "GFR", "SR", "TM", "PR", "ESR", "NCE", "NIE", "NER", }
Definition at line 104 of file lscript_byteformat.h.
Referenced by LLScriptLSOParse::printRegisters().
const S32 LSCRIPTDataSize[LST_EOF] |
Initial value:
{ 0, 4, 4, 4, 4, 12, 16, 4, 0 }
Definition at line 488 of file lscript_byteformat.h.
Referenced by get_event_stack_size(), get_handled_events(), get_state_event_opcoode_start(), LLScriptConstantFloat::getSize(), LLScriptConstantInteger::getSize(), LLScriptType::getSize(), lsa_create_data_block(), lscript_global_get(), lscript_global_store(), lscript_local_get(), lscript_local_store(), lscript_push(), LLScriptLSOParse::printStates(), LLScriptScript::recurse(), LLScriptState::recurse(), LLScriptGlobalFunctions::recurse(), LLScriptEventHandler::recurse(), LLScriptWhile::recurse(), LLScriptDoWhile::recurse(), LLScriptFor::recurse(), LLScriptIfElse::recurse(), LLScriptIf::recurse(), LLScriptJump::recurse(), LLScriptGlobalVariable::recurse(), LLScriptSAIdentifier::recurse(), run_pop(), run_popq(), run_popv(), run_pushe(), run_pusheq(), run_pushev(), safe_instruction_bytestream2float(), safe_instruction_bytestream2integer(), safe_instruction_bytestream2quaternion(), safe_instruction_bytestream2vector(), safe_instruction_float2bytestream(), safe_instruction_integer2bytestream(), safe_instruction_quaternion2bytestream(), and safe_instruction_vector2bytestream().
const U8 LSCRIPTOpCodes[LOPC_EOF] |
Definition at line 229 of file lscript_byteformat.h.
Referenced by add_exit_pops(), add_return(), cast2stack(), LLScriptExecute::init(), LLScriptLSOParse::initOpCodePrinting(), LLScriptDeclaration::recurse(), LLScriptWhile::recurse(), LLScriptDoWhile::recurse(), LLScriptFor::recurse(), LLScriptIfElse::recurse(), LLScriptIf::recurse(), LLScriptExpressionStatement::recurse(), LLScriptReturn::recurse(), LLScriptJump::recurse(), LLScriptStateChange::recurse(), LLScriptPrint::recurse(), LLScriptFunctionCall::recurse(), LLScriptPostDecrement::recurse(), LLScriptPostIncrement::recurse(), LLScriptListInitializer::recurse(), LLScriptQuaternionInitializer::recurse(), LLScriptVectorInitializer::recurse(), LLScriptTypeCast::recurse(), LLScriptPreDecrement::recurse(), LLScriptPreIncrement::recurse(), LLScriptBitNot::recurse(), LLScriptBooleanNot::recurse(), LLScriptUnaryMinus::recurse(), LLScriptShiftRight::recurse(), LLScriptShiftLeft::recurse(), LLScriptBooleanOr::recurse(), LLScriptBooleanAnd::recurse(), LLScriptBitXor::recurse(), LLScriptBitOr::recurse(), LLScriptBitAnd::recurse(), LLScriptMod::recurse(), LLScriptDivide::recurse(), LLScriptTimes::recurse(), LLScriptMinus::recurse(), LLScriptPlus::recurse(), LLScriptGreaterThan::recurse(), LLScriptLessThan::recurse(), LLScriptGreaterEquals::recurse(), LLScriptLessEquals::recurse(), LLScriptNotEquals::recurse(), LLScriptEquality::recurse(), LLScriptModAssignment::recurse(), LLScriptDivAssignment::recurse(), LLScriptMulAssignment::recurse(), LLScriptSubAssignment::recurse(), LLScriptAddAssignment::recurse(), LLScriptLValue::recurse(), LLScriptListExpressionList::recurse(), LLScriptFuncExpressionList::recurse(), LLScriptForExpressionList::recurse(), LLScriptConstantString::recurse(), LLScriptConstantFloat::recurse(), LLScriptConstantInteger::recurse(), and store2stack().
const S32 LSCRIPTRunTimeFaultBits[LSRF_EOF] |
Initial value:
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, }
Definition at line 520 of file lscript_byteformat.h.
Referenced by set_fault().
char* LSCRIPTRunTimeFaultStrings[LSRF_EOF] |
const U32 LSCRIPTRunTimePermissionBits[SCRIPT_PERMISSION_EOF] |
Initial value:
{ (0x1 << 1), (0x1 << 2), (0x1 << 3), (0x1 << 4), (0x1 << 5), (0x1 << 6), (0x1 << 7), (0x1 << 8), (0x1 << 9), (0x1 << 10), (0x1 << 11), }
Definition at line 551 of file lscript_byteformat.h.
Referenced by notify_cautioned_script_question(), and process_script_question().
const U64 LSCRIPTStateBitField[LSTT_EOF] |
Definition at line 368 of file lscript_byteformat.h.
Referenced by LLScriptScriptCodeChunk::build(), LLScriptLSOParse::printStates(), LLScriptEventHandler::recurse(), LLScriptExecute::run(), and run_state().
const U8 LSCRIPTTypeByte[LST_EOF] |
Initial value:
{ LST_NULL, LST_INTEGER, LST_FLOATINGPOINT, LST_STRING, LST_KEY, LST_VECTOR, LST_QUATERNION, LST_LIST, LST_NULL, }
Definition at line 450 of file lscript_byteformat.h.
Referenced by cast2stack(), operation2stack(), print_type(), LLScriptGlobalFunctions::recurse(), LLScriptFunctionDec::recurse(), LLScriptWhile::recurse(), LLScriptDoWhile::recurse(), LLScriptFor::recurse(), LLScriptIfElse::recurse(), LLScriptIf::recurse(), LLScriptPrint::recurse(), LLScriptFunctionCall::recurse(), LLScriptPostDecrement::recurse(), LLScriptPostIncrement::recurse(), LLScriptQuaternionInitializer::recurse(), LLScriptVectorInitializer::recurse(), LLScriptTypeCast::recurse(), LLScriptPreDecrement::recurse(), LLScriptPreIncrement::recurse(), LLScriptUnaryMinus::recurse(), LLScriptMod::recurse(), LLScriptDivide::recurse(), LLScriptTimes::recurse(), LLScriptMinus::recurse(), LLScriptPlus::recurse(), LLScriptGreaterThan::recurse(), LLScriptLessThan::recurse(), LLScriptGreaterEquals::recurse(), LLScriptLessEquals::recurse(), LLScriptNotEquals::recurse(), LLScriptEquality::recurse(), LLScriptListExpressionList::recurse(), LLScriptFuncExpressionList::recurse(), and LLScriptGlobalVariable::recurse().
const U8 LSCRIPTTypeHi4Bits[LST_EOF] |
Initial value:
{ LST_NULL, LST_INTEGER << 4, LST_FLOATINGPOINT << 4, LST_STRING << 4, LST_KEY << 4, LST_VECTOR << 4, LST_QUATERNION << 4, LST_LIST << 4, }
Definition at line 463 of file lscript_byteformat.h.
Referenced by cast2stack(), operation2stack(), LLScriptFunctionCall::recurse(), LLScriptPostDecrement::recurse(), LLScriptPostIncrement::recurse(), LLScriptQuaternionInitializer::recurse(), LLScriptVectorInitializer::recurse(), LLScriptTypeCast::recurse(), LLScriptPreDecrement::recurse(), LLScriptPreIncrement::recurse(), LLScriptMod::recurse(), LLScriptDivide::recurse(), LLScriptTimes::recurse(), LLScriptMinus::recurse(), LLScriptPlus::recurse(), LLScriptGreaterThan::recurse(), LLScriptLessThan::recurse(), LLScriptGreaterEquals::recurse(), LLScriptLessEquals::recurse(), LLScriptNotEquals::recurse(), LLScriptEquality::recurse(), and LLScriptFuncExpressionList::recurse().
const char* const LSCRIPTTypeNames[LST_EOF] |
Initial value:
{ "VOID", "integer", "float", "string", "key", "vector", "quaternion", "list", "invalid" }
Definition at line 475 of file lscript_byteformat.h.
Referenced by lsa_fprint_heap(), lsa_print_heap(), print_add(), print_cast(), print_div(), print_eq(), print_geq(), print_greater(), print_jumpif(), print_jumpnif(), print_leq(), print_less(), print_mod(), print_mul(), print_neg(), print_neq(), print_print(), print_sub(), LLScriptLSOParse::printGlobalFunctions(), LLScriptPrint::recurse(), LLScriptQuaternionInitializer::recurse(), LLScriptVectorInitializer::recurse(), LLScriptTypeCast::recurse(), LLScriptUnaryMinus::recurse(), LLScriptMod::recurse(), LLScriptDivide::recurse(), LLScriptTimes::recurse(), LLScriptMinus::recurse(), LLScriptPlus::recurse(), LLScriptGreaterThan::recurse(), LLScriptLessThan::recurse(), LLScriptGreaterEquals::recurse(), LLScriptLessEquals::recurse(), LLScriptNotEquals::recurse(), LLScriptEquality::recurse(), LLScriptModAssignment::recurse(), LLScriptDivAssignment::recurse(), LLScriptMulAssignment::recurse(), LLScriptSubAssignment::recurse(), LLScriptAddAssignment::recurse(), LLScriptFuncExpressionList::recurse(), and LLScriptType::recurse().
Definition at line 45 of file lscript_byteformat.h.
Referenced by LLScriptScriptCodeChunk::build(), LLScriptScript::recurse(), and LLScriptState::recurse().
const S32 LSL2_MAJOR_VERSION_ONE = 1 |
Definition at line 43 of file lscript_byteformat.h.
Referenced by get_event_stack_size(), get_state_event_opcoode_start(), and LLScriptLSOParse::printRegisters().
const S32 LSL2_MAJOR_VERSION_TWO = 2 |
Definition at line 44 of file lscript_byteformat.h.
Referenced by LLScriptScriptCodeChunk::build(), get_event_stack_size(), get_state_event_opcoode_start(), LLScriptLSOParse::printRegisters(), LLScriptLSOParse::printStates(), LLScriptScript::recurse(), and LLScriptState::recurse().
const S32 LSL2_VERSION1_END_NUMBER = 0x0101 |
Definition at line 40 of file lscript_byteformat.h.
Referenced by get_event_stack_size(), get_handled_events(), get_state_event_opcoode_start(), LLScriptLSOParse::printRegisters(), LLScriptExecute::run(), and run_state().
const S32 LSL2_VERSION2_START_NUMBER = 0x0200 |
Definition at line 41 of file lscript_byteformat.h.
const S32 LSL2_VERSION_NUMBER = 0x0200 |
Definition at line 39 of file lscript_byteformat.h.
Referenced by LLScriptScriptCodeChunk::build(), get_event_stack_size(), get_handled_events(), get_state_event_opcoode_start(), LLScriptLSOParse::printRegisters(), LLScriptExecute::run(), and run_state().
const S32 TOP_OF_MEMORY = 16384 |
Definition at line 47 of file lscript_byteformat.h.
Referenced by get_event_stack_size(), get_state_event_opcoode_start(), LLScriptLibData::LLScriptLibData(), LLScriptScript::recurse(), reset_hp_to_safe_spot(), and LLScriptLibData::set().