bootstrap Class Reference

#include <bootstrap.hpp>

Inheritance diagram for bootstrap:

Inheritance graph
[legend]
Collaboration diagram for bootstrap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 bootstrap (char *name)
 ~bootstrap ()
bool has_error ()
void read_mark (markOop *mark_addr)
void read_oop (oop *oop_addr)
char read_byte ()
doubleByte read_doubleByte ()
long read_long ()
double read_double ()
bool new_format () const
bool is_byte ()

Private Member Functions

void initialize_tables (int initial_table_size)
void add (oop obj)
oop at (int index)
char get_char ()
int get_integer ()
void open_file ()
void parse_file ()
oop get_object ()
void close_file ()
void insert_symbol (memOop obj)

Private Attributes

oopoop_table
int number_of_oops
int max_number_of_oops
int position
bool _new_format
char * file_name
FILE * stream
int file_size
bool _has_error

Detailed Description

Definition at line 26 of file bootstrap.hpp.


Constructor & Destructor Documentation

bootstrap::bootstrap ( char *  name  ) 

Definition at line 29 of file bootstrap.cpp.

References _has_error, Universe::cleanup_after_bootstrap(), close_file(), file_name, file_size, has_error(), initialize_tables(), K, open_file(), and parse_file().

Here is the call graph for this function:

bootstrap::~bootstrap (  ) 

Definition at line 48 of file bootstrap.cpp.

References FreeHeap(), and oop_table.

Here is the call graph for this function:


Member Function Documentation

void bootstrap::add ( oop  obj  )  [private]

Definition at line 58 of file bootstrap.cpp.

References FreeHeap(), max_number_of_oops, NEW_C_HEAP_ARRAY, number_of_oops, and oop_table.

Referenced by get_object().

Here is the call graph for this function:

oop bootstrap::at ( int  index  )  [private]

Definition at line 52 of file bootstrap.cpp.

References error(), number_of_oops, and oop_table.

Referenced by get_object().

Here is the call graph for this function:

void bootstrap::close_file (  )  [private]

Definition at line 234 of file bootstrap.cpp.

References stream.

Referenced by bootstrap().

char bootstrap::get_char (  )  [private]

Definition at line 84 of file bootstrap.cpp.

References position, and stream.

Referenced by get_object(), read_byte(), and read_mark().

int bootstrap::get_integer (  )  [private]

Definition at line 89 of file bootstrap.cpp.

References assert, fatal, position, and stream.

Referenced by get_object(), parse_file(), read_doubleByte(), and read_long().

oop bootstrap::get_object (  )  [private]

Definition at line 163 of file bootstrap.cpp.

References add(), Universe::allocate_tenured(), as_memOop(), as_smiOop(), at(), fatal, get_char(), get_integer(), KLASS_CASE, OBJECT_CASE, OBJECT_ERROR, memOopDesc::raw_at_put(), set_associationKlass_vtbl(), set_blockClosureKlass_vtbl(), set_byteArrayKlass_vtbl(), set_contextKlass_vtbl(), set_doubleByteArrayKlass_vtbl(), set_doubleKlass_vtbl(), set_doubleValueArrayKlass_vtbl(), set_klassKlass_vtbl(), set_memOopKlass_vtbl(), set_methodKlass_vtbl(), set_mixinKlass_vtbl(), set_objArrayKlass_vtbl(), set_processKlass_vtbl(), set_proxyKlass_vtbl(), set_smiKlass_vtbl(), set_symbolKlass_vtbl(), set_vframeKlass_vtbl(), set_weakArrayKlass_vtbl(), smiOop_zero, and SYMBOL_CASE.

Referenced by parse_file(), and read_oop().

Here is the call graph for this function:

bool bootstrap::has_error (  )  [inline]

Definition at line 62 of file bootstrap.hpp.

References _has_error.

Referenced by bootstrap().

void bootstrap::initialize_tables ( int  initial_table_size  )  [private]

Definition at line 41 of file bootstrap.cpp.

References max_number_of_oops, NEW_C_HEAP_ARRAY, number_of_oops, oop_table, and position.

Referenced by bootstrap().

void bootstrap::insert_symbol ( memOop  obj  )  [private]

Definition at line 147 of file bootstrap.cpp.

References symbolTable::add_symbol(), lprintf(), oopDesc::print_value(), and Universe::symbol_table.

Here is the call graph for this function:

bool bootstrap::is_byte (  )  [inline]

Definition at line 74 of file bootstrap.hpp.

References stream.

Referenced by methodOopDesc::bootstrap_object().

bool bootstrap::new_format (  )  const [inline]

Definition at line 72 of file bootstrap.hpp.

References _new_format.

Referenced by memOopDesc::bootstrap_header().

void bootstrap::open_file (  )  [private]

Definition at line 73 of file bootstrap.cpp.

References _has_error, file_name, file_size, lprintf(), and stream.

Referenced by bootstrap().

Here is the call graph for this function:

void bootstrap::parse_file (  )  [private]

Definition at line 98 of file bootstrap.cpp.

References Universe::_asciiCharacters, Universe::_associationKlassObj, Universe::_byteArrayKlassObj, Universe::_memOopKlassObj, Universe::_methodKlassObj, _new_format, Universe::_objArrayKlassObj, Universe::_systemDictionaryObj, Universe::_vframeKlassObj, contextKlassObj, doubleKlassObj, eightArgumentBlockKlassObj, falseObj, fiveArgumentBlockKlassObj, fourArgumentBlockKlassObj, get_integer(), get_object(), lprintf(), nilObj, nineArgumentBlockKlassObj, oneArgumentBlockKlassObj, sevenArgumentBlockKlassObj, sixArgumentBlockKlassObj, smiKlassObj, symbolKlassObj, threeArgumentBlockKlassObj, trueObj, twoArgumentBlockKlassObj, Bytecodes::version(), and zeroArgumentBlockKlassObj.

Referenced by bootstrap().

Here is the call graph for this function:

char bootstrap::read_byte (  )  [inline]

Definition at line 67 of file bootstrap.hpp.

References get_char().

Referenced by methodOopDesc::bootstrap_object(), and byteArrayOopDesc::bootstrap_object().

Here is the call graph for this function:

double bootstrap::read_double (  ) 

Definition at line 247 of file bootstrap.cpp.

References position, and stream.

Referenced by doubleValueArrayOopDesc::bootstrap_object(), and doubleOopDesc::bootstrap_object().

doubleByte bootstrap::read_doubleByte (  )  [inline]

Definition at line 68 of file bootstrap.hpp.

References get_integer().

Referenced by doubleByteArrayOopDesc::bootstrap_object().

Here is the call graph for this function:

long bootstrap::read_long (  )  [inline]

Definition at line 69 of file bootstrap.hpp.

References get_integer().

Referenced by proxyOopDesc::bootstrap_object().

Here is the call graph for this function:

void bootstrap::read_mark ( markOop mark_addr  ) 

Definition at line 238 of file bootstrap.cpp.

References fatal, get_char(), markOopDesc::tagged_prototype(), and markOopDesc::untagged_prototype().

Referenced by memOopDesc::bootstrap_header().

Here is the call graph for this function:

void bootstrap::read_oop ( oop oop_addr  )  [inline]

Definition at line 65 of file bootstrap.hpp.

References get_object().

Referenced by memOopDesc::bootstrap_body(), memOopDesc::bootstrap_header(), Klass::bootstrap_klass_part_one(), Klass::bootstrap_klass_part_two(), objArrayOopDesc::bootstrap_object(), mixinOopDesc::bootstrap_object(), methodOopDesc::bootstrap_object(), doubleValueArrayOopDesc::bootstrap_object(), doubleByteArrayOopDesc::bootstrap_object(), byteArrayOopDesc::bootstrap_object(), and associationOopDesc::bootstrap_object().

Here is the call graph for this function:


Member Data Documentation

bool bootstrap::_has_error [private]

Definition at line 50 of file bootstrap.hpp.

Referenced by bootstrap(), has_error(), and open_file().

bool bootstrap::_new_format [private]

Definition at line 35 of file bootstrap.hpp.

Referenced by new_format(), and parse_file().

char* bootstrap::file_name [private]

Definition at line 43 of file bootstrap.hpp.

Referenced by bootstrap(), and open_file().

int bootstrap::file_size [private]

Definition at line 45 of file bootstrap.hpp.

Referenced by bootstrap(), and open_file().

int bootstrap::max_number_of_oops [private]

Definition at line 31 of file bootstrap.hpp.

Referenced by add(), and initialize_tables().

int bootstrap::number_of_oops [private]

Definition at line 30 of file bootstrap.hpp.

Referenced by add(), at(), and initialize_tables().

oop* bootstrap::oop_table [private]

Definition at line 29 of file bootstrap.hpp.

Referenced by add(), at(), initialize_tables(), and ~bootstrap().

int bootstrap::position [private]

Definition at line 33 of file bootstrap.hpp.

Referenced by get_char(), get_integer(), initialize_tables(), and read_double().

FILE* bootstrap::stream [private]

Definition at line 44 of file bootstrap.hpp.

Referenced by close_file(), get_char(), get_integer(), is_byte(), open_file(), and read_double().


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