Constructor
new VM_HeapArea(pVM, pClassLoader)
- Source:
To constructr Heap Area
Parameters:
Name | Type | Description |
---|---|---|
pVM |
VM | The VM instance |
pClassLoader |
VM_ClassLoader | The default class loader |
Methods
clear()
- Source:
To clear heap area
get(pType, pName)
- Source:
To get an element from Heap Area
Parameters:
Name | Type | Description |
---|---|---|
pType |
ObjectType | |
pName |
String |
loadClass(pClass)
- Source:
To load a class.
Actually only built-in classloader is supported
Parameters:
Name | Type | Description |
---|---|---|
pClass |
Class | The class to load |
newInstance(pClass, pArgs) → {VM_ClassInstance}
- Source:
To instanciante a new object from specified class.
Parameters:
Name | Type | Description |
---|---|---|
pClass |
Class | the class to instanciate |
pArgs |
Array.<ObjectType> | Array.<BasicType> | Array.<Symbol> | Array of argument to pass to constructor |
Returns:
An instance of the class
- Type
- VM_ClassInstance