Java Class Encryption and License Management
Create evaluation versions, host- and user based licenses using
the same installation package. FREE evaluation version available.
www.jsecurity.net

StubQueue Class Reference

#include <stubs.hpp>

Inheritance diagram for StubQueue:

CHeapObj

Public Member Functions

 StubQueue (StubInterface *stub_interface, int buffer_size, Mutex *lock, const char *name)
 ~StubQueue ()
bool is_empty () const
int total_space () const
int available_space () const
int used_space () const
int number_of_stubs () const
bool contains (address pc) const
Stub * stub_containing (address pc) const
address code_start () const
address code_end () const
Stub * request_committed (int code_size)
Stub * request (int requested_code_size)
void commit (int committed_code_size)
void remove_first ()
void remove_first (int n)
void remove_all ()
void stubs_do (void f(Stub *s))
Stub * first () const
Stub * next (Stub *s) const
address stub_code_begin (Stub *s) const
address stub_code_end (Stub *s) const
void verify ()
void print ()

Static Public Member Functions

static void queues_do (void f(StubQueue *s))

Private Member Functions

void check_index (int i) const
bool is_contiguous () const
int index_of (Stub *s) const
Stub * stub_at (int i) const
Stub * current_stub () const
void stub_initialize (Stub *s, int size)
void stub_finalize (Stub *s)
int stub_size (Stub *s) const
bool stub_contains (Stub *s, address pc) const
int stub_code_size_to_size (int code_size) const
void stub_verify (Stub *s)
void stub_print (Stub *s)

Static Private Member Functions

static void register_queue (StubQueue *)

Private Attributes

StubInterface_stub_interface
address _stub_buffer
int _buffer_size
int _buffer_limit
int _queue_begin
int _queue_end
int _number_of_stubs
Mutex *const _mutex

Friends

class VMStructs

Detailed Description

Definition at line 141 of file stubs.hpp.


Constructor & Destructor Documentation

StubQueue::StubQueue ( StubInterface stub_interface,
int  buffer_size,
Mutex lock,
const char *  name 
)

StubQueue::~StubQueue (  ) 

Definition at line 80 of file stubs.cpp.


Member Function Documentation

int StubQueue.available_space (  )  const

void StubQueue.check_index ( int  i  )  const [private]

Definition at line 153 of file stubs.hpp.

References _buffer_limit.

Referenced by index_of(), and stub_at().

address StubQueue.code_end (  )  const

Definition at line 184 of file stubs.hpp.

References _buffer_limit, and _stub_buffer.

Referenced by AbstractInterpreterGenerator.generate_all().

address StubQueue.code_start (  )  const

Definition at line 183 of file stubs.hpp.

References _stub_buffer.

void StubQueue::commit ( int  committed_code_size  ) 

bool StubQueue.contains ( address  pc  )  const

Stub* StubQueue.current_stub (  )  const [private]

Definition at line 157 of file stubs.hpp.

References _queue_end, and stub_at().

Referenced by commit(), and request().

Stub* StubQueue.first (  )  const

Definition at line 199 of file stubs.hpp.

References _queue_begin, number_of_stubs(), and stub_at().

Referenced by print(), remove_first(), stub_containing(), stubs_do(), and verify().

int StubQueue.index_of ( Stub *  s  )  const [private]

Definition at line 155 of file stubs.hpp.

References _stub_buffer, and check_index().

Referenced by next().

bool StubQueue.is_contiguous (  )  const [private]

Definition at line 154 of file stubs.hpp.

References _queue_begin, and _queue_end.

Referenced by request(), and verify().

bool StubQueue.is_empty (  )  const

Definition at line 176 of file stubs.hpp.

References _queue_begin, and _queue_end.

Referenced by request().

Stub* StubQueue.next ( Stub *  s  )  const

Definition at line 200 of file stubs.hpp.

References _buffer_limit, _queue_end, index_of(), stub_at(), and stub_size().

Referenced by print(), stub_containing(), stubs_do(), and verify().

int StubQueue.number_of_stubs (  )  const

void StubQueue::print (  ) 

Definition at line 252 of file stubs.cpp.

References _mutex, first(), next(), and stub_print().

Referenced by AbstractInterpreter.print().

static void StubQueue.queues_do ( void   fStubQueue *s  )  [static]

void StubQueue::register_queue ( StubQueue sq  )  [static, private]

Definition at line 196 of file stubs.cpp.

Referenced by StubQueue().

void StubQueue::remove_all (  ) 

Definition at line 186 of file stubs.cpp.

References number_of_stubs(), remove_first(), and verify().

Referenced by InlineCacheBuffer.update_inline_caches().

void StubQueue::remove_first ( int  n  ) 

Definition at line 180 of file stubs.cpp.

References number_of_stubs(), and remove_first().

void StubQueue::remove_first (  ) 

Stub * StubQueue::request ( int  requested_code_size  ) 

Stub * StubQueue::request_committed ( int  code_size  ) 

Definition at line 99 of file stubs.cpp.

References commit(), and request().

Referenced by InlineCacheBuffer.init_next_stub(), and InlineCacheBuffer.new_ic_stub().

Stub* StubQueue.stub_at ( int  i  )  const [private]

Definition at line 156 of file stubs.hpp.

References _stub_buffer, and check_index().

Referenced by current_stub(), first(), and next().

address StubQueue.stub_code_begin ( Stub *  s  )  const

Definition at line 205 of file stubs.hpp.

References _stub_interface, and StubInterface.code_begin().

address StubQueue.stub_code_end ( Stub *  s  )  const

Definition at line 206 of file stubs.hpp.

References _stub_interface, and StubInterface.code_end().

int StubQueue.stub_code_size_to_size ( int  code_size  )  const [private]

Definition at line 164 of file stubs.hpp.

References _stub_interface, and StubInterface.code_size_to_size().

Referenced by commit(), and request().

Stub * StubQueue::stub_containing ( address  pc  )  const

Definition at line 89 of file stubs.cpp.

References contains(), first(), next(), and stub_contains().

Referenced by AbstractInterpreter.codelet_containing().

bool StubQueue.stub_contains ( Stub *  s,
address  pc 
) const [private]

Definition at line 163 of file stubs.hpp.

References _stub_interface, StubInterface.code_begin(), and StubInterface.code_end().

Referenced by stub_containing().

void StubQueue.stub_finalize ( Stub *  s  )  [private]

Definition at line 161 of file stubs.hpp.

References _stub_interface, and StubInterface.finalize().

Referenced by remove_first().

void StubQueue.stub_initialize ( Stub *  s,
int  size 
) [private]

Definition at line 160 of file stubs.hpp.

References _stub_interface, and StubInterface.initialize().

Referenced by commit(), and request().

void StubQueue.stub_print ( Stub *  s  )  [private]

Definition at line 166 of file stubs.hpp.

References _stub_interface, and StubInterface.print().

Referenced by print().

int StubQueue.stub_size ( Stub *  s  )  const [private]

Definition at line 162 of file stubs.hpp.

References _stub_interface, and StubInterface.size().

Referenced by commit(), next(), and remove_first().

void StubQueue.stub_verify ( Stub *  s  )  [private]

Definition at line 165 of file stubs.hpp.

References _stub_interface, and StubInterface.verify().

Referenced by commit(), remove_first(), and verify().

void StubQueue::stubs_do ( void   fStub *s  ) 

Definition at line 216 of file stubs.cpp.

References _mutex, first(), next(), and verify().

int StubQueue.total_space (  )  const

Definition at line 177 of file stubs.hpp.

References _buffer_size.

Referenced by AbstractInterpreter.print(), and used_space().

int StubQueue.used_space (  )  const

Definition at line 179 of file stubs.hpp.

References available_space(), and total_space().

Referenced by AbstractInterpreter.print().

void StubQueue::verify (  ) 


Friends And Related Function Documentation

friend class VMStructs [friend]

Definition at line 142 of file stubs.hpp.


Field Documentation

int StubQueue._buffer_limit [private]

Definition at line 147 of file stubs.hpp.

Referenced by check_index(), code_end(), contains(), next(), remove_first(), request(), StubQueue(), and verify().

int StubQueue._buffer_size [private]

Definition at line 146 of file stubs.hpp.

Referenced by available_space(), remove_first(), request(), StubQueue(), total_space(), and verify().

Mutex* const StubQueue._mutex [private]

Definition at line 151 of file stubs.hpp.

Referenced by commit(), print(), request(), stubs_do(), and verify().

Definition at line 150 of file stubs.hpp.

Referenced by commit(), number_of_stubs(), remove_first(), and StubQueue().

int StubQueue._queue_begin [private]

Definition at line 148 of file stubs.hpp.

Referenced by available_space(), first(), is_contiguous(), is_empty(), remove_first(), StubQueue(), and verify().

int StubQueue._queue_end [private]

address StubQueue._stub_buffer [private]

Definition at line 145 of file stubs.hpp.

Referenced by code_end(), code_start(), contains(), index_of(), stub_at(), StubQueue(), and verify().


The documentation for this class was generated from the following files:

Powered by jsecurity.net
Generated by doxygen 1.5.7.1