Go to the source code of this file.
|
struct | Frame |
| Structure that will be associated with a method and holds the information necessary to run the method. More...
|
|
struct | FrameStack |
| Stack of frames to store all frames created by method calling during execution of the JVM. More...
|
|
§ Frame
§ FrameStack
§ freeFrame()
void freeFrame |
( |
Frame * |
frame | ) |
|
Free the Frame passed as parameter.
- Parameters
-
Frame* | frame - pointer to Frame to be freed. |
§ freeFrameStack()
Free all the elements of the FrameStack passed as parameter by reference.
- Parameters
-
§ newFrame()
A new frame is created each time a method is invoked.
- Parameters
-
JavaClass* | jc - pointer to the javaClass holding the method. |
method_info* | method - pointer to the method |
- Returns
- pointer to the Frame created.
§ popFrame()
Pop the Frame passed as parameter by reference.
- Parameters
-
FrameStack** | fs - pointer to the FrameStack. |
Frame* | outPtr - pointer to Frame that will be popped. |
- Returns
- 1 if the pop operation was sucessful, 0 otherwise.
§ pushFrame()
Push the Frame into the FrameStack passed as parameter by reference.
- Parameters
-
FrameStack** | fs - pointer to the FrameStack where the Frame will be pushed. |
Frame* | frame - pointer to Frame to be pushed. |
- Returns
- 0 if node is NULL, in other words, if the push was not successful, any other integer value otherwise