#include <bond/vm/vm.h>
|
| VM (Allocator &allocator, const CodeSegment &codeSegment, size_t stackSize, InputStream *stdIn=nullptr, OutputStream *stdOut=nullptr, OutputStream *stdErr=nullptr, StreamFactory *streamFactory=nullptr) |
|
| ~VM () |
|
Allocator & | GetAllocator () const |
|
const CodeSegment & | GetCodeSegment () const |
|
StackFrame * | GetStackFrame () |
|
const StackFrame & | GetStackFrame () const |
|
StackFrame & | GetCallerStackFrame () |
|
const StackFrame & | GetCallerStackFrame () const |
|
InputStreamAdaptor & | GetStdIn () |
|
OutputStreamAdaptor & | GetStdOut () |
|
OutputStreamAdaptor & | GetStdErr () |
|
StreamFactory * | GetStreamFactory () |
|
void | DumpCallStack (OutputStream &stream) const |
|
void | DumpStackFrame (OutputStream &stream, const StackFrame &frame) const |
|
void | RaiseError (const char *format,...) const |
|
template<typename ReturnType , typename... Args> |
void | CallFunction (const QualifiedName &functionName, ReturnType *returnAddress, Args... args) |
|
template<typename ReturnType , typename... Args> |
void | CallFunction (const char *functionName, ReturnType *returnAddress, Args... args) |
|
template<typename ReturnType , typename... Args> |
void | CallFunction (const Function &function, ReturnType *returnAddress, Args... args) |
|
template<typename... Args> |
void | CallVoidFunction (const QualifiedName &functionName, Args... args) |
|
template<typename... Args> |
void | CallVoidFunction (const char *functionName, Args... args) |
|
template<typename... Args> |
void | CallVoidFunction (const Function &function, Args... args) |
|
VM & | operator= (const VM &other)=delete |
|
◆ VM()
◆ ~VM()
◆ CallFunction() [1/3]
template<typename ReturnType , typename... Args>
void Bond::VM::CallFunction |
( |
const char * |
functionName, |
|
|
ReturnType * |
returnAddress, |
|
|
Args... |
args |
|
) |
| |
◆ CallFunction() [2/3]
template<typename ReturnType , typename... Args>
void Bond::VM::CallFunction |
( |
const Function & |
function, |
|
|
ReturnType * |
returnAddress, |
|
|
Args... |
args |
|
) |
| |
◆ CallFunction() [3/3]
template<typename ReturnType , typename... Args>
void Bond::VM::CallFunction |
( |
const QualifiedName & |
functionName, |
|
|
ReturnType * |
returnAddress, |
|
|
Args... |
args |
|
) |
| |
◆ CallVoidFunction() [1/3]
template<typename... Args>
void Bond::VM::CallVoidFunction |
( |
const char * |
functionName, |
|
|
Args... |
args |
|
) |
| |
◆ CallVoidFunction() [2/3]
template<typename... Args>
void Bond::VM::CallVoidFunction |
( |
const Function & |
function, |
|
|
Args... |
args |
|
) |
| |
◆ CallVoidFunction() [3/3]
template<typename... Args>
void Bond::VM::CallVoidFunction |
( |
const QualifiedName & |
functionName, |
|
|
Args... |
args |
|
) |
| |
◆ DumpCallStack()
◆ DumpStackFrame()
◆ GetAllocator()
◆ GetCallerStackFrame() [1/2]
◆ GetCallerStackFrame() [2/2]
const StackFrame & Bond::VM::GetCallerStackFrame |
( |
| ) |
const |
◆ GetCodeSegment()
◆ GetStackFrame() [1/2]
◆ GetStackFrame() [2/2]
const StackFrame & Bond::VM::GetStackFrame |
( |
| ) |
const |
|
inline |
◆ GetStdErr()
◆ GetStdIn()
◆ GetStdOut()
◆ GetStreamFactory()
◆ operator=()
VM & Bond::VM::operator= |
( |
const VM & |
other | ) |
|
|
delete |
◆ RaiseError()
void Bond::VM::RaiseError |
( |
const char * |
format, |
|
|
|
... |
|
) |
| const |
◆ InvocationStackFrame
The documentation for this class was generated from the following file: