Classes | |
| struct | FrameView |
| struct | PausedState |
Public Member Functions | |
| VM (Engine &engine) | |
| Value | execute (const BytecodeChunk &chunk, const Value *args=nullptr, uint8_t nargs=0) |
| ExecStatus | startExecution (const BytecodeChunk &chunk, const Value *args=nullptr, uint8_t nargs=0, DebugAction initialAction=DebugAction::StepInto) |
| ExecStatus | resumeExecution () |
| bool | isPaused () const |
| Value | takeResult () |
| std::vector< Value > | callReentrant (const BytecodeChunk &chunk, Span< const Value > args, size_t nargout, const std::string &ownerClass=std::string(), bool isCtor=false, const Value *ctorSeed=nullptr) |
| bool | pushCallbackFrame (const Value &handle, Span< const Value > args, size_t nargout, std::shared_ptr< VmContinuation > cont) |
| std::unique_ptr< PausedState > | savePausedState () |
| void | restorePausedState (std::unique_ptr< PausedState > state) |
| void | setCompiledFuncs (const std::unordered_map< std::string, BytecodeChunk > *funcs) |
| void | setCompiledFuncs (const std::unordered_map< std::string, BytecodeChunk > *funcs, const std::unordered_map< std::string, BytecodeChunk > *scriptLocal) |
| const BytecodeChunk * | findCompiledFunc (const std::string &name) const |
| const std::vector< std::pair< std::string, Value > > & | lastVarMap () const |
| void | clearLastVarMap () |
| void | setFrameDynVars (std::unordered_map< std::string, Value > *dv) |
| FrameView | currentFrameView () |
| size_t | frameCount () const |
| FrameView | frameViewAt (size_t depthFromTop) |
| int | callDepth () const |
| const std::string & | currentMethodClass () const |
| bool | currentMethodIsCtor () const |
| void | setMaxRecursionDepth (int d) |
| Environment * | callerEnvAtDepth (int n) |
| void | assignInCallerFrame (int n, const std::string &name, const Value &val) |
| void | setStopOnError (bool b) |
| bool | atErrorPause () const |
| const std::string & | errorPauseMessage () const |
| void | writeToFrameMatchingEnv (Environment *env, const std::string &name, const Value &val) |
| const std::vector< std::string > & | currentFrameCallerArgNames () const |
| std::unordered_map< std::string, Value > | snapshotFrameVars (Environment *frameEnv) |
| void | setNextFrameDynVars (std::unordered_map< std::string, Value > *dv) |
Public Attributes | |
| Environment * | inheritedScope_ = nullptr |
| bool | inReentrantEval_ = false |
| bool | stopOnError_ = false |
| bool | atErrorPause_ = false |
| std::exception_ptr | pausedError_ |
| std::string | errorPauseMsg_ |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Environment* nk::VM::inheritedScope_ = nullptr |