Rework literal indexes hash table to simple array in order to improve performance

This commit is contained in:
Ilmir Usmanov
2014-12-15 22:48:27 +03:00
parent 864bd3de06
commit 7e7bdc2aac
8 changed files with 364 additions and 47 deletions
+3 -1
View File
@@ -22,6 +22,7 @@
#include "ecma-globals.h"
#include "hash-table.h"
#include "opcodes.h"
#include "lit-id-hash-table.h"
#define NOT_A_LITERAL (INVALID_LITERAL - 1)
@@ -50,8 +51,9 @@ void scopes_tree_add_op_meta (scopes_tree, op_meta);
void scopes_tree_set_op_meta (scopes_tree, opcode_counter_t, op_meta);
void scopes_tree_set_opcodes_num (scopes_tree, opcode_counter_t);
op_meta scopes_tree_op_meta (scopes_tree, opcode_counter_t);
size_t scopes_tree_count_literals_in_blocks (scopes_tree);
opcode_counter_t scopes_tree_count_opcodes (scopes_tree);
opcode_t *scopes_tree_raw_data (scopes_tree, hash_table);
opcode_t *scopes_tree_raw_data (scopes_tree, lit_id_hash_table *);
void scopes_tree_set_strict_mode (scopes_tree, bool);
bool scopes_tree_strict_mode (scopes_tree);