summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-08-27 16:19:56 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-12-13 10:29:08 +0900
commit8613c0c6758b8d560b2461bd540c815d28fcf844 (patch)
treefb2626dcdfed0ba4a4f77dfa6a5377632f3f9e30 /iseq.c
parent84cd3964d9a5c6768610a2685ba04237dd79b57a (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index e42525cb9f..21622fa288 100644
--- a/iseq.c
+++ b/iseq.c
@@ -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 *