Skip to content

Commit e572aaa

Browse files
committed
New Allocator and improved String handling.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
1 parent cadc81d commit e572aaa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1279
-4224
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ project (Jerry CXX C ASM)
222222

223223
# Compiler / Linker flags
224224
set(COMPILE_FLAGS_JERRY "-fno-builtin")
225+
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
226+
set(COMPILE_FLAGS_JERRY "${COMPILE_FLAGS_JERRY} -DMEM_HEAP_PTR_64")
227+
endif()
225228
if(NOT ("${PLATFORM}" STREQUAL "DARWIN"))
226229
set(LINKER_FLAGS_COMMON "-Wl,-z,noexecstack")
227230
endif()

jerry-core/config.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
* Size of heap
4343
*/
4444
#ifndef CONFIG_MEM_HEAP_AREA_SIZE
45-
# define CONFIG_MEM_HEAP_AREA_SIZE (256 * 1024)
46-
#elif CONFIG_MEM_HEAP_AREA_SIZE > (256 * 1024)
47-
# error "Currently, maximum 256 kilobytes heap size is supported"
45+
# define CONFIG_MEM_HEAP_AREA_SIZE (512 * 1024)
46+
#elif CONFIG_MEM_HEAP_AREA_SIZE > (512 * 1024)
47+
# error "Currently, maximum 512 kilobytes heap size is supported"
4848
#endif /* !CONFIG_MEM_HEAP_AREA_SIZE */
4949

5050
/**
5151
* Desired limit of heap usage
5252
*/
53-
#define CONFIG_MEM_HEAP_DESIRED_LIMIT (CONFIG_MEM_HEAP_AREA_SIZE / 32)
53+
#define CONFIG_MEM_HEAP_DESIRED_LIMIT (JERRY_MIN(CONFIG_MEM_HEAP_AREA_SIZE / 32, 8192))
5454

5555
/**
5656
* Log2 of maximum possible offset in the heap

0 commit comments

Comments
 (0)