Adding configuration option to execute GC after each opcode.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-04-24 13:23:21 +03:00
parent a057b77e26
commit 4c77cddec3
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -439,6 +439,10 @@ run_int_loop (int_data_t *int_data)
completion = __opfuncs[curr->op_idx] (*curr, int_data);
#ifdef CONFIG_VM_RUN_GC_AFTER_EACH_OPCODE
ecma_gc_run ();
#endif /* CONFIG_VM_RUN_GC_AFTER_EACH_OPCODE */
#ifdef MEM_STATS
interp_mem_stats_opcode_exit (int_data,
opcode_pos,