Fix undefined references build error on Windows (x64) (#3168)

We should emit function symbols for these jerry-core functions:
- ecma_compare_ecma_strings is used by test-stringbuilder.c
- ecma_is_value_number is used by test-literal-storage.c
- ecma_date_time_within_day is used by test-date-helpers.c
- jmem_heap_alloc_block is used by test-jmem.c
- jmem_heap_free_block is used by test-jmem.c
- jmem_pools_alloc is used by test-poolman.c
- jmem_pools_free is used by test-poolman.c

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
Csaba Osztrogonác
2019-09-26 23:13:24 +02:00
committed by Dániel Bátyai
parent 2b3faf683d
commit 4eae760180
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -321,7 +321,7 @@ jmem_heap_alloc_block_internal (const size_t size) /**< required memory size */
* @return NULL, if the required memory is 0
* pointer to allocated memory block, otherwise
*/
inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
extern inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
jmem_heap_alloc_block (const size_t size) /**< required memory size */
{
void *block_p = jmem_heap_gc_and_alloc_block (size, JMEM_PRESSURE_FULL);
@@ -666,7 +666,7 @@ jmem_heap_realloc_block (void *ptr, /**< memory region to reallocate */
/**
* Free memory block
*/
inline void JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
extern inline void JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
jmem_heap_free_block (void *ptr, /**< pointer to beginning of data space of the block */
const size_t size) /**< size of allocated region */
{
+2 -2
View File
@@ -55,7 +55,7 @@ jmem_pools_finalize (void)
* @return pointer to allocated chunk, if allocation was successful,
* or NULL - if not enough memory.
*/
inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
extern inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
jmem_pools_alloc (size_t size) /**< size of the chunk */
{
#if ENABLED (JERRY_MEM_GC_BEFORE_EACH_ALLOC)
@@ -115,7 +115,7 @@ jmem_pools_alloc (size_t size) /**< size of the chunk */
/**
* Free the chunk
*/
inline void JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
extern inline void JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
jmem_pools_free (void *chunk_p, /**< pointer to the chunk */
size_t size) /**< size of the chunk */
{