Organize public and internal parts of memory management (#1539)

* Introduced new 'jmem.h' for public part.
 * Removed obsolete headers

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2017-01-24 12:36:53 +01:00
committed by GitHub
parent f88d1a4863
commit 976c8aee80
19 changed files with 197 additions and 308 deletions
+6 -2
View File
@@ -19,7 +19,7 @@
#include "config.h"
#include "jrt.h"
#include "lit-magic-strings.h"
#include "jmem-allocator.h"
#include "jmem.h"
/** \addtogroup ecma ECMA
* @{
@@ -38,7 +38,11 @@
* The offset is shifted right by JMEM_ALIGNMENT_LOG.
* Least significant JMEM_ALIGNMENT_LOG bits of non-shifted offset are zeroes.
*/
#define ECMA_POINTER_FIELD_WIDTH JMEM_CP_WIDTH
#ifdef JERRY_CPOINTER_32_BIT
#define ECMA_POINTER_FIELD_WIDTH 32
#else /* !JERRY_CPOINTER_32_BIT */
#define ECMA_POINTER_FIELD_WIDTH 16
#endif /* JERRY_CPOINTER_32_BIT */
/**
* The NULL value for compressed pointers