diff options
author | Yusuke Endoh <[email protected]> | 2021-08-27 16:19:56 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2021-12-13 10:29:08 +0900 |
commit | 8613c0c6758b8d560b2461bd540c815d28fcf844 (patch) | |
tree | fb2626dcdfed0ba4a4f77dfa6a5377632f3f9e30 /iseq.c | |
parent | 84cd3964d9a5c6768610a2685ba04237dd79b57a (diff) |
Introduce an option "--dump=insns_without_opt" for debugging purposes
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4784
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -866,11 +866,11 @@ rb_iseq_new_top(const rb_ast_body_t *ast, VALUE name, VALUE path, VALUE realpath } rb_iseq_t * -rb_iseq_new_main(const rb_ast_body_t *ast, VALUE path, VALUE realpath, const rb_iseq_t *parent) +rb_iseq_new_main(const rb_ast_body_t *ast, VALUE path, VALUE realpath, const rb_iseq_t *parent, int opt) { return rb_iseq_new_with_opt(ast, rb_fstring_lit("<main>"), path, realpath, INT2FIX(0), - parent, 0, ISEQ_TYPE_MAIN, &COMPILE_OPTION_DEFAULT); + parent, 0, ISEQ_TYPE_MAIN, opt ? &COMPILE_OPTION_DEFAULT : &COMPILE_OPTION_FALSE); } rb_iseq_t * |