Skip to content

Commit bd5dd2e

Browse files
committed
Add property key filters for general object property enumeration
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
1 parent d368ecd commit bd5dd2e

File tree

3 files changed

+223
-127
lines changed

3 files changed

+223
-127
lines changed

jerry-core/ecma/base/ecma-globals.h

-2
Original file line numberDiff line numberDiff line change
@@ -2439,8 +2439,6 @@ typedef struct
24392439
uint32_t array_index_named_props; /**< number of array index named properties */
24402440
uint32_t string_named_props; /**< number of string named properties */
24412441
uint32_t symbol_named_props; /**< number of symbol named properties */
2442-
uint32_t lazy_string_named_props; /**< number of lazy instantiated string properties */
2443-
uint32_t lazy_symbol_named_props; /**< number of lazy instantiated symbol properties */
24442442
} ecma_property_counter_t;
24452443

24462444
/**

jerry-core/ecma/base/ecma-module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ ecma_module_heap_sort_shift_down (ecma_value_t *buffer_p, /**< array of items */
670670
while (true)
671671
{
672672
uint32_t highest_index = item_index;
673-
uint32_t current_index = item_index * 2 + 2;
673+
uint32_t current_index = (item_index << 1) + 2;
674674

675675
if (current_index >= item_count)
676676
{

0 commit comments

Comments
 (0)