Add literal storage, literal_t type and functions for its processing.
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin e.gavrin@samsung.com JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
@@ -35,6 +35,15 @@ rcs_chunked_list_t::free (void)
|
||||
JERRY_ASSERT (tail_p == NULL);
|
||||
} /* rcs_chunked_list_t::free */
|
||||
|
||||
void
|
||||
rcs_chunked_list_t::cleanup (void)
|
||||
{
|
||||
while (head_p)
|
||||
{
|
||||
remove (head_p);
|
||||
}
|
||||
} /* rcs_chunked_list_t::cleanup */
|
||||
|
||||
/**
|
||||
* Get first node of the list
|
||||
*
|
||||
|
||||
@@ -55,6 +55,7 @@ public:
|
||||
} node_t;
|
||||
|
||||
void init (void);
|
||||
void cleanup (void);
|
||||
void free (void);
|
||||
|
||||
node_t *get_first (void) const;
|
||||
|
||||
@@ -74,6 +74,12 @@ public:
|
||||
_chunk_list.free ();
|
||||
} /* finalize */
|
||||
|
||||
/* Free memory occupied by the dynamic storage */
|
||||
void cleanup (void)
|
||||
{
|
||||
_chunk_list.cleanup ();
|
||||
} /* cleanup */
|
||||
|
||||
/**
|
||||
* Record type
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user