Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes from local repository #11

Closed
wants to merge 14 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding configuration option to execute GC after each opcode.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
ruben-ayrapetyan committed Apr 30, 2015
commit 677c5b4fba6a1161b71bbdaf95e3b3e4486e0c0e
5 changes: 5 additions & 0 deletions jerry-core/config.h
Original file line number Diff line number Diff line change
@@ -170,4 +170,9 @@
*/
#define CONFIG_EXTENSION_MAX_ARGUMENTS_IN_FUNCTION 16

/**
* Run GC after execution of each opcode
*/
// #define CONFIG_VM_RUN_GC_AFTER_EACH_OPCODE

#endif /* !CONFIG_H */
4 changes: 4 additions & 0 deletions jerry-core/vm/vm.cpp
Original file line number Diff line number Diff line change
@@ -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,