Iterators for ecma-values collections

This commit is contained in:
Ruben Ayrapetyan
2014-08-15 15:58:34 +04:00
parent cf098ad4ac
commit 2a199cc6a7
3 changed files with 80 additions and 24 deletions
-22
View File
@@ -491,28 +491,6 @@ ecma_delete_property (ecma_object_t *obj_p, /**< object */
JERRY_UNREACHABLE();
} /* ecma_delete_property */
/**
* Free all chunks of a collection
*/
void
ecma_free_collection (ecma_collection_header_t *collection_header_p) /**< header of collection */
{
JERRY_ASSERT(collection_header_p != NULL);
ecma_collection_chunk_t *non_first_chunk_p = ECMA_GET_POINTER (collection_header_p->next_chunk_cp);
ecma_dealloc_collection_header (collection_header_p);
while (non_first_chunk_p != NULL)
{
ecma_collection_chunk_t *next_chunk_p = ECMA_GET_POINTER (non_first_chunk_p->next_chunk_cp);
ecma_dealloc_collection_chunk (non_first_chunk_p);
non_first_chunk_p = next_chunk_p;
}
} /* ecma_free_collection */
/**
* Construct empty property descriptor.
*