Introducing mem_cpointer_t type for compressed pointers.

This commit is contained in:
Ruben Ayrapetyan
2015-04-01 16:47:19 +03:00
parent 3da56908aa
commit c81651dbe9
9 changed files with 46 additions and 35 deletions
+4 -4
View File
@@ -32,13 +32,13 @@
typedef struct
{
/** Compressed pointer to object (ECMA_NULL_POINTER marks record empty) */
uint16_t object_cp;
mem_cpointer_t object_cp;
/** Compressed pointer to property's name */
uint16_t prop_name_cp;
mem_cpointer_t prop_name_cp;
/** Compressed pointer to a property of the object */
uint16_t prop_cp;
mem_cpointer_t prop_cp;
/** Padding structure to 8 bytes size */
uint16_t padding;
@@ -159,7 +159,7 @@ ecma_lcache_insert (ecma_object_t *object_p, /**< object */
{
if (unlikely (ecma_is_property_lcached (prop_p)))
{
uint16_t prop_cp;
mem_cpointer_t prop_cp;
ECMA_SET_NON_NULL_POINTER (prop_cp, prop_p);
int32_t entry_index;