Promote dynamic memory management from debugger transport to core API (#2503)

Under the cover of the debugger transport layer, allocation on the
engine's heap has been made available to the public. As there are
actually no restrictions on what the allocated memory can be used
for, the memory management functions better fit in the core part
of the API.

Closes #1805

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2018-09-04 16:31:26 +02:00
committed by GitHub
parent 0a40f55e5f
commit 054717fd29
8 changed files with 90 additions and 62 deletions
@@ -83,8 +83,6 @@ typedef struct jerry_debugger_transport_interface_t
struct jerry_debugger_transport_interface_t *next_p; /**< next transport layer */
} jerry_debugger_transport_header_t;
void * jerry_debugger_transport_malloc (size_t size);
void jerry_debugger_transport_free (void *mem_p, size_t size);
void jerry_debugger_transport_add (jerry_debugger_transport_header_t *header_p,
size_t send_message_header_size, size_t max_send_message_size,
size_t receive_message_header_size, size_t max_receive_message_size);