lscript_alloc.cpp File Reference

#include "linden_common.h"
#include "lscript_alloc.h"
#include "llrand.h"

Include dependency graph for lscript_alloc.cpp:

Go to the source code of this file.

Functions

void reset_hp_to_safe_spot (const U8 *buffer)
BOOL lsa_create_heap (U8 *heap_start, S32 size)
S32 lsa_heap_top (U8 *heap_start, S32 maxtop)
S32 lsa_heap_add_data (U8 *buffer, LLScriptLibData *data, S32 heapsize, BOOL b_delete)
void lsa_split_block (U8 *buffer, S32 &offset, S32 size, LLScriptAllocEntry &entry)
void lsa_insert_data (U8 *buffer, S32 &offset, LLScriptLibData *data, LLScriptAllocEntry &entry, S32 heapsize)
S32 lsa_create_data_block (U8 **buffer, LLScriptLibData *data, S32 base_offset)
void lsa_increase_ref_count (U8 *buffer, S32 offset)
void lsa_decrease_ref_count (U8 *buffer, S32 offset)
LLScriptLibDatalsa_get_data (U8 *buffer, S32 &offset, BOOL b_dec_ref)
LLScriptLibDatalsa_get_list_ptr (U8 *buffer, S32 &offset, BOOL b_dec_ref)
S32 lsa_cat_strings (U8 *buffer, S32 offset1, S32 offset2, S32 heapsize)
S32 lsa_cmp_strings (U8 *buffer, S32 offset1, S32 offset2)
void lsa_print_heap (U8 *buffer)
void lsa_fprint_heap (U8 *buffer, LLFILE *fp)
S32 lsa_cat_lists (U8 *buffer, S32 offset1, S32 offset2, S32 heapsize)
S32 lsa_cmp_lists (U8 *buffer, S32 offset1, S32 offset2)
S32 lsa_preadd_lists (U8 *buffer, LLScriptLibData *data, S32 offset2, S32 heapsize)
S32 lsa_postadd_lists (U8 *buffer, S32 offset1, LLScriptLibData *data, S32 heapsize)
LLScriptLibDatalsa_randomize (LLScriptLibData *src, S32 stride)

Variables

char gLSAStringRead [TOP_OF_MEMORY]


Function Documentation

S32 lsa_cat_lists ( U8 buffer,
S32  offset1,
S32  offset2,
S32  heapsize 
)

Definition at line 921 of file lscript_alloc.cpp.

References get_register(), LREG_FR, lsa_get_data(), lsa_heap_add_data(), LSRF_HEAP_ERROR, LST_LIST, LLScriptLibData::mListp, LLScriptLibData::mType, NULL, tut::runner, set_fault(), and TRUE.

Referenced by list_list_operation().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 lsa_cat_strings ( U8 buffer,
S32  offset1,
S32  offset2,
S32  heapsize 
)

Definition at line 662 of file lscript_alloc.cpp.

References get_register(), LREG_FR, lsa_get_data(), lsa_heap_add_data(), LSRF_HEAP_ERROR, LST_KEY, LST_STRING, LLScriptLibData::mKey, LLScriptLibData::mString, LLScriptLibData::mType, NULL, S32, set_fault(), and TRUE.

Referenced by string_string_operation().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 lsa_cmp_lists ( U8 buffer,
S32  offset1,
S32  offset2 
)

Definition at line 973 of file lscript_alloc.cpp.

References FALSE, get_register(), LLScriptLibData::getListLength(), LREG_FR, lsa_get_data(), LSRF_HEAP_ERROR, LST_LIST, LLScriptLibData::mType, S32, set_fault(), and TRUE.

Referenced by list_list_operation().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 lsa_cmp_strings ( U8 buffer,
S32  offset1,
S32  offset2 
)

Definition at line 730 of file lscript_alloc.cpp.

References get_register(), LREG_FR, lsa_get_data(), LSRF_HEAP_ERROR, LST_KEY, LST_STRING, LLScriptLibData::mKey, LLScriptLibData::mString, LLScriptLibData::mType, NULL, S32, set_fault(), and TRUE.

Referenced by key_key_operation(), key_string_operation(), string_key_operation(), and string_string_operation().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 lsa_create_data_block ( U8 **  buffer,
LLScriptLibData data,
S32  base_offset 
)

BOOL lsa_create_heap ( U8 heap_start,
S32  size 
)

Definition at line 69 of file lscript_alloc.cpp.

References alloc_entry2bytestream(), LST_NULL, S32, and TRUE.

Here is the call graph for this function:

void lsa_decrease_ref_count ( U8 buffer,
S32  offset 
)

void lsa_fprint_heap ( U8 buffer,
LLFILE fp 
)

LLScriptLibData* lsa_get_data ( U8 buffer,
S32 offset,
BOOL  b_dec_ref 
)

LLScriptLibData* lsa_get_list_ptr ( U8 buffer,
S32 offset,
BOOL  b_dec_ref 
)

S32 lsa_heap_add_data ( U8 buffer,
LLScriptLibData data,
S32  heapsize,
BOOL  b_delete 
)

S32 lsa_heap_top ( U8 heap_start,
S32  maxtop 
)

Definition at line 80 of file lscript_alloc.cpp.

References bytestream2alloc_entry(), LLScriptAllocEntry::mSize, and S32.

Here is the call graph for this function:

void lsa_increase_ref_count ( U8 buffer,
S32  offset 
)

void lsa_insert_data ( U8 buffer,
S32 offset,
LLScriptLibData data,
LLScriptAllocEntry entry,
S32  heapsize 
)

S32 lsa_postadd_lists ( U8 buffer,
S32  offset1,
LLScriptLibData data,
S32  heapsize 
)

S32 lsa_preadd_lists ( U8 buffer,
LLScriptLibData data,
S32  offset2,
S32  heapsize 
)

void lsa_print_heap ( U8 buffer  ) 

LLScriptLibData* lsa_randomize ( LLScriptLibData src,
S32  stride 
)

Definition at line 1084 of file lscript_alloc.cpp.

References LLScriptLibData::getListLength(), ll_rand(), LLScriptLibData::mListp, NULL, and S32.

Here is the call graph for this function:

void lsa_split_block ( U8 buffer,
S32 offset,
S32  size,
LLScriptAllocEntry entry 
)

Definition at line 260 of file lscript_alloc.cpp.

References alloc_entry2bytestream(), get_register(), LREG_FR, LLScriptAllocEntry::mSize, S32, and SIZEOF_SCRIPT_ALLOC_ENTRY.

Referenced by lsa_heap_add_data().

Here is the call graph for this function:

Here is the caller graph for this function:

void reset_hp_to_safe_spot ( const U8 buffer  ) 

Definition at line 63 of file lscript_alloc.cpp.

References LREG_HP, set_register(), and TOP_OF_MEMORY.

Referenced by bytestream2alloc_entry(), lsa_heap_add_data(), and set_fault().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 529 of file lscript_alloc.cpp.

Referenced by lsa_get_data().


Generated on Fri May 16 08:36:03 2008 for SecondLife by  doxygen 1.5.5