Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions jerry-core/ecma/base/ecma-property-hashmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,13 @@ ecma_property_hashmap_insert (ecma_object_t *object_p, /**< object */
bits_p += (entry_index >> 3);
mask = (uint32_t) (1 << (entry_index & 0x7));

hashmap_p->null_count--;
JERRY_ASSERT (hashmap_p->null_count > 0);
if (!(*bits_p & mask))
{
/* Deleted entries also has ECMA_NULL_POINTER
* value, but they are not NULL values. */
hashmap_p->null_count--;
JERRY_ASSERT (hashmap_p->null_count > 0);
}

hashmap_p->unused_count--;
JERRY_ASSERT (hashmap_p->unused_count > 0);
Expand Down
2 changes: 1 addition & 1 deletion jerry-core/parser/js/js-parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ parser_compute_indicies (parser_context_t *context_p, /**< context */
{
if (!(literal_p->status_flags & LEXER_FLAG_NO_REG_STORE))
{
JERRY_ASSERT (register_count < PARSER_MAXIMUM_NUMBER_OF_REGISTERS);
JERRY_ASSERT (register_count <= PARSER_MAXIMUM_NUMBER_OF_REGISTERS);
/* This var literal can be stored in a register. */
literal_p->prop.index = register_index;
register_index++;
Expand Down