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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user