jit_import.h File Reference


Method-related functions

#define CODE_BLOCK_HEAT_COLD   0
 The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().
#define CODE_BLOCK_HEAT_DEFAULT   1
 The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().
#define CODE_BLOCK_HEAT_MAX   20
 The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().
#define METHOD_JIT_ITER_END   0
 The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().
VMEXPORT const Byte * method_get_byte_code_addr (Method_Handle method)
 Get a pointer to the buffer containing the bytecodes for this method.
VMEXPORT size_t method_get_byte_code_size (Method_Handle method)
 Size if the buffer returned by method_get_byte_code_addr().
VMEXPORT unsigned method_get_max_stack (Method_Handle method)
 Maximum depth of the evaluation stack in this method.
VMEXPORT void * method_get_indirect_address (Method_Handle method)
 
Returns:
The address where the code pointer for a given method is.

VMEXPORT unsigned method_get_offset (Method_Handle method)
 
Returns:
The offset in bytes from the start of the vtable to the entry for a given method.

VMEXPORT Byte * method_allocate_data_block (Method_Handle method, JIT_Handle j, size_t size, size_t alignment)
 Allocate the "read-write" data block for this method.
VMEXPORT Byte * method_allocate_jit_data_block (Method_Handle method, JIT_Handle j, size_t size, size_t alignment)
 Allocated a "read-only" data block.
VMEXPORT Byte * method_allocate_code_block (Method_Handle m, JIT_Handle j, size_t size, size_t alignment, CodeBlockHeat heat, int id, Code_Allocation_Action action)
 This function allows allocation of multiple chunks of code with different heat values.
VMEXPORT void method_set_relocatable (Method_Handle m, JIT_Handle j, NativeCodePtr code_address, Boolean is_relocatable)
 The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().
VMEXPORT Byte * method_allocate_info_block (Method_Handle method, JIT_Handle j, size_t size)
 Allocate an info block for this method.
VMEXPORT Byte * method_get_code_block_addr_jit (Method_Handle method, JIT_Handle j)
 Retrieve the memory block allocated earlier by method_allocate_code_block().
VMEXPORT unsigned method_get_code_block_size_jit (Method_Handle method, JIT_Handle j)
 Get the size of the memory block allocated earlier by method_allocate_code_block().
VMEXPORT Byte * method_get_code_block_addr_jit_new (Method_Handle method, JIT_Handle j, int id)
 Retrieve the memory block allocated earlier by method_allocate_code_block().
VMEXPORT unsigned method_get_code_block_size_jit_new (Method_Handle method, JIT_Handle j, int id)
 Get the size of the memory block allocated earlier by method_allocate_code_block().
VMEXPORT Byte * method_get_info_block_jit (Method_Handle method, JIT_Handle j)
 Retrieve the memory block allocated earlier by method_allocate_info_block().
VMEXPORT unsigned method_get_info_block_size_jit (Method_Handle method, JIT_Handle j)
 Get the size of the memory block allocated earlier by method_allocate_info_block().
VMEXPORT Method_Iterator method_get_first_method_jit (JIT_Handle j)
 Here are the obvious three functions to iterate over all methods compiled by a given JIT.
VMEXPORT Method_Iterator method_get_next_method_jit (Method_Iterator mi)
 The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().
VMEXPORT Method_Handle method_get_method_jit (Method_Iterator mi)
 The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().

Experimental functions

enum  CallingConvention {
  CC_Vm, CC_Jrockit, CC_Rotor, CC_Stdcall,
  CC_Cdecl
}
VMEXPORT Boolean jit_may_inline_object_synchronization (unsigned *thread_id_register, unsigned *sync_header_offset, unsigned *sync_header_width, unsigned *lock_owner_offset, unsigned *lock_owner_width, Boolean *jit_clears_ccv)
 These functions are currently not part of the official interface, although they may be promoted in some form in the future.
VMEXPORT CallingConvention vm_managed_calling_convention ()

Typedefs

typedef void * Method_Iterator
 These are the functions that a JIT built as a DLL may call.

Functions

Direct call-related functions
VMEXPORT void vm_register_jit_extended_class_callback (JIT_Handle jit, Class_Handle clss, void *callback_data)
 These functions allow a JIT to be notified whenever a VM data structure changes that would require code patching or recompilation.
VMEXPORT void vm_register_jit_overridden_method_callback (JIT_Handle jit, Method_Handle method, void *callback_data)
 Called by a JIT in order to be notified whenever the given method is overridden by a newly loaded class.
VMEXPORT void vm_register_jit_recompiled_method_callback (JIT_Handle jit, Method_Handle method, void *callback_data)
 Called by a JIT in order to be notified whenever the vtable entries for the given method are changed.
VMEXPORT void vm_patch_code_block (Byte *code_block, Byte *new_code, size_t size)
 Called by a JIT to have the VM replace a section of executable code in a thread-safe fashion.
VMEXPORT void vm_recompile_method (JIT_Handle jit, Method_Handle method)
 Called by a JIT to have the VM recompile a method using the specified JIT.
VMEXPORT JIT_Result vm_compile_method (JIT_Handle jit, Method_Handle method)
 Called by a JIT to have VM synchronously (in the same thread) compile a method It is a requirement that JIT calls this routine only during compilation of other method, not during run-time.
Exception-related compile-time functions
VMEXPORT unsigned method_get_num_handlers (Method_Handle method)
 
Returns:
The number of exception handlers defined for this method in the bytecodes.

VMEXPORT void method_get_handler_info_full (Method_Handle method, unsigned handler_id, unsigned *begin_offset, unsigned *end_offset, unsigned *handler_offset, unsigned *handler_len, unsigned *filter_offset, unsigned *handler_class_index)
 Deprecated.
VMEXPORT void method_get_handler_info (Method_Handle method, unsigned handler_id, unsigned *begin_offset, unsigned *end_offset, unsigned *handler_offset, unsigned *handler_class_index)
 This is a simpler version of method_get_handler_info_full() that works only for JVM.
VMEXPORT Boolean method_handler_has_finally (Method_Handle method, unsigned handler_id)
 Deprecated.
VMEXPORT Boolean method_handler_has_filter (Method_Handle method, unsigned handler_id)
 Deprecated.
VMEXPORT Boolean method_handler_has_fault (Method_Handle method, unsigned handler_id)
 Deprecated.
VMEXPORT void method_set_num_target_handlers (Method_Handle method, JIT_Handle j, unsigned num_handlers)
 Set the number of exception handlers in the code generated by the JIT j for a given method.
VMEXPORT void method_set_target_handler_info (Method_Handle method, JIT_Handle j, unsigned eh_number, void *start_ip, void *end_ip, void *handler_ip, Class_Handle catch_cl, Boolean exc_obj_is_dead)
 Set the information about an exception handler in the code generated by the JIT.
Resolution-related functions
VMEXPORT Class_Handle vm_resolve_class (Compile_Handle h, Class_Handle ch, unsigned idx)
 Resolve a class.
VMEXPORT Class_Handle vm_resolve_class_new (Compile_Handle h, Class_Handle c, unsigned index)
 Resolve a class and provide error checking if the class cannot have an instance, i.e.
VMEXPORT Field_Handle resolve_nonstatic_field (Compile_Handle h, Class_Handle ch, unsigned idx, unsigned putfield)
 Resolve a reference to a non-static field.
VMEXPORT Field_Handle resolve_static_field (Compile_Handle h, Class_Handle ch, unsigned idx, unsigned putfield)
 Resolve constant pool reference to a static field.
VMEXPORT Method_Handle resolve_method (Compile_Handle h, Class_Handle ch, unsigned idx)
 Resolve a method.
VMEXPORT Method_Handle resolve_virtual_method (Compile_Handle h, Class_Handle c, unsigned index)
 Resolve a method.
VMEXPORT Method_Handle resolve_static_method (Compile_Handle h, Class_Handle c, unsigned index)
 Resolve a method.
VMEXPORT Method_Handle resolve_interface_method (Compile_Handle h, Class_Handle c, unsigned index)
 Resolve a method.
Miscellaneous functions
VMEXPORT const char * class_get_const_string (Class_Handle ch, unsigned idx)
 
Returns:
A UTF8 representation of a string declared in a class.

VMEXPORT void * class_get_const_string_intern_addr (Class_Handle ch, unsigned idx)
 
Returns:
The address where the interned version of the string is stored.

VMEXPORT VM_Data_Type class_get_const_type (Class_Handle ch, unsigned idx)
 
Returns:
The type of a compile-time constant.

VMEXPORT const char * class_get_cp_entry_signature (Class_Handle src_class, unsigned short cp_index)
 
Returns:
The signature for field or (interface) method in constant pool entry.

VMEXPORT VM_Data_Type class_get_cp_field_type (Class_Handle src_class, unsigned short cp_index)
 
Returns:
The data type for field in constant pool entry.

VMEXPORT const void * class_get_const_addr (Class_Handle ch, unsigned idx)
 
Returns:
A pointer to the location where the constant is stored.

VMEXPORT void * method_get_native_func_addr (Method_Handle method)
 Looks for a method in native libraries of a class loader.
VMEXPORT JIT_Handle method_get_JIT_id (Compile_Handle h)
 
Returns:
The JIT handle for a the current compilation.


Define Documentation

#define CODE_BLOCK_HEAT_COLD   0

The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().

FIXME merge with CodeBlockHeat enumeration

#define CODE_BLOCK_HEAT_DEFAULT   1

The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().

FIXME merge with CodeBlockHeat enumeration

#define CODE_BLOCK_HEAT_MAX   20

The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().

FIXME merge with CodeBlockHeat enumeration

#define METHOD_JIT_ITER_END   0

The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().

FIXME merge with CodeBlockHeat enumeration


Typedef Documentation

typedef void* Method_Iterator

These are the functions that a JIT built as a DLL may call.


Enumeration Type Documentation

enum CallingConvention

Enumerator:
CC_Vm 
CC_Jrockit 
CC_Rotor 
CC_Stdcall 
CC_Cdecl 


Function Documentation

VMEXPORT void vm_register_jit_extended_class_callback ( JIT_Handle  jit,
Class_Handle  clss,
void *  callback_data 
)

These functions allow a JIT to be notified whenever a VM data structure changes that would require code patching or recompilation.

Called by a JIT in order to be notified whenever the given class (or any of its subclasses?) is extended. The callback_data pointer will be passed back to the JIT during the callback. The callback function is JIT_extended_class_callback.

VMEXPORT void vm_register_jit_overridden_method_callback ( JIT_Handle  jit,
Method_Handle  method,
void *  callback_data 
)

Called by a JIT in order to be notified whenever the given method is overridden by a newly loaded class.

The callback_data pointer will be passed back to the JIT during the callback. The callback function is JIT_overridden_method_callback.

VMEXPORT void vm_register_jit_recompiled_method_callback ( JIT_Handle  jit,
Method_Handle  method,
void *  callback_data 
)

Called by a JIT in order to be notified whenever the vtable entries for the given method are changed.

This could happen, e.g., when a method is first compiled, or when it is recompiled. The callback_data pointer will be passed back to the JIT during the callback. The callback method is JIT_recompiled_method_callback.

VMEXPORT void vm_patch_code_block ( Byte *  code_block,
Byte *  new_code,
size_t  size 
)

Called by a JIT to have the VM replace a section of executable code in a thread-safe fashion.

This function does not synchronize the I- or D-caches. It may be a lot cheaper to batch up the patch requests, so we may need to extend this interface.

VMEXPORT void vm_recompile_method ( JIT_Handle  jit,
Method_Handle  method 
)

Called by a JIT to have the VM recompile a method using the specified JIT.

After recompilation, the corresponding vtable entries will be updated, and the necessary callbacks to JIT_recompiled_method_callback will be made. It is a requirement that the method has not already been compiled by the given JIT; this means that multiple instances of a JIT may need to be active at the same time.

VMEXPORT JIT_Result vm_compile_method ( JIT_Handle  jit,
Method_Handle  method 
)

Called by a JIT to have VM synchronously (in the same thread) compile a method It is a requirement that JIT calls this routine only during compilation of other method, not during run-time.

VMEXPORT unsigned method_get_num_handlers ( Method_Handle  method  ) 

Returns:
The number of exception handlers defined for this method in the bytecodes.

VMEXPORT void method_get_handler_info_full ( Method_Handle  method,
unsigned  handler_id,
unsigned *  begin_offset,
unsigned *  end_offset,
unsigned *  handler_offset,
unsigned *  handler_len,
unsigned *  filter_offset,
unsigned *  handler_class_index 
)

Deprecated.

See also:
method_get_handler_info

VMEXPORT void method_get_handler_info ( Method_Handle  method,
unsigned  handler_id,
unsigned *  begin_offset,
unsigned *  end_offset,
unsigned *  handler_offset,
unsigned *  handler_class_index 
)

This is a simpler version of method_get_handler_info_full() that works only for JVM.

VMEXPORT Boolean method_handler_has_finally ( Method_Handle  method,
unsigned  handler_id 
)

Deprecated.

Returns:
For Java methods, it always returns FALSE since JVM handlers do not have a finally clause.

VMEXPORT Boolean method_handler_has_filter ( Method_Handle  method,
unsigned  handler_id 
)

Deprecated.

Returns:
For Java methods, it always returns FALSE since JVM handlers do not have a filters.

VMEXPORT Boolean method_handler_has_fault ( Method_Handle  method,
unsigned  handler_id 
)

Deprecated.

Returns:
For Java methods, it always returns FALSE since JVM handlers do not have a fault clause.

VMEXPORT void method_set_num_target_handlers ( Method_Handle  method,
JIT_Handle  j,
unsigned  num_handlers 
)

Set the number of exception handlers in the code generated by the JIT j for a given method.

The JIT must then call method_set_target_handler_info() for each of the num_handlers exception handlers.

VMEXPORT void method_set_target_handler_info ( Method_Handle  method,
JIT_Handle  j,
unsigned  eh_number,
void *  start_ip,
void *  end_ip,
void *  handler_ip,
Class_Handle  catch_cl,
Boolean  exc_obj_is_dead 
)

Set the information about an exception handler in the code generated by the JIT.

VMEXPORT const Byte* method_get_byte_code_addr ( Method_Handle  method  ) 

Get a pointer to the buffer containing the bytecodes for this method.

Bytecodes are either JVML instructions or CIL instructions.

VMEXPORT size_t method_get_byte_code_size ( Method_Handle  method  ) 

Size if the buffer returned by method_get_byte_code_addr().

VMEXPORT unsigned method_get_max_stack ( Method_Handle  method  ) 

Maximum depth of the evaluation stack in this method.

VMEXPORT void* method_get_indirect_address ( Method_Handle  method  ) 

Returns:
The address where the code pointer for a given method is.

A simple JIT that doesn't support recompilation (see e.g. vm_register_jit_recompiled_method_callback) can only generate code with indirect branches through the address provided by method_get_indirect_address().

VMEXPORT unsigned method_get_offset ( Method_Handle  method  ) 

Returns:
The offset in bytes from the start of the vtable to the entry for a given method.

VMEXPORT Byte* method_allocate_data_block ( Method_Handle  method,
JIT_Handle  j,
size_t  size,
size_t  alignment 
)

Allocate the "read-write" data block for this method.

This memory block cannot be retrieved later. The intention is to use the data block for data that may be needed during the program execution (e.g. tables for switch statements).

Separation of data allocated by method_allocate_data_block() and method_allocate_info_block() may help improve locality of references to data accessed during execution of compiled code and data accessed during stack uwinding.

See also:
method_allocate_info_block

VMEXPORT Byte* method_allocate_jit_data_block ( Method_Handle  method,
JIT_Handle  j,
size_t  size,
size_t  alignment 
)

Allocated a "read-only" data block.

(? 20030314) This function is deprecated. In all new code, use method_allocate_data_block() only. At some point, we will revisit this interface to have more control over the layout of various memory blocks allocated by the VM.

VMEXPORT Byte* method_allocate_code_block ( Method_Handle  m,
JIT_Handle  j,
size_t  size,
size_t  alignment,
CodeBlockHeat  heat,
int  id,
Code_Allocation_Action  action 
)

This function allows allocation of multiple chunks of code with different heat values.

The JIT is responsible for specifying ids that are unique within the same method. The first instruction of the chunk with id=0 is the entry point of the method.

Deprecated.

Returns:
If the CAA_Allocate argument is specified, memory is allocated and a pointer to it is returned. If the CAA_Simulate argument is specified, no memory is allocated - the same as pass parameter size = 0 - function returns only current address for allocation in pool but no memory is allocated.

VMEXPORT void method_set_relocatable ( Method_Handle  m,
JIT_Handle  j,
NativeCodePtr  code_address,
Boolean  is_relocatable 
)

The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().

FIXME merge with CodeBlockHeat enumeration

VMEXPORT Byte* method_allocate_info_block ( Method_Handle  method,
JIT_Handle  j,
size_t  size 
)

Allocate an info block for this method.

An info block can be later retrieved by the JIT. The JIT may for instance store GC maps for root set enumeration and stack unwinding in the onfo block.

See also:
method_allocate_data_block

VMEXPORT Byte* method_get_code_block_addr_jit ( Method_Handle  method,
JIT_Handle  j 
)

Retrieve the memory block allocated earlier by method_allocate_code_block().

A pair <method, jit> uniquely identifies a code block.

VMEXPORT unsigned method_get_code_block_size_jit ( Method_Handle  method,
JIT_Handle  j 
)

Get the size of the memory block allocated earlier by method_allocate_code_block().

VMEXPORT Byte* method_get_code_block_addr_jit_new ( Method_Handle  method,
JIT_Handle  j,
int  id 
)

Retrieve the memory block allocated earlier by method_allocate_code_block().

A triple <method, jit, id> uniquely identifies a code block.

VMEXPORT unsigned method_get_code_block_size_jit_new ( Method_Handle  method,
JIT_Handle  j,
int  id 
)

Get the size of the memory block allocated earlier by method_allocate_code_block().

A triple <method, jit, id> uniquely identifies a code block.

VMEXPORT Byte* method_get_info_block_jit ( Method_Handle  method,
JIT_Handle  j 
)

Retrieve the memory block allocated earlier by method_allocate_info_block().

A pair <method, jit> uniquely identifies a JIT info block.

VMEXPORT unsigned method_get_info_block_size_jit ( Method_Handle  method,
JIT_Handle  j 
)

Get the size of the memory block allocated earlier by method_allocate_info_block().

VMEXPORT Method_Iterator method_get_first_method_jit ( JIT_Handle  j  ) 

Here are the obvious three functions to iterate over all methods compiled by a given JIT.

VMEXPORT Method_Iterator method_get_next_method_jit ( Method_Iterator  mi  ) 

The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().

FIXME merge with CodeBlockHeat enumeration

VMEXPORT Method_Handle method_get_method_jit ( Method_Iterator  mi  ) 

The following values should be used as the "heat" argument for calls like malloc_fixed_code_for_jit().

FIXME merge with CodeBlockHeat enumeration

VMEXPORT Class_Handle vm_resolve_class ( Compile_Handle  h,
Class_Handle  ch,
unsigned  idx 
)

Resolve a class.

The idx parameter is interpreted as a constant pool index for JVM.

VMEXPORT Class_Handle vm_resolve_class_new ( Compile_Handle  h,
Class_Handle  c,
unsigned  index 
)

Resolve a class and provide error checking if the class cannot have an instance, i.e.

it is abstract (or is an interface class). The idx parameter is interpreted as a constant pool index for JVM.

VMEXPORT Field_Handle resolve_nonstatic_field ( Compile_Handle  h,
Class_Handle  ch,
unsigned  idx,
unsigned  putfield 
)

Resolve a reference to a non-static field.

The idx parameter is interpreted as a constant pool index for JVM. Used for getfield and putfield in JVM.

VMEXPORT Field_Handle resolve_static_field ( Compile_Handle  h,
Class_Handle  ch,
unsigned  idx,
unsigned  putfield 
)

Resolve constant pool reference to a static field.

The idx parameter is interpreted as a constant pool index for JVM. Used for getstatic and putstatic in JVM.

VMEXPORT Method_Handle resolve_method ( Compile_Handle  h,
Class_Handle  ch,
unsigned  idx 
)

Resolve a method.

The idx parameter is interpreted as a constant pool index for JVM.

VMEXPORT Method_Handle resolve_virtual_method ( Compile_Handle  h,
Class_Handle  c,
unsigned  index 
)

Resolve a method.

Same as resolve_method() but the VM checks that the method can be used for a virtual dispatch. The idx parameter is interpreted as a constant pool index for JVM.

VMEXPORT Method_Handle resolve_static_method ( Compile_Handle  h,
Class_Handle  c,
unsigned  index 
)

Resolve a method.

Same as resolve_method() but the VM checks that the method is static (i.e. it is not an instance method). The idx parameter is interpreted as a constant pool index for JVM.

VMEXPORT Method_Handle resolve_interface_method ( Compile_Handle  h,
Class_Handle  c,
unsigned  index 
)

Resolve a method.

Same as resolve_method() but the VM checks that the method is declared in an interface type. The idx parameter is interpreted as a constant pool index for JVM.

VMEXPORT const char* class_get_const_string ( Class_Handle  ch,
unsigned  idx 
)

Returns:
A UTF8 representation of a string declared in a class.

The idx parameter is interpreted as a constant pool index for JVM. class_get_const_string is generally only for JIT internal use, e.g. printing a string pool constant in a bytecode disassembler. The resulting const char* should of course not be inserted into the jitted code.

VMEXPORT void* class_get_const_string_intern_addr ( Class_Handle  ch,
unsigned  idx 
)

Returns:
The address where the interned version of the string is stored.

Calling class_get_const_string_intern_addr has a side-effect of interning the string, so that the JIT can load a reference to the interned string without checking if it is null.

VMEXPORT VM_Data_Type class_get_const_type ( Class_Handle  ch,
unsigned  idx 
)

Returns:
The type of a compile-time constant.

The idx parameter is interpreted as a constant pool index for JVM.

VMEXPORT const char* class_get_cp_entry_signature ( Class_Handle  src_class,
unsigned short  cp_index 
)

Returns:
The signature for field or (interface) method in constant pool entry.

The cp_index parameter is interpreted as a constant pool index for JVM.

VMEXPORT VM_Data_Type class_get_cp_field_type ( Class_Handle  src_class,
unsigned short  cp_index 
)

Returns:
The data type for field in constant pool entry.

The cp_index parameter is interpreted as a constant pool index for JVM.

VMEXPORT const void* class_get_const_addr ( Class_Handle  ch,
unsigned  idx 
)

Returns:
A pointer to the location where the constant is stored.

The idx parameter is interpreted as a constant pool index for JVM. This function shouldn't be called for constant strings. Instead, either:

VMEXPORT void* method_get_native_func_addr ( Method_Handle  method  ) 

Looks for a method in native libraries of a class loader.

Parameters:
[in] method - a searching native-method structure
Returns:
The pointer to found a native function.
Note:
The function raises UnsatisfiedLinkError with a method name in an exception message, if the specified method is not found.

VMEXPORT JIT_Handle method_get_JIT_id ( Compile_Handle  h  ) 

Returns:
The JIT handle for a the current compilation.

The VM keeps track of the JIT that was invoked for and can return this value at any point during the compilation. (? 20030314) Does the method_ prefix really make sense here? Perhaps we should rename this function?

VMEXPORT Boolean jit_may_inline_object_synchronization ( unsigned *  thread_id_register,
unsigned *  sync_header_offset,
unsigned *  sync_header_width,
unsigned *  lock_owner_offset,
unsigned *  lock_owner_width,
Boolean *  jit_clears_ccv 
)

These functions are currently not part of the official interface, although they may be promoted in some form in the future.

Returns:
TRUE if the VM's functionality for monitorenter and monitorexit may be inlined by the JIT; otherwise, FALSE.
If TRUE is returned, then the output arguments will be filled in with the synchronization parameters.

Parameters:
thread_id_register - the register number that holds the thread ID which is used to identify the locking thread
sync_header_offset - the offset in bytes of the synchronization header from the start of the object
sync_header_width - the width in bytes of the synchronization header
lock_owner_offset - the offset in bytes of the lock owner field from the start of the object
lock_owner_width - the width in bytes of the lock owner field in the synchronization header
jit_clears_ccv - TRUE if the JIT-generated code needs to clear the ar.ccv register, FALSE if the VM ensures it is already cleared
Note:
This is useful only for monitorenter/monitorexit, but not monitorenter_static/monitorexit_static, since the JIT doesn't know how to map the class_handle to an object.

VMEXPORT CallingConvention vm_managed_calling_convention (  ) 


Genereated on Tue Mar 11 19:25:22 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.