File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ typedef struct
4646/**
4747 * Number of rows in LCache's hash table
4848 */
49- #define ECMA_LCACHE_HASH_ROWS_COUNT 256
49+ #define ECMA_LCACHE_HASH_ROWS_COUNT 128
5050
5151/**
5252 * Number of entries in a row of LCache's hash table
@@ -179,7 +179,8 @@ ecma_lcache_lookup (ecma_object_t *object_p, /**< object */
179179 ecma_string_t * entry_prop_name_p = ECMA_GET_NON_NULL_POINTER (ecma_string_t ,
180180 entry_p -> prop_name_cp );
181181
182- JERRY_ASSERT (prop_name_p -> hash == entry_prop_name_p -> hash );
182+ JERRY_ASSERT ((prop_name_p -> hash & (ECMA_LCACHE_HASH_ROWS_COUNT - 1 ))
183+ == (entry_prop_name_p -> hash & (ECMA_LCACHE_HASH_ROWS_COUNT - 1 )));
183184
184185 if (ECMA_STRING_GET_CONTAINER (prop_name_p ) == ECMA_STRING_GET_CONTAINER (entry_prop_name_p )
185186 && prop_name_p -> u .common_field == entry_prop_name_p -> u .common_field )
You can’t perform that action at this time.
0 commit comments