Stack management, stack frames, forever and repeat

This commit is contained in:
Tim Mickel 2016-05-03 13:28:24 -04:00
parent 4c6f08f665
commit 379b2dec79
6 changed files with 135 additions and 55 deletions
src/engine

View file

@ -21,6 +21,12 @@ function Thread (firstBlock) {
*/
this.stack = [];
/**
* Stack frames for the thread. Store metadata for the executing blocks.
* @type {Array.<Object>}
*/
this.stackFrames = [];
/**
* Status of the thread, one of three states (below)
* @type {number}