Skip to content

Conversation

@franc0is
Copy link
Contributor

@franc0is franc0is commented Mar 9, 2016

This builds upon #945, which should be reviewed first.

See 10a1bb5 for the description & changes specific to this PR.

François Baldassari added 2 commits March 8, 2016 16:26
JerryScript-DCO-1.0-Signed-off-by: François Baldassari francois@pebble.com
This is a first step towards pushing the Jerryscript state into objects
the port can allocate and clear as opposed to static memory.

JerryScript-DCO-1.0-Signed-off-by: François Baldassari francois@pebble.com
@LaszloLango LaszloLango added the memory management Related to memory management or garbage collection label Mar 9, 2016
/**
* Target port functions for memory management
*/
mem_heap_t *jerry_port_init_heap (void);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add a size argument to this function. At least the implementation can check the size.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!

@LaszloLango LaszloLango added the jerry-port Related to the port API or the default port implementation label Mar 18, 2016
@zherczeg
Copy link
Member

The handling of globals are reworked at the moment by patches such as #1034, #1219. This patch should be adapted by adding a new context model for this particular use case.

@zherczeg
Copy link
Member

The infrastructure for adding new heap models are available, but I think this PR is too old, and new ones should be opened for adding new heap models. Feel free to reopen it if necessary.

@zherczeg zherczeg closed this Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jerry-port Related to the port API or the default port implementation memory management Related to memory management or garbage collection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants