VM_StackMemory

VM_StackMemory

Stack Area contains call stack and return value for each call.

Constructor

new VM_StackMemory()

Source:
Author:
  • FrenchYeti

Methods

addIndirectInvoke()

Source:

To track method invoked indirectly through Reflection API

The aim of such tracking is to help future optimization

current() → {VM_StackEntry}

Source:

To get current stack entry. It returns the stack entry associated to current running method.

Returns:

The stack entry

Type
VM_StackEntry

depth() → {int}

Source:

To get the current call stack depth

Returns:

The depth of current call stack. 0 means the top level function is the current function

Type
int

pop()

Source:

To remove a StackEntry (stack frame) from the callstack. It is called systematically when a method has been successfully invoked.

popReturn() → {Symbol}

Source:

To return the latest value push into 'return stack'

Returns:

The symbol containing concrete data or symbolic expression of the value returned

Type
Symbol

print() → {String}

Source:

To get string containing information about current stack memory

Returns:

A string containing information

Type
String

pushReturn(pSymbol)

Source:
Parameters:
Name Type Description
pSymbol Symbol | int

The resturn value