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

Introduce an option "--dump=insns_without_opt" for debugging purposes #4784

Merged
merged 2 commits into from Dec 13, 2021

Conversation

mame
Copy link
Member

@mame mame commented Aug 27, 2021

$ ./miniruby --dump=insns -e '1 =~ 2'
== disasm: #<ISeq:<main>@-e:1 (1,0)-(1,6)> (catch: FALSE)
0000 putobject_INT2FIX_1_                                             (   1)[Li]
0001 putobject                              2
0003 opt_regexpmatch2                       <calldata!mid:=~, argc:1, ARGS_SIMPLE>[CcCr]
0005 leave
$ ./miniruby --dump=insns_without_opt -e '1 =~ 2'
== disasm: #<ISeq:<main>@-e:1 (1,0)-(1,6)> (catch: FALSE)
0000 putobject                              1                         (   1)[Li]
0002 putobject                              2
0004 send                                   <calldata!mid:=~, argc:1, ARGS_SIMPLE>, nil
0007 leave

@mame mame requested a review from ko1 August 27, 2021 07:21
ruby.c Outdated Show resolved Hide resolved
@mame mame merged commit a692a15 into ruby:master Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants