Browse Source

Lowmem config profile changes for ajduk removal

pull/1691/head
Sami Vaarala 7 years ago
parent
commit
e9d210fbc4
  1. 20
      util/makeduk_ajduk.yaml
  2. 20
      util/makeduk_ajduk_fixup.h

20
util/makeduk_ajduk.yaml

@ -4,7 +4,7 @@
#DUK_USE_DOUBLE_LINKED_HEAP: false
DUK_USE_ALIGN_BY: 4
DUK_USE_ASSERTIONS: true
#DUK_USE_ASSERTIONS: true
DUK_USE_LIGHTFUNC_BUILTINS: true
DUK_USE_REFCOUNT16: true
DUK_USE_REFCOUNT32: false
@ -23,23 +23,23 @@ DUK_USE_STRTAB_RESIZE_CHECK_MASK: 63
DUK_USE_STRTAB_PTRCOMP: true
DUK_USE_HEAPPTR16: true
DUK_USE_HEAPPTR_ENC16:
verbatim: "#define DUK_USE_HEAPPTR_ENC16(ud,p) ajsheap_enc16((ud),(p))"
verbatim: "#define DUK_USE_HEAPPTR_ENC16(ud,p) lowmem_enc16((ud),(p))"
DUK_USE_HEAPPTR_DEC16:
verbatim: "#define DUK_USE_HEAPPTR_DEC16(ud,x) ajsheap_dec16((ud),(x))"
verbatim: "#define DUK_USE_HEAPPTR_DEC16(ud,x) lowmem_dec16((ud),(x))"
#DUK_USE_EXTSTR_INTERN_CHECK:
# verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) ajsheap_extstr_check_1((ptr),(len))"
# verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) lowmem_extstr_check_1((ptr),(len))"
#DUK_USE_EXTSTR_FREE:
# verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) ajsheap_extstr_free_1((ptr))"
# verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) lowmem_extstr_free_1((ptr))"
DUK_USE_EXTSTR_INTERN_CHECK:
verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) ajsheap_extstr_check_2((ptr),(len))"
verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) lowmem_extstr_check_2((ptr),(len))"
DUK_USE_EXTSTR_FREE:
verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) ajsheap_extstr_free_2((ptr))"
verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) lowmem_extstr_free_2((ptr))"
#DUK_USE_EXTSTR_INTERN_CHECK:
# verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) ajsheap_extstr_check_3((ptr),(len))"
# verbatim: "#define DUK_USE_EXTSTR_INTERN_CHECK(ud,ptr,len) lowmem_extstr_check_3((ptr),(len))"
#DUK_USE_EXTSTR_FREE:
# verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) ajsheap_extstr_free_3((ptr))"
# verbatim: "#define DUK_USE_EXTSTR_FREE(ud,ptr) lowmem_extstr_free_3((ptr))"
DUK_USE_EXEC_TIMEOUT_CHECK:
verbatim: "#define DUK_USE_EXEC_TIMEOUT_CHECK(udata) ajsheap_exec_timeout_check(udata)"
verbatim: "#define DUK_USE_EXEC_TIMEOUT_CHECK(udata) lowmem_exec_timeout_check(udata)"
#DUK_USE_ROM_STRINGS: true
#DUK_USE_ROM_OBJECTS: true
#DUK_USE_ROM_GLOBAL_INHERIT: true

20
util/makeduk_ajduk_fixup.h

@ -1,12 +1,12 @@
/* Ajduk fixups. */
extern uint8_t *ajsheap_ram;
extern duk_uint16_t ajsheap_enc16(void *ud, void *p);
extern void *ajsheap_dec16(void *ud, duk_uint16_t x);
extern const void *ajsheap_extstr_check_1(const void *ptr, duk_size_t len);
extern const void *ajsheap_extstr_check_2(const void *ptr, duk_size_t len);
extern const void *ajsheap_extstr_check_3(const void *ptr, duk_size_t len);
extern void ajsheap_extstr_free_1(const void *ptr);
extern void ajsheap_extstr_free_2(const void *ptr);
extern void ajsheap_extstr_free_3(const void *ptr);
extern duk_bool_t ajsheap_exec_timeout_check(void *udata);
extern uint8_t *lowmem_ram;
extern duk_uint16_t lowmem_enc16(void *ud, void *p);
extern void *lowmem_dec16(void *ud, duk_uint16_t x);
extern const void *lowmem_extstr_check_1(const void *ptr, duk_size_t len);
extern const void *lowmem_extstr_check_2(const void *ptr, duk_size_t len);
extern const void *lowmem_extstr_check_3(const void *ptr, duk_size_t len);
extern void lowmem_extstr_free_1(const void *ptr);
extern void lowmem_extstr_free_2(const void *ptr);
extern void lowmem_extstr_free_3(const void *ptr);
extern duk_bool_t lowmem_exec_timeout_check(void *udata);

Loading…
Cancel
Save