Make ecma-values collection extendable (by introducing ecma_append_to_values_collection interface).

Related issue: #311

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-07-31 20:45:25 +03:00
parent 1aa04a287d
commit b08e8a3173
4 changed files with 136 additions and 69 deletions
+4 -4
View File
@@ -752,11 +752,11 @@ typedef struct
/** Number of elements in the collection */
ecma_length_t unit_number;
/** Compressed pointer to next chunk with collection's data */
mem_cpointer_t next_chunk_cp;
/** Compressed pointer to first chunk with collection's data */
mem_cpointer_t first_chunk_cp;
/** Place for the collection's data */
uint8_t data[ sizeof (uint64_t) - sizeof (mem_cpointer_t) - sizeof (ecma_length_t) ];
/** Compressed pointer to last chunk with collection's data */
mem_cpointer_t last_chunk_cp;
} ecma_collection_header_t;
/**