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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user