diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-02 08:30:20 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-02 08:48:32 +0100 |
commit | 04a7b7322446eae0f5da66bedc1e262a7d83419d (patch) | |
tree | 635af4541d978c5331ea37091e225d7c0688e2b3 /src/lfunc.js | |
parent | fa7ce109418aca2fd60fdb65b4b2451c4854dd09 (diff) | |
download | fengari-04a7b7322446eae0f5da66bedc1e262a7d83419d.tar.gz fengari-04a7b7322446eae0f5da66bedc1e262a7d83419d.tar.bz2 fengari-04a7b7322446eae0f5da66bedc1e262a7d83419d.zip |
readHeader
Diffstat (limited to 'src/lfunc.js')
-rw-r--r-- | src/lfunc.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lfunc.js b/src/lfunc.js new file mode 100644 index 0000000..faa0887 --- /dev/null +++ b/src/lfunc.js @@ -0,0 +1,27 @@ +/*jshint esversion: 6 */ +"use strict"; + +class Proto { + + constructor(L) { + this.k = []; // constants used by the function + this.p = []; // functions defined inside the function + this.code = []; // opcodes + this.cache = null; // last-created closure with this prototype + this.lineinfo = []; // map from opcodes to source lines (debug information) + this.upvalues = []; // upvalue information + this.numparams = 0; // number of fixed parameters + this.is_vararg = 0; + this.maxstacksize = 0; // number of registers needed by this function + this.locvars = []; // information about local variables (debug information) + this.linedefined = 0; // debug information + this.lastlinedefined = 0; // debug information + this.source = null; // used for debug information + } + +} + + +module.exports = { + Proto: Proto +};
\ No newline at end of file |