Add property key filters for general object property enumeration (#4778)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2021-09-28 11:01:15 +02:00
committed by GitHub
parent 14ff5bfb52
commit 8b3eb93167
3 changed files with 233 additions and 137 deletions
-2
View File
@@ -2439,8 +2439,6 @@ typedef struct
uint32_t array_index_named_props; /**< number of array index named properties */
uint32_t string_named_props; /**< number of string named properties */
uint32_t symbol_named_props; /**< number of symbol named properties */
uint32_t lazy_string_named_props; /**< number of lazy instantiated string properties */
uint32_t lazy_symbol_named_props; /**< number of lazy instantiated symbol properties */
} ecma_property_counter_t;
/**
+1 -1
View File
@@ -670,7 +670,7 @@ ecma_module_heap_sort_shift_down (ecma_value_t *buffer_p, /**< array of items */
while (true)
{
uint32_t highest_index = item_index;
uint32_t current_index = item_index * 2 + 2;
uint32_t current_index = (item_index << 1) + 2;
if (current_index >= item_count)
{