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
+1 -1
View File
@@ -18,7 +18,7 @@
#include "ecma-gc.h"
#include "ecma-lcache.h"
#include "jrt.h"
#include "jmem-poolman.h"
#include "jmem.h"
JERRY_STATIC_ASSERT (sizeof (ecma_property_value_t) == sizeof (ecma_value_t),
size_of_ecma_property_value_t_must_be_equal_to_size_of_ecma_value_t);
+1 -1
View File
@@ -17,7 +17,7 @@
#define ECMA_GC_H
#include "ecma-globals.h"
#include "jmem-allocator.h"
#include "jmem.h"
/** \addtogroup ecma ECMA
* @{
+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
+1 -1
View File
@@ -17,7 +17,7 @@
#define ECMA_HELPERS_H
#include "ecma-globals.h"
#include "jmem-allocator.h"
#include "jmem.h"
#include "lit-strings.h"
/** \addtogroup ecma ECMA
+1 -1
View File
@@ -20,7 +20,7 @@
#include "ecma-lcache.h"
#include "ecma-lex-env.h"
#include "ecma-literal-storage.h"
#include "jmem-allocator.h"
#include "jmem.h"
#include "jcontext.h"
/** \addtogroup ecma ECMA
+1 -1
View File
@@ -17,7 +17,7 @@
#define ECMA_LIT_STORAGE_H
#include "ecma-globals.h"
#include "jmem-allocator.h"
#include "jmem.h"
#include "lit-globals.h"
/** \addtogroup ecma ECMA