Locals Class Reference

#include <interp_defs.h>

List of all members.


Detailed Description

The storage for local variables of the executed Java method.


Public Member Functions

 Locals ()
 The empty constructor.
 ~Locals ()
 The desctructor.
void init (void *ptr, uint32 size)
 Initializes the stack of a method.
Valueoperator() (uint32 id)
 Returns the reference to the local variable of the specifie ID.
void setLong (int idx, Value2 val)
 Sets the value of an object of the Long or Double type contained in two adjacent elements.
Value2 getLong (int idx)
 Returns the value of an object of the Long or Double type contained in two adjacent elements.
uint8 & ref (uint32 id)
 Returns the reference to the type of the local variable.
uint32 getLocalsNumber ()
 Returns the number of local variables in this object.

Static Public Member Functions

static int getStorageSize (int size)
 Returns the size of the allocated locals area by its size in elements.

Friends

void interp_enumerate_root_set_single_thread_on_stack (VM_thread *)
 Enumerates references associated with the thread.
void interp_ti_enumerate_root_set_single_thread_on_stack (jvmtiEnv *ti_env, VM_thread *thread)
 Enumerates references associated with the thread.


Constructor & Destructor Documentation

Locals.Locals (  ) 

The empty constructor.

Locals::~Locals (  ) 

The desctructor.


Member Function Documentation

void Locals::init ( void *  ptr,
uint32  size 
)

Initializes the stack of a method.

Parameters:
[in] ptr - the pointer to the data
[in] size - the locals size value

Value & Locals::operator() ( uint32  id  ) 

Returns the reference to the local variable of the specifie ID.

Parameters:
[in] id - the local variable ID
Returns:
The reference to the requested local variable.

void Locals::setLong ( int  idx,
Value2  val 
)

Sets the value of an object of the Long or Double type contained in two adjacent elements.

Parameters:
[in] idx - the local variable number
[in] val - the local variable value

Value2 Locals::getLong ( int  idx  ) 

Returns the value of an object of the Long or Double type contained in two adjacent elements.

Parameters:
[in] idx - the local variable number
Returns:
The requested object value.

uint8 & Locals::ref ( uint32  id  ) 

Returns the reference to the type of the local variable.

Parameters:
[in] idx - the local variable number
Returns:
The reference to the local variable type.
See also:
FLAG_NONE, FLAG_RET_ADDR, FLAG_OBJECT

int Locals::getStorageSize ( int  size  )  [static]

Returns the size of the allocated locals area by its size in elements.

Parameters:
[in] size - size of locals area in elements
Returns:
The size of the allocated area.

uint32 Locals.getLocalsNumber (  ) 

Returns the number of local variables in this object.

Returns:
The number of local variables.


Friends And Related Function Documentation

void interp_enumerate_root_set_single_thread_on_stack ( VM_thread *   )  [friend]

Enumerates references associated with the thread.

Parameters:
[in] VM_thread - the pointer to the thread

void interp_ti_enumerate_root_set_single_thread_on_stack ( jvmtiEnv *  ti_env,
VM_thread *  thread 
) [friend]

Enumerates references associated with the thread.

Parameters:
[in] ti_env - the pointer to the jvmti environment
[in] VM_thread - the pointer to the thread


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

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

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