util.hpp File Reference

Go to the source code of this file.

Functions

void printIndent ()
void copy_oops_up (oop *from, oop *to, int count)
void set_oops (oop *to, int count, oop value=NULL)
char * copy_string (char *s)
char * copy_string (char *s, smi len)
char * copy_c_heap_string (char *s)
void copy_oops_down (oop *from, oop *to, int count)
void copy_oops (oop *from, oop *to, int count)
void copy_oops_overlapping (oop *from, oop *to, int count)
void copy_words (int *from, int *to, int count)
void set_words (int *from, int count, int value=0)
int min (int a, int b)
int max (int a, int b)
int min (int a, int b, int c)
int max (int a, int b, int c)
int byte_size (void *from, void *to)
void Unused (int x)
void Unused (void *x)

Variables

int Indent
oop catchThisOne
const int K = 1024
const int M = K * K
const int oopSize = sizeof(oop)
const int floatSize = sizeof(double)


Function Documentation

int byte_size ( void *  from,
void *  to 
) [inline]

Definition at line 72 of file util.hpp.

Referenced by space::capacity(), space::free(), and space::used().

char* copy_c_heap_string ( char *  s  ) 

Definition at line 132 of file util.cpp.

References NEW_C_HEAP_ARRAY.

void copy_oops ( oop from,
oop to,
int  count 
) [inline]

Definition at line 44 of file util.hpp.

References copy_oops_up().

Referenced by space::compact(), memOopDesc::copy_to_survivor_space(), and copy_words().

Here is the call graph for this function:

void copy_oops_down ( oop from,
oop to,
int  count 
)

Definition at line 91 of file util.cpp.

References assert, DO_DOWN, maskBits, and Tag_Size.

Referenced by copy_oops_overlapping().

void copy_oops_overlapping ( oop from,
oop to,
int  count 
) [inline]

Definition at line 46 of file util.hpp.

References copy_oops_down(), and copy_oops_up().

Here is the call graph for this function:

void copy_oops_up ( oop from,
oop to,
int  count 
)

Referenced by copy_oops(), and copy_oops_overlapping().

char* copy_string ( char *  s,
smi  len 
)

Definition at line 139 of file util.cpp.

References NEW_RESOURCE_ARRAY.

char* copy_string ( char *  s  ) 

Definition at line 125 of file util.cpp.

References NEW_RESOURCE_ARRAY.

void copy_words ( int *  from,
int *  to,
int  count 
) [inline]

Definition at line 51 of file util.hpp.

References copy_oops().

Here is the call graph for this function:

int max ( int  a,
int  b,
int  c 
) [inline]

Definition at line 61 of file util.hpp.

References max().

Here is the call graph for this function:

int max ( int  a,
int  b 
) [inline]

Definition at line 59 of file util.hpp.

int min ( int  a,
int  b,
int  c 
) [inline]

Definition at line 60 of file util.hpp.

References min().

Here is the call graph for this function:

int min ( int  a,
int  b 
) [inline]

Definition at line 58 of file util.hpp.

void printIndent (  ) 

Definition at line 31 of file util.cpp.

References Indent, and lprintf().

Here is the call graph for this function:

void set_oops ( oop to,
int  count,
oop  value = NULL 
)

Referenced by space::clear(), PRIM_DECL_2(), and set_words().

void set_words ( int *  from,
int  count,
int  value = 0 
) [inline]

Definition at line 54 of file util.hpp.

References set_oops().

Referenced by rSet::clear(), and ageTable::clear().

Here is the call graph for this function:

void Unused ( void *  x  )  [inline]

Definition at line 83 of file util.hpp.

void Unused ( int  x  )  [inline]

Definition at line 82 of file util.hpp.

Referenced by ValueObj::operator delete(), StackObj::operator delete(), ValueObj::operator new(), StackObj::operator new(), and symbolKlass::scavenge().


Variable Documentation

oop catchThisOne

Definition at line 146 of file util.cpp.

const int floatSize = sizeof(double)

Definition at line 70 of file util.hpp.

Referenced by InterpreterGenerator::float_addr(), methodOopDesc::float_offset(), methodOopDesc::float_section_size(), and Interpreter::oopify_FloatValue().

int Indent

Definition at line 29 of file util.cpp.

Referenced by printIndent().

const int K = 1024

Definition at line 66 of file util.hpp.

Referenced by InliningDatabase::add_lookup_entry(), bootstrap::bootstrap(), oldSpace::expand_and_allocate(), PRIM_DECL_1(), space::print(), generation::print(), and scale_and_adjust().

const int M = K * K

Definition at line 67 of file util.hpp.

const int oopSize = sizeof(oop)

Definition at line 69 of file util.hpp.

Referenced by InterpreterGenerator::advance_aligned(), ResourceArea::allocate_bytes(), allocateBlock(), doubleValueArrayKlass::allocateObjectSize(), doubleByteArrayKlass::allocateObjectSize(), byteArrayKlass::allocateObjectSize(), allocateTenuredBlock(), InterpreterGenerator::arg_addr(), MacroAssembler::call_C(), space::clear(), oopFactory::clone_double_to_oldspace(), CodeIterator::CodeIterator(), methodOopDesc::codes_end(), methodKlass::constructMethod(), blockClosureOopDesc::context_byte_offset(), MethodIterator::dispatch(), methodOopDesc::float_offset(), methodOopDesc::float_section_size(), StubRoutines::generate_call_DLL(), StubRoutines::generate_megamorphic_ic(), vframeOopDesc::header_size(), proxyOopDesc::header_size(), processOopDesc::header_size(), mixinOopDesc::header_size(), methodOopDesc::header_size(), memOopDesc::header_size(), klassOopDesc::header_size(), doubleOopDesc::header_size(), contextOopDesc::header_size(), blockClosureOopDesc::header_size(), associationOopDesc::header_size(), memOopDesc::klass_byte_offset(), InterpreterGenerator::load_recv(), memOopDesc::mark_byte_offset(), blockClosureOopDesc::method_or_entry_byte_offset(), oopFactory::new_double(), new_double(), CodeIterator::next_hp(), doubleValueArrayKlass::object_size(), doubleByteArrayKlass::object_size(), byteArrayKlass::object_size(), PRIM_DECL_2(), PRIM_DECL_6(), Counter::print(), InterpreterGenerator::push_instVar(), InterpreterGenerator::return_instVar(), InterpreterGenerator::return_tos(), Universe::scavenge(), MacroAssembler::set_last_Delta_frame_after_call(), InterpreterGenerator::skip_words(), InterpreterGenerator::store_instVar(), InterpreterGenerator::temp_addr(), and doubleOopDesc::value_offset().


Generated on Mon Oct 9 13:46:43 2006 for Strongtalk VM by  doxygen 1.4.7