|
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 |
#include <stubs.hpp>

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 |
Definition at line 141 of file stubs.hpp.
| StubQueue::StubQueue | ( | StubInterface * | stub_interface, | |
| int | buffer_size, | |||
| Mutex * | lock, | |||
| const char * | name | |||
| ) |
Definition at line 64 of file stubs.cpp.
References _buffer_limit, _buffer_size, _number_of_stubs, _queue_begin, _queue_end, _stub_buffer, _stub_interface, BufferBlob.create(), and register_queue().
| int StubQueue.available_space | ( | ) | const |
Definition at line 178 of file stubs.hpp.
References _buffer_size, _queue_begin, and _queue_end.
Referenced by CodeletMark.codelet_size(), AbstractInterpreter.print(), request(), and used_space().
| 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 |
| void StubQueue::commit | ( | int | committed_code_size | ) |
Definition at line 144 of file stubs.cpp.
References _mutex, _number_of_stubs, _queue_end, current_stub(), stub_code_size_to_size(), stub_initialize(), stub_size(), stub_verify(), and Mutex.unlock().
Referenced by request_committed(), and CodeletMark.~CodeletMark().
| bool StubQueue.contains | ( | address | pc | ) | const |
Definition at line 181 of file stubs.hpp.
References _buffer_limit, and _stub_buffer.
Referenced by AbstractInterpreter.contains(), InlineCacheBuffer.contains(), and stub_containing().
| Stub* StubQueue.current_stub | ( | ) | const [private] |
| 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] |
| 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 |
Definition at line 180 of file stubs.hpp.
References _number_of_stubs.
Referenced by first(), InlineCacheBuffer.is_empty(), AbstractInterpreter.print(), remove_all(), remove_first(), and verify().
| 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] |
| 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 | ) |
| void StubQueue::remove_first | ( | ) |
Definition at line 157 of file stubs.cpp.
References _buffer_limit, _buffer_size, _number_of_stubs, _queue_begin, _queue_end, first(), number_of_stubs(), stub_finalize(), stub_size(), and stub_verify().
Referenced by remove_all(), and remove_first().
| Stub * StubQueue::request | ( | int | requested_code_size | ) |
Definition at line 106 of file stubs.cpp.
References _buffer_limit, _buffer_size, _mutex, _queue_end, available_space(), current_stub(), is_contiguous(), is_empty(), Mutex.lock, stub_code_size_to_size(), stub_initialize(), and Mutex.unlock().
Referenced by request_committed().
| 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 |
| 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().
| 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().
| 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 | ) |
| 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 | ( | ) |
Definition at line 223 of file stubs.cpp.
References _buffer_limit, _buffer_size, _mutex, _queue_begin, _queue_end, _stub_buffer, first(), is_contiguous(), next(), number_of_stubs(), and stub_verify().
Referenced by remove_all(), and stubs_do().
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] |
int StubQueue._number_of_stubs [private] |
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] |
Definition at line 149 of file stubs.hpp.
Referenced by available_space(), commit(), current_stub(), is_contiguous(), is_empty(), next(), remove_first(), request(), StubQueue(), and verify().
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().
StubInterface* StubQueue._stub_interface [private] |
Definition at line 144 of file stubs.hpp.
Referenced by stub_code_begin(), stub_code_end(), stub_code_size_to_size(), stub_contains(), stub_finalize(), stub_initialize(), stub_print(), stub_size(), stub_verify(), and StubQueue().
