Introduce parser-time optimization that replaces a function's local variables with registers.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-08-21 14:19:04 +03:00
parent 91aecc3bd0
commit 5b9ce05491
11 changed files with 360 additions and 65 deletions
+3
View File
@@ -19,6 +19,7 @@
#include "opcodes.h"
#include "ecma-globals.h"
#include "lexer.h"
#include "scopes-tree.h"
typedef enum __attr_packed___
{
@@ -55,6 +56,8 @@ bool operand_is_empty (operand);
void dumper_init (void);
void dumper_free (void);
bool dumper_try_replace_var_with_reg (scopes_tree, op_meta *);
void dumper_new_statement (void);
void dumper_new_scope (void);
void dumper_finish_scope (void);