byteArrayOopDesc Class Reference

#include <byteArrayOop.hpp>

Inheritance diagram for byteArrayOopDesc:

Inheritance graph
[legend]
Collaboration diagram for byteArrayOopDesc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void bootstrap_object (bootstrap *st)
byteArrayOopDescaddr () const
bool is_within_bounds (int index) const
oopaddr_as_oops () const
ooplength_addr () const
smi length () const
void set_length (smi len)
u_charbytes () const
char * chars () const
u_charbyte_at_addr (int which) const
u_char byte_at (int which) const
void byte_at_put (int which, u_char contents)
Integernumber ()
bool verify ()
char * copy_null_terminated (int &Clength)
bool copy_null_terminated (char *buffer, int max_length)
char * copy_null_terminated ()
char * copy_c_heap_null_terminated ()
bool equals (char *name)
bool equals (char *name, int len)
bool equals (byteArrayOop s)
int compare (byteArrayOop arg)
int compare_doubleBytes (doubleByteArrayOop arg)
int hash_value ()
char * as_string ()
int number_of_arguments () const
bool is_unary () const
bool is_binary () const
bool is_keyword () const

Public Attributes

friend byteArrayKlass

Friends

byteArrayOop as_byteArrayOop (void *p)

Detailed Description

Definition at line 35 of file byteArrayOop.hpp.


Member Function Documentation

byteArrayOopDesc* byteArrayOopDesc::addr (  )  const [inline]

Reimplemented from memOopDesc.

Definition at line 44 of file byteArrayOop.hpp.

References memOopDesc::addr().

Referenced by addr_as_oops(), byteArrayKlass::allocateObjectSize(), and PRIM_DECL_2().

Here is the call graph for this function:

oop* byteArrayOopDesc::addr_as_oops (  )  const [inline]

Definition at line 49 of file byteArrayOop.hpp.

References addr().

Referenced by length_addr().

Here is the call graph for this function:

char * byteArrayOopDesc::as_string (  ) 

Definition at line 189 of file byteArrayOop.cpp.

References byte_at(), length(), and NEW_RESOURCE_ARRAY.

Referenced by assocNode::assocNode(), byteArrayNode::byteArrayNode(), classVarNode::classVarNode(), TempPrinter::heap_parameter(), TempPrinter::heap_temp(), scopeNode::heap_temp_string(), scopeNode::inst_var_string(), instVarNode::instVarNode(), scopeNode::param_string(), TempPrinter::parameter(), print_selector_with_arguments(), TempPrinter::stack_float_temp(), scopeNode::stack_float_temp_string(), TempPrinter::stack_temp(), scopeNode::stack_temp_at(), scopeNode::stack_temp_string(), symbolNode::symbolNode(), and messageNode::width_send().

Here is the call graph for this function:

void byteArrayOopDesc::bootstrap_object ( bootstrap st  ) 

Reimplemented from memOopDesc.

Definition at line 115 of file byteArrayOop.cpp.

References memOopDesc::bootstrap_object(), byte_at_put(), length(), length_addr(), bootstrap::read_byte(), and bootstrap::read_oop().

Here is the call graph for this function:

u_char byteArrayOopDesc::byte_at ( int  which  )  const [inline]

Definition at line 74 of file byteArrayOop.hpp.

References byte_at_addr().

Referenced by as_string(), compare_doubleBytes(), methodKlass::constructMethod(), copy_c_heap_null_terminated(), copy_null_terminated(), hash_value(), is_binary(), is_keyword(), is_unary(), number_of_arguments(), symbolKlass::oop_print_value_on(), byteArrayKlass::oop_print_value_on(), PRIM_DECL_2(), print_selector_with_arguments(), and symbolOopDesc::print_symbol_on().

Here is the call graph for this function:

u_char* byteArrayOopDesc::byte_at_addr ( int  which  )  const [inline]

Definition at line 69 of file byteArrayOop.hpp.

References assert, bytes(), and length().

Referenced by byte_at(), and byte_at_put().

Here is the call graph for this function:

void byteArrayOopDesc::byte_at_put ( int  which,
u_char  contents 
) [inline]

Definition at line 76 of file byteArrayOop.hpp.

References byte_at_addr().

Referenced by stringStream::as_byteArray(), byteArrayPrettyPrintStream::asByteArray(), bootstrap_object(), byteArrayKlass::initialize_object(), oopFactory::new_byteArray(), PRIM_DECL_1(), and PRIM_DECL_3().

Here is the call graph for this function:

u_char* byteArrayOopDesc::bytes (  )  const [inline]

Definition at line 63 of file byteArrayOop.hpp.

References length_addr().

Referenced by symbolTable::add(), symbolTable::add_symbol(), byte_at_addr(), chars(), copy_null_terminated(), symbolTable::is_present(), primitives::lookup(), number(), byteArrayKlass::oop_layout_iterate(), and symbolOopDesc::verify().

Here is the call graph for this function:

char* byteArrayOopDesc::chars (  )  const [inline]

Definition at line 67 of file byteArrayOop.hpp.

References bytes().

Referenced by equals(), oopFactory::new_symbol(), and PRIM_DECL_3().

Here is the call graph for this function:

int byteArrayOopDesc::compare ( byteArrayOop  arg  ) 

Definition at line 138 of file byteArrayOop.cpp.

References compare_as_bytes(), length_addr(), min(), roundTo, and sub_sign().

Here is the call graph for this function:

int byteArrayOopDesc::compare_doubleBytes ( doubleByteArrayOop  arg  ) 

Definition at line 155 of file byteArrayOop.cpp.

References byte_at(), doubleByteArrayOopDesc::doubleByte_at(), doubleByteArrayOopDesc::length(), length(), and sub_sign().

Here is the call graph for this function:

char * byteArrayOopDesc::copy_c_heap_null_terminated (  ) 

Definition at line 74 of file byteArrayOop.cpp.

References assert, assert_byteArray, byte_at(), length(), and NEW_C_HEAP_ARRAY.

Here is the call graph for this function:

char* byteArrayOopDesc::copy_null_terminated (  )  [inline]

Definition at line 99 of file byteArrayOop.hpp.

bool byteArrayOopDesc::copy_null_terminated ( char *  buffer,
int  max_length 
)

Definition at line 99 of file byteArrayOop.cpp.

References byte_at(), and length().

Here is the call graph for this function:

char * byteArrayOopDesc::copy_null_terminated ( int &  Clength  ) 

Definition at line 41 of file byteArrayOop.cpp.

References assert, assert_byteArray, byte_at(), bytes(), copy_string(), length(), and NEW_RESOURCE_ARRAY.

Referenced by DLLs::load(), DLLs::lookup(), scopeNode::param_string(), PRIM_DECL_1(), and PRIM_DECL_2().

Here is the call graph for this function:

bool byteArrayOopDesc::equals ( byteArrayOop  s  )  [inline]

Definition at line 114 of file byteArrayOop.hpp.

References chars(), equals(), and length().

Here is the call graph for this function:

bool byteArrayOopDesc::equals ( char *  name,
int  len 
) [inline]

Definition at line 112 of file byteArrayOop.hpp.

References chars(), and length().

Here is the call graph for this function:

bool byteArrayOopDesc::equals ( char *  name  )  [inline]

Definition at line 108 of file byteArrayOop.hpp.

Referenced by equals(), symbolTable::is_present(), and symbolTable::lookup().

int byteArrayOopDesc::hash_value (  ) 

Definition at line 168 of file byteArrayOop.cpp.

References byte_at(), length(), and markOopDesc::masked_hash().

Referenced by symbolTable::basic_add().

Here is the call graph for this function:

bool byteArrayOopDesc::is_binary (  )  const

Definition at line 223 of file byteArrayOop.cpp.

References byte_at().

Referenced by messageNode::is_binary(), is_keyword(), and is_unary().

Here is the call graph for this function:

bool byteArrayOopDesc::is_keyword (  )  const

Definition at line 227 of file byteArrayOop.cpp.

References byte_at(), is_binary(), and length().

Referenced by messageNode::is_keyword().

Here is the call graph for this function:

bool byteArrayOopDesc::is_unary (  )  const

Definition at line 216 of file byteArrayOop.cpp.

References byte_at(), is_binary(), and length().

Referenced by messageNode::is_unary().

Here is the call graph for this function:

bool byteArrayOopDesc::is_within_bounds ( int  index  )  const [inline]

Definition at line 47 of file byteArrayOop.hpp.

References length().

Here is the call graph for this function:

smi byteArrayOopDesc::length (  )  const [inline]

Definition at line 55 of file byteArrayOop.hpp.

References assert, oopDesc::is_smi(), length_addr(), and smiOopDesc::value().

Referenced by symbolTable::add(), symbolTable::add_symbol(), byteArrayConverter::allocate(), as_string(), bootstrap_object(), byte_at_addr(), compare_doubleBytes(), methodKlass::constructMethod(), copy_c_heap_null_terminated(), copy_null_terminated(), equals(), hash_value(), is_keyword(), symbolTable::is_present(), is_unary(), is_within_bounds(), primitives::lookup(), oopFactory::new_symbol(), number_of_arguments(), byteArrayKlass::oop_layout_iterate(), symbolKlass::oop_print_value_on(), byteArrayKlass::oop_print_value_on(), scopeNode::param_string(), PRIM_DECL_1(), PRIM_DECL_2(), print_selector_with_arguments(), symbolOopDesc::print_symbol_on(), byteArrayConverter::transfer(), symbolOopDesc::verify(), and verify().

Here is the call graph for this function:

oop* byteArrayOopDesc::length_addr (  )  const [inline]

Definition at line 51 of file byteArrayOop.hpp.

References addr_as_oops(), memOopDesc::blueprint(), and Klass::non_indexable_size().

Referenced by bootstrap_object(), bytes(), compare(), length(), byteArrayKlass::oop_layout_iterate(), byteArrayKlass::oop_oop_iterate(), and set_length().

Here is the call graph for this function:

Integer& byteArrayOopDesc::number (  )  [inline]

Definition at line 82 of file byteArrayOop.hpp.

References bytes().

Referenced by PRIM_DECL_1(), PRIM_DECL_2(), PRIM_DECL_3(), and simplified().

Here is the call graph for this function:

int byteArrayOopDesc::number_of_arguments (  )  const

Definition at line 201 of file byteArrayOop.cpp.

References assert, byte_at(), and length().

Referenced by InterpretedIC::does_not_understand(), InterpretedIC::nof_arguments(), MethodPrettyPrinter::normal_send(), ExpressionStackMapper::normal_send(), InterpretedPrim_Cache::number_of_parameters(), PrimitiveCallNode::number_of_parameters(), ExpressionStackMapper::pop(), ExpressionStackMapper::self_send(), MethodPrettyPrinter::special_send(), and messageNode::width_send().

Here is the call graph for this function:

void byteArrayOopDesc::set_length ( smi  len  )  [inline]

Definition at line 60 of file byteArrayOop.hpp.

References as_smiOop(), and length_addr().

Referenced by symbolKlass::allocateSymbol().

Here is the call graph for this function:

bool byteArrayOopDesc::verify (  ) 

Reimplemented from memOopDesc.

Reimplemented in symbolOopDesc.

Definition at line 29 of file byteArrayOop.cpp.

References error(), length(), and memOopDesc::verify().

Referenced by byteArrayKlass::oop_verify(), and symbolOopDesc::verify().

Here is the call graph for this function:


Friends And Related Function Documentation

byteArrayOop as_byteArrayOop ( void *  p  )  [friend]

Definition at line 234 of file byteArrayOop.cpp.


Member Data Documentation

friend byteArrayOopDesc::byteArrayKlass

Definition at line 133 of file byteArrayOop.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Oct 9 13:50:17 2006 for Strongtalk VM by  doxygen 1.4.7