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:
Andrey Shitov
2015-06-10 17:16:14 +03:00
parent 528a333e17
commit 340a9ef002
11 changed files with 1649 additions and 0 deletions
+9
View File
@@ -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
*
+1
View File
@@ -55,6 +55,7 @@ public:
} node_t;
void init (void);
void cleanup (void);
void free (void);
node_t *get_first (void) const;
+6
View File
@@ -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
*/