Skip to content

Commit e0873da

Browse files
Rename idx_t -> vm_idx_t, opcode_special_reg_t -> vm_reg_t, INVALID_VALUE -> VM_IDX_EMPTY / VM_IDX_REWRITE_GENERAL_CASE, LITERAL_TO_REWRITE -> VM_IDX_REWRITE_LITERAL_UID.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
1 parent e70085b commit e0873da

23 files changed

+436
-356
lines changed

jerry-core/lit/lit-literal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include "lit-literal-storage.h"
2121
#include "lit-magic-strings.h"
2222

23-
#define LITERAL_TO_REWRITE (INVALID_VALUE - 1)
24-
2523
void lit_init ();
2624
void lit_finalize ();
2725
void lit_dump_literals ();

jerry-core/parser/js/collections/lit-id-hash-table.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @{
2424
*
2525
* \addtogroup lit_id_hash_table Literal identifiers hash table
26-
* The hash table connects pairs (instruction block, idx_t value) with literal identifiers.
26+
* The hash table connects pairs (instruction block, vm_idx_t value) with literal identifiers.
2727
* @{
2828
*/
2929

@@ -87,7 +87,7 @@ lit_id_hash_table_free (lit_id_hash_table *table_p) /**< table's header */
8787
*/
8888
void
8989
lit_id_hash_table_insert (lit_id_hash_table *table_p, /**< table's header */
90-
idx_t uid, /**< value of byte-code instruction's argument */
90+
vm_idx_t uid, /**< value of byte-code instruction's argument */
9191
vm_instr_counter_t oc, /**< instruction counter of the instruction */
9292
lit_cpointer_t lit_cp) /**< literal identifier */
9393
{
@@ -111,7 +111,7 @@ lit_id_hash_table_insert (lit_id_hash_table *table_p, /**< table's header */
111111
*/
112112
lit_cpointer_t
113113
lit_id_hash_table_lookup (lit_id_hash_table *table_p, /**< table's header */
114-
idx_t uid, /**< value of byte-code instruction's argument */
114+
vm_idx_t uid, /**< value of byte-code instruction's argument */
115115
vm_instr_counter_t oc) /**< instruction counter of the instruction */
116116
{
117117
JERRY_ASSERT (table_p != NULL);

jerry-core/parser/js/collections/lit-id-hash-table.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ typedef struct
3131
lit_id_hash_table *lit_id_hash_table_init (uint8_t*, size_t, size_t, size_t);
3232
size_t lit_id_hash_table_get_size_for_table (size_t, size_t);
3333
void lit_id_hash_table_free (lit_id_hash_table *);
34-
void lit_id_hash_table_insert (lit_id_hash_table *, idx_t, vm_instr_counter_t, lit_cpointer_t);
35-
lit_cpointer_t lit_id_hash_table_lookup (lit_id_hash_table *, idx_t, vm_instr_counter_t);
34+
void lit_id_hash_table_insert (lit_id_hash_table *, vm_idx_t, vm_instr_counter_t, lit_cpointer_t);
35+
lit_cpointer_t lit_id_hash_table_lookup (lit_id_hash_table *, vm_idx_t, vm_instr_counter_t);
3636

3737
#endif /* LIT_ID_HASH_TABLE */

jerry-core/parser/js/lexer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "lit-literal.h"
2020
#include "lit-strings.h"
2121

22-
#define INVALID_VALUE 255
2322
#define INVALID_LITERAL (rcs_cpointer_t::null_cp ())
2423

2524
/* Keywords. */

0 commit comments

Comments
 (0)