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
+10
View File
@@ -26,6 +26,7 @@
#include "config.h"
#include "jrt.h"
#include "mem-allocator.h"
#include "rcs-recordset.h"
/** \addtogroup compressedpointer Compressed pointer
* @{
@@ -757,11 +758,20 @@ typedef enum
} ecma_string_container_t;
FIXME (Move to library that should define the type (literal.h /* ? */))
/**
* Literal and compressed pointer to literal
*/
typedef rcs_record_t *literal_t;
typedef rcs_cpointer_t lit_cpointer_t;
/**
* Index in literal table
*
* FIXME: Remove after switching to literal storage
*/
typedef uint32_t literal_index_t;
/**
* Identifiers of ECMA and implementation-defined magic string constants
*/