diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-02-11 16:10:47 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-02-11 16:18:42 +0100 |
commit | 51ffdbeb0cfc206692ea4e5f71d1fe6d10f61455 (patch) | |
tree | 8a3b79c1bbeb63c785f4c6d61e882f5be26ad3ca /src/lopcodes.js | |
parent | 4650ac9ab96eadcd5918c56c6eb93618ac054bba (diff) | |
download | fengari-51ffdbeb0cfc206692ea4e5f71d1fe6d10f61455.tar.gz fengari-51ffdbeb0cfc206692ea4e5f71d1fe6d10f61455.tar.bz2 fengari-51ffdbeb0cfc206692ea4e5f71d1fe6d10f61455.zip |
SETLIST
Diffstat (limited to 'src/lopcodes.js')
-rw-r--r-- | src/lopcodes.js | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/src/lopcodes.js b/src/lopcodes.js index 05eb0d5..383e9c5 100644 --- a/src/lopcodes.js +++ b/src/lopcodes.js @@ -80,27 +80,31 @@ const INDEXK = function (r) { return r & ~BITRK; } +/* number of list items to accumulate before a SETLIST instruction */ +const LFIELDS_PER_FLUSH = 50 + module.exports = { - OpCodes: OpCodes, - SIZE_C: SIZE_C, - SIZE_B: SIZE_B, - SIZE_Bx: SIZE_Bx, - SIZE_A: SIZE_A, - SIZE_Ax: SIZE_Ax, - SIZE_OP: SIZE_OP, - POS_OP: POS_OP, - POS_A: POS_A, - POS_C: POS_C, - POS_B: POS_B, - POS_Bx: POS_Bx, - POS_Ax: POS_Ax, - MAXARG_Bx: MAXARG_Bx, - MAXARG_sBx: MAXARG_sBx, - MAXARG_Ax: MAXARG_Ax, - MAXARG_A: MAXARG_A, - MAXARG_B: MAXARG_B, - MAXARG_C: MAXARG_C, - BITRK: BITRK, - ISK: ISK, - INDEXK: INDEXK + OpCodes: OpCodes, + SIZE_C: SIZE_C, + SIZE_B: SIZE_B, + SIZE_Bx: SIZE_Bx, + SIZE_A: SIZE_A, + SIZE_Ax: SIZE_Ax, + SIZE_OP: SIZE_OP, + POS_OP: POS_OP, + POS_A: POS_A, + POS_C: POS_C, + POS_B: POS_B, + POS_Bx: POS_Bx, + POS_Ax: POS_Ax, + MAXARG_Bx: MAXARG_Bx, + MAXARG_sBx: MAXARG_sBx, + MAXARG_Ax: MAXARG_Ax, + MAXARG_A: MAXARG_A, + MAXARG_B: MAXARG_B, + MAXARG_C: MAXARG_C, + BITRK: BITRK, + ISK: ISK, + INDEXK: INDEXK, + LFIELDS_PER_FLUSH: LFIELDS_PER_FLUSH };
\ No newline at end of file |