Remove var_decls_count field from scopes_tree header; getting "var_decl"s count using linked_list_get_length instead.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-10-07 19:43:06 +03:00
parent 0ef9c486c1
commit 4d2ad40475
4 changed files with 16 additions and 12 deletions
-1
View File
@@ -63,7 +63,6 @@ typedef struct
linked_list instrs; /**< instructions */
vm_instr_counter_t instrs_count; /**< count of instructions */
linked_list var_decls; /**< instructions for variable declarations */
uint8_t var_decls_cout; /**< number of instructions for variable declarations */
scope_type_t type : 2; /**< scope type */
bool strict_mode: 1; /**< flag, indicating that scope's code should be executed in strict mode */
bool ref_arguments: 1; /**< flag, indicating that "arguments" variable is used inside the scope