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