aboutsummaryrefslogtreecommitdiff
path: root/jerry-core/include/jerryscript-snapshot.h
diff options
context:
space:
mode:
authorZoltan Herczeg <zherczeg.u-szeged@partner.samsung.com>2017-10-12 14:43:32 +0200
committerGitHub <noreply@github.com>2017-10-12 14:43:32 +0200
commitfe26674752daa957b80da5e35798008f983560e8 (patch)
tree0a231f1c9475c92e5f090ce4df2a78b5d5738557 /jerry-core/include/jerryscript-snapshot.h
parent9f0cf9ef1c95d6444b4be4f1e68ea7263620b5b0 (diff)
Support multiple primary functions in a single snapshot. (#1797)
This patch adds an extension to snapshots which allows storing multiple position independent primary functions in a single snapshot data. A new application called jerry-snapshot is added to the project to manage snapshots. Currently the only option is merging snapshots. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
Diffstat (limited to 'jerry-core/include/jerryscript-snapshot.h')
-rw-r--r--jerry-core/include/jerryscript-snapshot.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/jerry-core/include/jerryscript-snapshot.h b/jerry-core/include/jerryscript-snapshot.h
index 62aa8a8d..6dac088d 100644
--- a/jerry-core/include/jerryscript-snapshot.h
+++ b/jerry-core/include/jerryscript-snapshot.h
@@ -33,6 +33,10 @@ extern "C"
size_t jerry_parse_and_save_snapshot (const jerry_char_t *source_p, size_t source_size, bool is_for_global,
bool is_strict, uint32_t *buffer_p, size_t buffer_size);
jerry_value_t jerry_exec_snapshot (const uint32_t *snapshot_p, size_t snapshot_size, bool copy_bytecode);
+jerry_value_t jerry_exec_snapshot_at (const uint32_t *snapshot_p, size_t snapshot_size,
+ size_t func_index, bool copy_bytecode);
+size_t jerry_merge_snapshots (const uint32_t **inp_buffers_p, size_t *inp_buffer_sizes_p, size_t number_of_snapshots,
+ uint32_t *out_buffer_p, size_t out_buffer_size, const char **error_p);
size_t jerry_parse_and_save_literals (const jerry_char_t *source_p, size_t source_size, bool is_strict,
uint32_t *buffer_p, size_t buffer_size, bool is_c_format);