Change parser to stack-only version

This commit is contained in:
Ilmir Usmanov
2014-07-09 18:05:19 +04:00
parent f46d5b440c
commit a2350cb88e
12 changed files with 718 additions and 330 deletions
+5 -2
View File
@@ -23,6 +23,7 @@
#endif
#include "opcodes.h"
#include "ecma-globals.h"
OPCODE __program[128];
@@ -31,11 +32,13 @@ opfunc __opfuncs[LAST_OP];
struct __int_data
{
int pos;
ecma_Object_t *pThisBinding; /**< this binding for current context */
ecma_Object_t *pLexEnv; /**< current lexical environment */
int *root_op_addr;
};
void gen_bytecode ();
void run_int ();
void gen_bytecode (void);
void run_int (void);
void run_int_from_pos (struct __int_data *);
#endif /* INTERPRETER_H */