Refactor literal-storage to not use C++ features

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
This commit is contained in:
Roland Takacs
2015-12-24 17:24:46 +03:00
committed by Peter Gal
parent f932b7d48c
commit 21f561f8ef
36 changed files with 2603 additions and 3134 deletions
+16
View File
@@ -17,6 +17,7 @@
#define LIT_GLOBALS_H
#include "jrt.h"
#include "rcs-cpointer.h"
/**
* ECMAScript standard defines terms "code unit" and "character" as 16-bit unsigned value
@@ -123,6 +124,21 @@ typedef uint32_t lit_code_point_t;
*/
typedef uint8_t lit_string_hash_t;
/**
* Literal type
*/
typedef rcs_record_t *lit_literal_t;
/**
* Compressed pointer type
*/
typedef rcs_cpointer_t lit_cpointer_t;
/**
* Invalid literal
*/
#define NOT_A_LITERAL (rcs_cpointer_null_cp ())
/**
* ECMA string hash value length, in bits
*/